mirror of
https://github.com/speed47/spectre-meltdown-checker
synced 2024-11-06 22:23:41 +01:00
Recognize 'kaiser' flag in /proc/cpuinfo
This commit is contained in:
parent
7bbcfe0df7
commit
124ce8e27a
@ -290,6 +290,10 @@ if grep ^flags /proc/cpuinfo | grep -qw pti; then
|
|||||||
# vanilla PTI patch sets the 'pti' flag in cpuinfo
|
# vanilla PTI patch sets the 'pti' flag in cpuinfo
|
||||||
pstatus green YES
|
pstatus green YES
|
||||||
kpti_enabled=1
|
kpti_enabled=1
|
||||||
|
elif grep ^flags /proc/cpuinfo | grep -qw kaiser; then
|
||||||
|
# kernel line 4.9 sets the 'kaiser' flag in cpuinfo
|
||||||
|
pstatus green YES
|
||||||
|
kpti_enabled=1
|
||||||
elif [ -e /sys/kernel/debug/x86/pti_enabled ]; then
|
elif [ -e /sys/kernel/debug/x86/pti_enabled ]; then
|
||||||
# RedHat Backport creates a dedicated file, see https://access.redhat.com/articles/3311301
|
# RedHat Backport creates a dedicated file, see https://access.redhat.com/articles/3311301
|
||||||
kpti_enabled=$(cat /sys/kernel/debug/x86/pti_enabled 2>/dev/null)
|
kpti_enabled=$(cat /sys/kernel/debug/x86/pti_enabled 2>/dev/null)
|
||||||
|
Loading…
Reference in New Issue
Block a user