From a7afc585a965f8b4789402b2a692269b41920040 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Lesimple?= Date: Thu, 16 Aug 2018 10:51:55 +0200 Subject: [PATCH] fix several incorrect ucode version numbers --- spectre-meltdown-checker.sh | 26 ++++++++++---------------- 1 file changed, 10 insertions(+), 16 deletions(-) diff --git a/spectre-meltdown-checker.sh b/spectre-meltdown-checker.sh index a142fb9..37f8e5e 100755 --- a/spectre-meltdown-checker.sh +++ b/spectre-meltdown-checker.sh @@ -1274,15 +1274,13 @@ is_latest_known_ucode() ucode_latest="latest microcode version of your CPU is not known to this script" is_intel || return 2 # https://www.intel.com/content/dam/www/public/us/en/documents/sa00115-microcode-update-guidance.pdf - # ps2txt sa00115-microcode-update-guidance.ps | grep -Eo '[0-9A-F]+ [0-9A-F]+ [^ ]+ Production 0x[A-F0-9]+ 0x[A-F0-9]+' | awk '{print "0x"$1","$6" \\"}' | sort -u + # ps2txt sa00115-microcode-update-guidance.ps | grep -Eo '[0-9A-F]+ [0-9A-F]+ [^ ]+ Production 0x[A-F0-9]+ 0x[A-F0-9]+' | awk '{print "0x"$1","$6" \\"}' | uniq # cpuid,ucode for tuple in \ 0x106A5,0x1D \ 0x106E5,0x0A \ - 0x20652,0x11A \ - 0x20652,0x11C \ + 0x20652,0x11 \ 0x20655,0x7 \ - 0x20655,0x7C \ 0x206A7,0x2E \ 0x206C2,0x1F \ 0x206D6,0x61D \ @@ -1291,34 +1289,30 @@ is_latest_known_ucode() 0x206F2,0x3B \ 0x306A9,0x20 \ 0x306C3,0x25 \ - 0x306D4,0x2BB \ + 0x306D4,0x2B \ 0x306E4,0x42D \ 0x306E7,0x714 \ 0x306F2,0x3D \ 0x306F4,0x12 \ 0x40651,0x24 \ 0x40661,0x1A \ - 0x40671,0x1EB \ + 0x40671,0x1E \ 0x406E3,0xC6 \ 0x406F1,0xB00002E \ - 0x406F1,0xB00002EB \ 0x50654,0x200004D \ - 0x50662,0x17B \ - 0x50663,0x7000013B \ - 0x50664,0xF000012B \ - 0x50665,0xE00000AB \ - 0x506C2,0x14C \ + 0x50662,0x17 \ + 0x50663,0x7000013 \ + 0x50664,0xF000012 \ + 0x50665,0xE00000A \ + 0x506C2,0x14 \ 0x506E3,0xC6 \ 0x506F1,0x24 \ 0x706A1,0x28 \ 0x806E9,0x8E \ 0x806EA,0x96 \ - 0x806EA,0x96C \ 0x906E9,0x8E \ 0x906EA,0x96 \ - 0x906EA,0x96C \ - 0x906EA,0x96D \ - 0x906EB,0x8EC + 0x906EB,0x8E do cpuid_decimal=$(( $(echo "$tuple" | cut -d, -f1) )) ucode_decimal=$(( $(echo "$tuple" | cut -d, -f2) ))