From f4d51e7e53888dac049d0996c5c3c9df7f24f3d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Lesimple?= Date: Wed, 23 May 2018 22:47:54 +0200 Subject: [PATCH] fix(variant4): add another detection way for Red Hat kernel --- spectre-meltdown-checker.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spectre-meltdown-checker.sh b/spectre-meltdown-checker.sh index 0282ccb..a4652fb 100755 --- a/spectre-meltdown-checker.sh +++ b/spectre-meltdown-checker.sh @@ -2928,7 +2928,7 @@ check_variant4() if [ "$opt_sysfs_only" != 1 ]; then _info_nol " * Kernel supports speculation store bypass: " if [ "$opt_live" = 1 ]; then - if grep -q 'Speculation.Store.Bypass:' /proc/self/status 2>/dev/null; then + if grep -Eq 'Speculation.?Store.?Bypass:' /proc/self/status 2>/dev/null; then kernel_ssb='found in /proc/self/status' _debug "found Speculation.Store.Bypass: in /proc/self/status" fi