x86/rdrand: Disable RDSEED on AMD Cyan Skillfish
authorMikhail Paulyshka <me@mixaill.net>
Sat, 24 May 2025 14:53:19 +0000 (17:53 +0300)
committerBorislav Petkov (AMD) <bp@alien8.de>
Tue, 8 Jul 2025 19:33:26 +0000 (21:33 +0200)
commit5b937a1ed64ebeba8876e398110a5790ad77407c
treec1c451cb4fb65e10c4fbe32a1c0c76a3ada54b1a
parentd7b8f8e20813f0179d8ef519541a3527e7661d3a
x86/rdrand: Disable RDSEED on AMD Cyan Skillfish

AMD Cyan Skillfish (Family 17h, Model 47h, Stepping 0h) has an error that
causes RDSEED to always return 0xffffffff, while RDRAND works correctly.

Mask the RDSEED cap for this CPU so that both /proc/cpuinfo and direct CPUID
read report RDSEED as unavailable.

  [ bp: Move to amd.c, massage. ]

Signed-off-by: Mikhail Paulyshka <me@mixaill.net>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Cc: <stable@kernel.org>
Link: https://lore.kernel.org/20250524145319.209075-1-me@mixaill.net
arch/x86/include/asm/msr-index.h
arch/x86/kernel/cpu/amd.c
tools/arch/x86/include/asm/msr-index.h