]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
x86/microcode/AMD: Handle the case of no BIOS microcode
authorBorislav Petkov (AMD) <bp@alien8.de>
Wed, 20 Aug 2025 09:58:57 +0000 (11:58 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 4 Sep 2025 13:30:26 +0000 (15:30 +0200)
commitc84ba4cdf4c65eef0f94661ab4cf3895594546a1
tree6f8db5e7cc28481eac07610a75845b582e4e770b
parentf49161646e03d107ce81a99c6ca5da682fe5fb69
x86/microcode/AMD: Handle the case of no BIOS microcode

commit fcf8239ad6a5de54fa7ce18e464c6b5951b982cb upstream.

Machines can be shipped without any microcode in the BIOS. Which means,
the microcode patch revision is 0.

Handle that gracefully.

Fixes: 94838d230a6c ("x86/microcode/AMD: Use the family,model,stepping encoded in the patch ID")
Reported-by: Vítek Vávra <vit.vavra.kh@gmail.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Cc: <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/kernel/cpu/microcode/amd.c