Browse Source

fix: variant4: added case where prctl ssbd status is tagged as 'unknown'

pull/397/head
Stéphane Lesimple 2 years ago
parent
commit
c71e189ea3
  1. 5
      spectre-meltdown-checker.sh

5
spectre-meltdown-checker.sh

@ -4285,6 +4285,11 @@ check_CVE_2018_3639_linux() @@ -4285,6 +4285,11 @@ check_CVE_2018_3639_linux()
elif grep -Eq 'Speculation.?Store.?Bypass:[[:space:]]+not vulnerable' "$procfs/self/status" 2>/dev/null; then
kernel_ssbd_enabled=-2
pstatus blue NO "not vulnerable"
elif grep -Eq 'Speculation.?Store.?Bypass:[[:space:]]+unknown' "$procfs/self/status" 2>/dev/null; then
kernel_ssbd_enabled=0
pstatus blue NO
else
pstatus blue UNKNOWN "unknown value: $(grep -E 'Speculation.?Store.?Bypass:' "$procfs/self/status" 2>/dev/null | cut -d: -f2-)"
fi
if [ "$kernel_ssbd_enabled" = 1 ]; then

Loading…
Cancel
Save