From c1f762958716400e903513e3e483332cc99439a1 Mon Sep 17 00:00:00 2001 From: Rob Gill Date: Mon, 18 Jun 2018 20:39:32 +1000 Subject: [PATCH] Whitelist non-vulnerable ARMv7 For ARMv7 processors not on https://developer.arm.com/support/arm-security-updates/speculative-processor-vulnerability vulnerable list, (eg cortex A7) list as immune - @0x9fff00 in #212 Signed-off-by: Rob Gill --- spectre-meltdown-checker.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/spectre-meltdown-checker.sh b/spectre-meltdown-checker.sh index a0bc417..038a897 100755 --- a/spectre-meltdown-checker.sh +++ b/spectre-meltdown-checker.sh @@ -364,6 +364,13 @@ is_cpu_vulnerable() variant3=vuln [ -z "$variant4" ] && variant4=immune _debug "checking cpu$i: this armv7 non vulnerable to variants 3 & 4" + elif [ "$cpuarch" = 7 ]; then + [ -z "$variant1" ] && variant1=immune + [ -z "$variant2" ] && variant2=immune + [ -z "$variant3" ] && variant3=immune + [ -z "$variant3a" ] && variant3a=immune + [ -z "$variant4" ] && variant4=immune + _debug "checking cpu$i: this armv7 non vulnerable to variants 1, 2, 3, 3a & 4" elif [ "$cpuarch" = 8 ] && echo "$cpupart" | grep -Eq '^0x(d07|d08)$'; then variant1=vuln variant2=vuln