From 954d0f6b244d7a34ffcfb7bd7dc5c7ff619945b9 Mon Sep 17 00:00:00 2001 From: "Brett T. Warden" Date: Fri, 16 Nov 2018 12:39:52 -0800 Subject: [PATCH] Warn on missing kernel info Missing kernel information can cause all sorts of false positives or negatives. This is worth at least a warning, and repeating immediately following the status. --- spectre-meltdown-checker.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/spectre-meltdown-checker.sh b/spectre-meltdown-checker.sh index be32420..fb04200 100755 --- a/spectre-meltdown-checker.sh +++ b/spectre-meltdown-checker.sh @@ -1646,7 +1646,7 @@ if [ "$os" = Linux ]; then fi if [ "$bad_accuracy" = 1 ]; then - _info "We're missing some kernel info (see -v), accuracy might be reduced" + _warn "We're missing some kernel info (see -v), accuracy might be reduced" fi fi @@ -3940,6 +3940,10 @@ if [ -n "$final_summary" ]; then _info "" fi +if [ "$bad_accuracy" = 1 ]; then + _warn "We're missing some kernel info (see -v), accuracy might be reduced" +fi + _vars=$(set | grep -Ev '^[A-Z_[:space:]]' | sort | tr "\n" '|') _debug "variables at end of script: $_vars"