Skip to content

Commit 4c6b56a

Browse files
superm1gregkh
authored andcommitted
x86/CPU/AMD: Add missing terminator for zen5_rdseed_microcode
commit f1fdffe0afea02ba783acfe815b6a60e7180df40 upstream. Running x86_match_min_microcode_rev() on a Zen5 CPU trips up KASAN for an out of bounds access. Fixes: 607b9fb2ce248 ("x86/CPU/AMD: Add RDSEED fix for Zen5") Signed-off-by: Mario Limonciello <[email protected]> Signed-off-by: Borislav Petkov (AMD) <[email protected]> Cc: [email protected] Link: https://patch.msgid.link/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 77a1fb9 commit 4c6b56a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

arch/x86/kernel/cpu/amd.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1021,6 +1021,7 @@ static void init_amd_zen4(struct cpuinfo_x86 *c)
10211021
static const struct x86_cpu_id zen5_rdseed_microcode[] = {
10221022
ZEN_MODEL_STEP_UCODE(0x1a, 0x02, 0x1, 0x0b00215a),
10231023
ZEN_MODEL_STEP_UCODE(0x1a, 0x11, 0x0, 0x0b101054),
1024+
{},
10241025
};
10251026

10261027
static void init_amd_zen5(struct cpuinfo_x86 *c)

0 commit comments

Comments
 (0)