From 22cae605e176ebd03038f4e2c9d79e4477b2baf1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Lesimple?= Date: Fri, 9 Feb 2018 20:12:33 +0100 Subject: [PATCH] fix(retpoline): remove the "retpoline enabled" test This test worked for some early versions of the retpoline implementation in vanilla kernels, but the corresponding flag has been removed from /proc/cpuinfo in latest kernels. The full information is available in /sys instead, which was already implemented in the script. --- spectre-meltdown-checker.sh | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/spectre-meltdown-checker.sh b/spectre-meltdown-checker.sh index 4e6d98e..b8b6c68 100755 --- a/spectre-meltdown-checker.sh +++ b/spectre-meltdown-checker.sh @@ -1583,19 +1583,6 @@ check_variant2() pstatus red NO fi fi - - _info_nol " * Retpoline enabled: " - if [ "$opt_live" = 1 ]; then - # kernel adds this flag when retpoline is supported and enabled, - # regardless of the fact that it's minimal / full and generic / amd - if grep -qw retpoline /proc/cpuinfo; then - pstatus green YES - else - pstatus red NO - fi - else - pstatus blue N/A "can't check this in offline mode" - fi elif [ "$sys_interface_available" = 0 ]; then # we have no sysfs but were asked to use it only! msg="/sys vulnerability interface use forced, but it's not available!"