Skip to content

Commit

Permalink
is_cpu_vulnerable: add check for old Atoms
Browse files Browse the repository at this point in the history
  • Loading branch information
speed47 committed Jan 14, 2018
1 parent d960931 commit 704e540
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion spectre-meltdown-checker.sh
Expand Up @@ -163,7 +163,15 @@ is_cpu_vulnerable()
variant2=0
variant3=0

if grep -q AMD /proc/cpuinfo; then
if grep -q GenuineIntel /proc/cpuinfo; then
# Intel
# Old Atoms are not vulnerable to spectre 2 nor meltdown
# https://security-center.intel.com/advisory.aspx?intelid=INTEL-SA-00088&languageid=en-fr
if grep -qE '^model name.+ Atom\(TM\) CPU +(S|D|N|230|330)' /proc/cpuinfo; then
variant2=1
variant3=1
fi
elif grep -q AuthenticAMD /proc/cpuinfo; then
# AMD revised their statement about variant2 => vulnerable
# https://www.amd.com/en/corporate/speculative-execution
variant3=1
Expand All @@ -185,6 +193,7 @@ is_cpu_vulnerable()
# armv8 vulnerable chips
:
else
# others are not vulnerable
variant1=1
variant2=1
fi
Expand Down

0 comments on commit 704e540

Please sign in to comment.