1
0
mirror of https://github.com/speed47/spectre-meltdown-checker synced 2024-08-29 07:22:00 +02:00

Recognize 'kaiser' flag in /proc/cpuinfo

This commit is contained in:
Sebastian Wiesinger 2018-01-08 14:38:43 +01:00
parent 7bbcfe0df7
commit 124ce8e27a

View File

@ -290,6 +290,10 @@ if grep ^flags /proc/cpuinfo | grep -qw pti; then
# vanilla PTI patch sets the 'pti' flag in cpuinfo
pstatus green YES
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
# 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)