]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
x86/microcode/AMD: Select which microcode patch to load
authorBorislav Petkov (AMD) <bp@alien8.de>
Thu, 25 Sep 2025 11:46:00 +0000 (13:46 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 8 Jan 2026 09:15:02 +0000 (10:15 +0100)
commitadcef72bc9bcf0ba7c1679127e573f1714be956f
treefd6b39025b995f6d48ba0701d4ed25f52af88af4
parent6be62c78aed575a743103c00fc5e1e54ac2f335d
x86/microcode/AMD: Select which microcode patch to load

commit 8d171045069c804e5ffaa18be590c42c6af0cf3f upstream.

All microcode patches up to the proper BIOS Entrysign fix are loaded
only after the sha256 signature carried in the driver has been verified.

Microcode patches after the Entrysign fix has been applied, do not need
that signature verification anymore.

In order to not abandon machines which haven't received the BIOS update
yet, add the capability to select which microcode patch to load.

The corresponding microcode container supplied through firmware-linux
has been modified to carry two patches per CPU type
(family/model/stepping) so that the proper one gets selected.

Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Tested-by: Waiman Long <longman@redhat.com>
Link: https://patch.msgid.link/20251027133818.4363-1-bp@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/kernel/cpu/microcode/amd.c