diff options
| author | Mario Limonciello <mario.limonciello@amd.com> | 2025-11-04 10:10:06 -0600 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-11-13 15:37:47 -0500 |
| commit | 4c6b56a76478bd1ab609827c571905386c11d308 (patch) | |
| tree | 43f4aa9e89be0b80d642cf34b898cbf71b84a2b3 | |
| parent | 77a1fb9d17afd7612043643b98dfd947958e99c8 (diff) | |
| download | linux-4c6b56a76478bd1ab609827c571905386c11d308.tar.gz linux-4c6b56a76478bd1ab609827c571905386c11d308.tar.bz2 linux-4c6b56a76478bd1ab609827c571905386c11d308.zip | |
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 <mario.limonciello@amd.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Cc: stable@vger.kernel.org
Link: https://patch.msgid.link/20251104161007.269885-1-mario.limonciello@amd.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
| -rw-r--r-- | arch/x86/kernel/cpu/amd.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/kernel/cpu/amd.c b/arch/x86/kernel/cpu/amd.c index a0d3aca13bbd..3fbb86fa669f 100644 --- a/arch/x86/kernel/cpu/amd.c +++ b/arch/x86/kernel/cpu/amd.c @@ -1021,6 +1021,7 @@ static void init_amd_zen4(struct cpuinfo_x86 *c) static const struct x86_cpu_id zen5_rdseed_microcode[] = { ZEN_MODEL_STEP_UCODE(0x1a, 0x02, 0x1, 0x0b00215a), ZEN_MODEL_STEP_UCODE(0x1a, 0x11, 0x0, 0x0b101054), + {}, }; static void init_amd_zen5(struct cpuinfo_x86 *c) |
