mirror of
https://github.com/speed47/spectre-meltdown-checker.git
synced 2024-12-30 14:00:30 +01:00
Fix printing of microcode to use cpuinfo values
The values used should be the ones that come from cpuinfo instead of the test values. The following line will print the last tuple tested instead of the actual values of the CPU. Line 689: _debug "is_ucode_blacklisted: no ($model/$stepping/$ucode)"
This commit is contained in:
parent
bf46fd5d9b
commit
7404929661
@ -681,12 +681,12 @@ is_ucode_blacklisted()
|
||||
stepping=$(( $(echo $tuple | cut -d, -f2) ))
|
||||
ucode=$(echo $tuple | cut -d, -f3)
|
||||
if [ "$cpu_model" = "$model" ] && [ "$cpu_stepping" = "$stepping" ] && echo "$cpu_ucode" | grep -qi "^$ucode$"; then
|
||||
_debug "is_ucode_blacklisted: we have a match! ($model/$stepping/$ucode)"
|
||||
bad_ucode_found="Intel CPU Family 6 Model $model Stepping $stepping with microcode $ucode"
|
||||
_debug "is_ucode_blacklisted: we have a match! ($cpu_model/$cpu_stepping/$cpu_ucode)"
|
||||
bad_ucode_found="Intel CPU Family 6 Model $cpu_model Stepping $cpu_stepping with microcode $cpu_ucode"
|
||||
return 0
|
||||
fi
|
||||
done
|
||||
_debug "is_ucode_blacklisted: no ($model/$stepping/$ucode)"
|
||||
_debug "is_ucode_blacklisted: no ($cpu_model/$cpu_stepping/$cpu_ucode)"
|
||||
return 1
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user