]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
x86/CPU/AMD: Add RDSEED fix for Zen5
authorGregory Price <gourry@gourry.net>
Mon, 20 Oct 2025 09:13:55 +0000 (11:13 +0200)
committerBorislav Petkov (AMD) <bp@alien8.de>
Tue, 28 Oct 2025 11:37:49 +0000 (12:37 +0100)
commit607b9fb2ce248cc5b633c5949e0153838992c152
tree07af746f4fcdd0eca790152340e661ea532cfc65
parent8a9fb5129e8e64d24543ebc70de941a2d77a9e77
x86/CPU/AMD: Add RDSEED fix for Zen5

There's an issue with RDSEED's 16-bit and 32-bit register output
variants on Zen5 which return a random value of 0 "at a rate inconsistent
with randomness while incorrectly signaling success (CF=1)". Search the
web for AMD-SB-7055 for more detail.

Add a fix glue which checks microcode revisions.

  [ bp: Add microcode revisions checking, rewrite. ]

Cc: stable@vger.kernel.org
Signed-off-by: Gregory Price <gourry@gourry.net>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/r/20251018024010.4112396-1-gourry@gourry.net
arch/x86/kernel/cpu/amd.c