[<prev] [next>] [day] [month] [year] [list]
Message-ID: <174421371162.31282.17082226366215885447.tip-bot2@tip-bot2>
Date: Wed, 09 Apr 2025 15:48:31 -0000
From: "tip-bot2 for Dave Hansen" <tip-bot2@...utronix.de>
To: linux-tip-commits@...r.kernel.org
Cc: Jiri Slaby <jirislaby@...nel.org>,
Dave Hansen <dave.hansen@...ux.intel.com>, x86@...nel.org,
linux-kernel@...r.kernel.org
Subject:
[tip: x86/urgent] x86/cpu: Avoid running off the end of an AMD erratum table
The following commit has been merged into the x86/urgent branch of tip:
Commit-ID: f0df00ebc57f803603f2a2e0df197e51f06fbe90
Gitweb: https://git.kernel.org/tip/f0df00ebc57f803603f2a2e0df197e51f06fbe90
Author: Dave Hansen <dave.hansen@...ux.intel.com>
AuthorDate: Wed, 09 Apr 2025 06:58:37 -07:00
Committer: Dave Hansen <dave.hansen@...ux.intel.com>
CommitterDate: Wed, 09 Apr 2025 07:57:16 -07:00
x86/cpu: Avoid running off the end of an AMD erratum table
The NULL array terminator at the end of erratum_1386_microcode was
removed during the switch from x86_cpu_desc to x86_cpu_id. This
causes readers to run off the end of the array.
Replace the NULL.
Fixes: f3f325152673 ("x86/cpu: Move AMD erratum 1386 table over to 'x86_cpu_id'")
Reported-by: Jiri Slaby <jirislaby@...nel.org>
Signed-off-by: Dave Hansen <dave.hansen@...ux.intel.com>
---
arch/x86/kernel/cpu/amd.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/x86/kernel/cpu/amd.c b/arch/x86/kernel/cpu/amd.c
index 79569f7..a839ff5 100644
--- a/arch/x86/kernel/cpu/amd.c
+++ b/arch/x86/kernel/cpu/amd.c
@@ -805,6 +805,7 @@ static void init_amd_bd(struct cpuinfo_x86 *c)
static const struct x86_cpu_id erratum_1386_microcode[] = {
X86_MATCH_VFM_STEPS(VFM_MAKE(X86_VENDOR_AMD, 0x17, 0x01), 0x2, 0x2, 0x0800126e),
X86_MATCH_VFM_STEPS(VFM_MAKE(X86_VENDOR_AMD, 0x17, 0x31), 0x0, 0x0, 0x08301052),
+ {}
};
static void fix_erratum_1386(struct cpuinfo_x86 *c)
Powered by blists - more mailing lists