diff options
author | Stéphane Lesimple <speed47_github@speed47.net> | 2018-02-09 20:12:33 +0100 |
---|---|---|
committer | Stéphane Lesimple <speed47_github@speed47.net> | 2018-02-09 20:12:33 +0100 |
commit | 22cae605e176ebd03038f4e2c9d79e4477b2baf1 (patch) | |
tree | 53ae607100431ac5db476335084c6c69b90a2ecd | |
parent | eb75e519754800fd3c3d42d6f4cb4e50ba985889 (diff) | |
download | spectre-meltdown-checker-22cae605e176ebd03038f4e2c9d79e4477b2baf1.tar.lz spectre-meltdown-checker-22cae605e176ebd03038f4e2c9d79e4477b2baf1.tar.xz spectre-meltdown-checker-22cae605e176ebd03038f4e2c9d79e4477b2baf1.zip |
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.
-rwxr-xr-x | spectre-meltdown-checker.sh | 13 |
1 files changed, 0 insertions, 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!" |