From 23564cda5d19b49794590347cc515f300c2651ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Lesimple?= Date: Sat, 6 Jun 2020 17:39:07 +0200 Subject: [PATCH] fix: variant4: added case where prctl ssbd status is tagged as 'unknown' --- spectre-meltdown-checker.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/spectre-meltdown-checker.sh b/spectre-meltdown-checker.sh index 350fe24..a5cc593 100755 --- a/spectre-meltdown-checker.sh +++ b/spectre-meltdown-checker.sh @@ -4446,6 +4446,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