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:
Vincent Brillault 2018-01-08 09:21:27 +01:00
parent 5c14384e15
commit 945db3dbce
No known key found for this signature in database
GPG Key ID: CFEA15DE034F0688
1 changed files with 1 additions and 1 deletions

View File

@ -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