Detect Page Table Isolation (PTI) on RHEL7/CENTOS7
RedHat has changed the message in the patch they backported to: ```x86/pti: Unmapping kernel while in userspace```
This commit is contained in:
parent
5c14384e15
commit
945db3dbce
|
@ -238,7 +238,7 @@ fi
|
|||
if grep ^flags /proc/cpuinfo | grep -qw pti; then
|
||||
pstatus green YES
|
||||
kpti_enabled=1
|
||||
elif dmesg | grep -Eq 'Kernel/User page tables isolation: enabled|Kernel page table isolation enabled'; then
|
||||
elif dmesg | grep -Eq 'Kernel/User page tables isolation: enabled|Kernel page table isolation enabled|x86/pti: Unmapping kernel while in userspace'; then
|
||||
pstatus green YES
|
||||
kpti_enabled=1
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue