]> 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:16:41 +0000 (10:16 +0100)
commitd75aa97c90da26ee4f29c768762061cf45c3106e
treee6925bbb5bb7533deddbcd457060882a070d63bf
parent5a7ba9b599fc7b1843adc012bc84d2c2c64afed9
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