Meta Uncovers RDSEED Architectural Issue In AMD Zen 5 CPUs
([AMD] 3 Hours Ago
RDSEED Bug)
- Reference: 0001585037
- News link: https://www.phoronix.com/news/AMD-EPYC-Turin-RDSEED-Bug
- Source link:
Over the years we have seen various [1]workarounds like disabling RDSEED for select AMD CPUs due to hardware bugs and early on in the Zen days were also [2]some RdRand issues due to [3]different problems . It turns out the newest AMD EPYC 5th Gen "Turin" processors have a new RDSEED issue.
[4]RDSEED is principally used for seeding software psuedo random number generators with additional entropy where not needing high quality RDRAND. Meta engineer Gregory Price announced on the Linux kernel mailing list the uncovering of an RDSEED bug affecting AMD [5]EPYC 9005 "Turin" processors.
Gregory Price [6]wrote :
"Under unknown architectural conditions, Zen5 chips running rdseed can produce (val=0,CF=1) as a "random" result over 10% of the time (when rdseed is successful). CF=1 indicates success, while val=0 is typically only produced when rdseed fails (CF=0).
This suggests there is an architectural issue which causes rdseed to misclassify a failure as a success under unknown conditions.
This was reproduced reliably by launching 2-threads per available core, 1-thread per for hamming on RDSEED, and 1-thread per core collectively eating and hammering on ~90% of memory."
The proposed patch is disabling RDSEED usage on AMD Zen 5 Turin processors, similar to what the Linux kernel did for Cyan Skillfish APUs.
No AMD engineer has yet commented on this matter on the Linux kernel mailing list.
Update: Price posted [7]a follow-up message now suggesting that RDSEED perhaps should be disabled for all AMD Zen 5 cores (just not EPYC / Turin) as reportedly other Zen 5 CPU models may also hit this problem.
[1] https://www.phoronix.com/news/Linux-6.16-rc6-x86-urgent
[2] https://www.phoronix.com/news/AMD-CPUs-RdRand-Suspend
[3] https://www.phoronix.com/news/Linux-5.3-Disabled-Older-AMD-Rd
[4] https://www.phoronix.com/search/RDSEED
[5] https://www.phoronix.com/search/EPYC+9005
[6] https://lore.kernel.org/lkml/20251016182107.3496116-1-gourry@gourry.net/
[7] https://lore.kernel.org/lkml/aPFDn-4Cm6n0_3_e@gourry-fedora-PF4VCD3F/
[4]RDSEED is principally used for seeding software psuedo random number generators with additional entropy where not needing high quality RDRAND. Meta engineer Gregory Price announced on the Linux kernel mailing list the uncovering of an RDSEED bug affecting AMD [5]EPYC 9005 "Turin" processors.
Gregory Price [6]wrote :
"Under unknown architectural conditions, Zen5 chips running rdseed can produce (val=0,CF=1) as a "random" result over 10% of the time (when rdseed is successful). CF=1 indicates success, while val=0 is typically only produced when rdseed fails (CF=0).
This suggests there is an architectural issue which causes rdseed to misclassify a failure as a success under unknown conditions.
This was reproduced reliably by launching 2-threads per available core, 1-thread per for hamming on RDSEED, and 1-thread per core collectively eating and hammering on ~90% of memory."
The proposed patch is disabling RDSEED usage on AMD Zen 5 Turin processors, similar to what the Linux kernel did for Cyan Skillfish APUs.
No AMD engineer has yet commented on this matter on the Linux kernel mailing list.
Update: Price posted [7]a follow-up message now suggesting that RDSEED perhaps should be disabled for all AMD Zen 5 cores (just not EPYC / Turin) as reportedly other Zen 5 CPU models may also hit this problem.
[1] https://www.phoronix.com/news/Linux-6.16-rc6-x86-urgent
[2] https://www.phoronix.com/news/AMD-CPUs-RdRand-Suspend
[3] https://www.phoronix.com/news/Linux-5.3-Disabled-Older-AMD-Rd
[4] https://www.phoronix.com/search/RDSEED
[5] https://www.phoronix.com/search/EPYC+9005
[6] https://lore.kernel.org/lkml/20251016182107.3496116-1-gourry@gourry.net/
[7] https://lore.kernel.org/lkml/aPFDn-4Cm6n0_3_e@gourry-fedora-PF4VCD3F/