mirror of
https://github.com/speed47/spectre-meltdown-checker
synced 2024-11-07 06:33:38 +01:00
feat: detect latest Red Hat kernels' RO ibpb_enabled knob
This commit is contained in:
parent
8606e60ef7
commit
10b8d94724
@ -2362,7 +2362,12 @@ check_variant2_linux()
|
|||||||
fi
|
fi
|
||||||
if [ -n "$cpuid_ibpb" ] && [ -n "$ibpb_supported" ]; then
|
if [ -n "$cpuid_ibpb" ] && [ -n "$ibpb_supported" ]; then
|
||||||
if [ -e "$specex_knob_dir/ibpb_enabled" ]; then
|
if [ -e "$specex_knob_dir/ibpb_enabled" ]; then
|
||||||
|
# newer (April 2018) Red Hat kernels have ibpb_enabled as ro, and automatically enables it with retpoline
|
||||||
|
if [ ! -w "$specex_knob_dir/ibpb_enabled" ] && [ -e "$specex_knob_dir/retp_enabled" ]; then
|
||||||
|
explain "Both your CPU and your kernel have IBPB support, but it is currently disabled. You kernel should enable IBPB automatically if you enable retpoline. You may enable it with \`echo 1 > $specex_knob_dir/retp_enabled\`."
|
||||||
|
else
|
||||||
explain "Both your CPU and your kernel have IBPB support, but it is currently disabled. You may enable it with \`echo 1 > $specex_knob_dir/ibpb_enabled\`."
|
explain "Both your CPU and your kernel have IBPB support, but it is currently disabled. You may enable it with \`echo 1 > $specex_knob_dir/ibpb_enabled\`."
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
explain "Both your CPU and your kernel have IBPB support, but it is currently disabled. You may enable it. Check in your distro's documentation on how to do this."
|
explain "Both your CPU and your kernel have IBPB support, but it is currently disabled. You may enable it. Check in your distro's documentation on how to do this."
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user