From c45a06f4142093b01b8b67fcbd65ff6afb5eaafc Mon Sep 17 00:00:00 2001 From: "Brett T. Warden" <4c0e8e88@tm.wgz.org> Date: Sun, 25 Nov 2018 09:37:03 -0800 Subject: [PATCH] Warn on missing kernel info (#265) 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 b2f7302..47f1f40 100755 --- a/spectre-meltdown-checker.sh +++ b/spectre-meltdown-checker.sh @@ -1648,7 +1648,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 @@ -3942,6 +3942,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"