fix: rework read_msr for values > INT32_MAX (#507)

This commit is contained in:
Stéphane Lesimple
2026-03-30 20:53:13 +02:00
parent 72824deea5
commit 3d6acc460e
4 changed files with 41 additions and 30 deletions

View File

@@ -38,7 +38,7 @@ check_CVE_2023_20593_linux() {
read_msr 0xc0011029
ret=$?
if [ "$ret" = "$READ_MSR_RET_OK" ]; then
if [ $((ret_read_msr_value >> 9 & 1)) -eq 1 ]; then
if [ $(( ret_read_msr_value_lo >> 9 & 1 )) -eq 1 ]; then
pstatus green YES "FP_BACKUP_FIX bit set in DE_CFG"
fp_backup_fix=1
else