linux/tools/arch/x86/include/asm
Mikhail Paulyshka a68b858557 x86/rdrand: Disable RDSEED on AMD Cyan Skillfish
commit 5b937a1ed6 upstream.

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
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2025-07-17 18:37:14 +02:00
..
amd-ibs.h perf amd ibs: Sync arch/x86/include/asm/amd-ibs.h header with the kernel 2022-10-06 16:27:38 -03:00
asm.h x86/asm: Make <asm/asm.h> valid on cross-builds as well 2021-05-14 08:50:28 +02:00
atomic.h tools: KVM: selftests: Convert clear/set_bit() to actual atomics 2022-12-02 13:22:35 -05:00
barrier.h tools: add smp_* barrier variants to include infrastructure 2019-04-11 14:45:50 -07:00
cmpxchg.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
cpufeatures.h tools/include: Sync x86 headers with the kernel sources 2024-08-07 10:59:07 -07:00
disabled-features.h tools/include: Sync x86 CPU feature headers with the kernel sources 2024-04-11 10:38:29 -07:00
emulate_prefix.h x86: xen: insn: Decode Xen and KVM emulate-prefix signature 2019-10-17 21:31:57 +02:00
inat.h x86/insn: Add support for APX EVEX to the instruction decoder logic 2024-05-02 13:13:45 +02:00
inat_types.h objtool: Move x86 insn decoder to a common location 2019-08-31 22:27:52 -03:00
insn.h x86/insn: Add support for APX EVEX to the instruction decoder logic 2024-05-02 13:13:45 +02:00
msr-index.h x86/rdrand: Disable RDSEED on AMD Cyan Skillfish 2025-07-17 18:37:14 +02:00
nops.h x86/alternatives: Add longer 64-bit NOPs 2023-05-31 10:21:21 +02:00
orc_types.h x86,objtool: Split UNWIND_HINT_EMPTY in two 2023-03-23 23:18:58 +01:00
pvclock-abi.h tools: arch: x86: pull in pvclock headers 2021-10-18 14:43:45 -04:00
pvclock.h tools: arch: x86: pull in pvclock headers 2021-10-18 14:43:45 -04:00
required-features.h tools/include: Sync x86 CPU feature headers with the kernel sources 2024-04-11 10:38:29 -07:00
rmwcc.h work around gcc bugs with 'asm goto' with outputs 2024-02-09 15:57:48 -08:00