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.
This commit is contained in:
Stéphane Lesimple 2018-02-09 20:12:33 +01:00
parent eb75e51975
commit 22cae605e1
1 changed files with 0 additions and 13 deletions

View File

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