From cc0b325383f17992d52ae315853c9105da44d518 Mon Sep 17 00:00:00 2001 From: angus-p Date: Tue, 9 Jan 2018 03:47:25 +0000 Subject: [PATCH] remove superfluous space from test line 315 Extra space was causing non-existent variable to be tested resulting in 'YES' if running in live mode and IBRS compiled in --- 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 b84804b..48f39f1 100755 --- a/spectre-meltdown-checker.sh +++ b/spectre-meltdown-checker.sh @@ -312,7 +312,7 @@ if [ "$opt_live" = 1 ]; then ibrs_enabled=$(cat /sys/kernel/debug/x86/ibrs_enabled 2>/dev/null) fi fi -if [ "$ibrs_supported " != 1 -a -n "$opt_map" ]; then +if [ "$ibrs_supported" != 1 -a -n "$opt_map" ]; then if grep -q spec_ctrl "$opt_map"; then pstatus green YES ibrs_supported=1