From 0aa5857a76abb624b1186496c00d431ec0ffeca3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Lesimple?= Date: Sun, 21 Jan 2018 13:28:42 +0100 Subject: [PATCH] fix(cpu): Pentium Exxxx series are not vulnerable Pentium E series are not in the vulnerable list from Intel, and Spectre2 PoC reportedly doesn't work on an E5200 --- spectre-meltdown-checker.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/spectre-meltdown-checker.sh b/spectre-meltdown-checker.sh index 9cf78df..6077d3e 100755 --- a/spectre-meltdown-checker.sh +++ b/spectre-meltdown-checker.sh @@ -205,7 +205,12 @@ is_cpu_vulnerable() # model name : Genuine Intel(R) CPU N270 @ 1.60GHz # model name : Intel(R) Atom(TM) CPU N270 @ 1.60GHz # model name : Intel(R) Atom(TM) CPU 330 @ 1.60GHz - if grep -qE '^model name.+ Intel\(R\) (Atom\(TM\) CPU +(S|D|N|230|330)|CPU N[0-9]{3} )' /proc/cpuinfo; then + # + # https://github.com/crozone/SpectrePoC/issues/1 ^F E5200: + # model name : Pentium(R) Dual-Core CPU E5200 @ 2.50GHz + if grep -qE -e '^model name.+ Intel\(R\) (Atom\(TM\) CPU +(S|D|N|230|330)|CPU N[0-9]{3} )' \ + -e '^model name.+ Pentium\(R\) Dual-Core[[:space:]]+CPU[[:space:]]+E[0-9]{4}K? ' \ + /proc/cpuinfo; then variant1=vuln [ -z "$variant2" ] && variant2=immune [ -z "$variant3" ] && variant3=immune