From 360be7b35f91704e09a7764d359fce98dbe33aac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Lesimple?= Date: Mon, 13 Aug 2018 15:42:56 +0200 Subject: [PATCH] fix: hide arch_capabilities_msr_not_read warning under !intel --- 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 34de9b3..6dd1a34 100755 --- a/spectre-meltdown-checker.sh +++ b/spectre-meltdown-checker.sh @@ -1208,7 +1208,7 @@ is_skylake_cpu() is_vulnerable_to_empty_rsb() { - if [ -z "$capabilities_rsba" ]; then + if is_intel && [ -z "$capabilities_rsba" ]; then _warn "is_vulnerable_to_empty_rsb() called before ARCH CAPABILITIES MSR was read" fi if is_skylake_cpu || [ "$capabilities_rsba" = 1 ]; then