]> git.ipfire.org Git - thirdparty/kernel/linux.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)
committerBorislav Petkov (AMD) <bp@alien8.de>
Thu, 30 Oct 2025 13:29:54 +0000 (14:29 +0100)
commit8d171045069c804e5ffaa18be590c42c6af0cf3f
tree57d805aa99bf5b7261b68d2d34ee6b0240464e75
parent4058386498c3126b7eb7134e547803a7489b65f0
x86/microcode/AMD: Select which microcode patch to load

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
arch/x86/kernel/cpu/microcode/amd.c