• Welcome to TechPowerUp Forums, Guest! Please check out our forum guidelines for info related to our community.

Some AMD Processors Have a Hardware RNG Bug, Losing Randomness After Suspend Resume

Joined
May 8, 2019
Messages
10 (0.00/day)
Location
Malaysia
System Name Old System
Processor i7-4790
Motherboard Gigabyte GA-H97M Gaming 3
Cooling Cooler Master Seidon 120V
Memory Kingston Hyper X SAVAGE 4x4GB 1866MHz
Video Card(s) GIGABYTE R9 380 G1 Gaming
Storage Kingston SSDNow KC300 60GB SSD, TOSHIBA DT01ACA200 2TB HDD, TOSHIBA DT01ACA300 3TB HDD
Display(s) Acer G237HL Abi 23' Super Slim Full HD IPS
Case TECWARE F3 mATX Blue Chassis
Audio Device(s) Sound Blaster X-Fi MB3
Power Supply Corsair VS550 PSU
Mouse Armaggeddon SRO-5 HAVOC III v2.0 RGB
Keyboard Armaggeddon MKA-9C Psychraptor Mechanical Keyboard (Brown Switch)
Software Windows 10 Home x64
I have laptop AMD Richland A8-5550M back in the day but I don't have any problem from wakeup the laptop from sleep.
 
Last edited:
Joined
Jul 10, 2010
Messages
1,234 (0.23/day)
Location
USA, Arizona
System Name SolarwindMobile
Processor AMD FX-9800P RADEON R7, 12 COMPUTE CORES 4C+8G
Motherboard Acer Wasp_BR
Cooling It's Copper.
Memory 2 x 8GB SK Hynix/HMA41GS6AFR8N-TF
Video Card(s) ATI/AMD Radeon R7 Series (Bristol Ridge FP4) [ACER]
Storage TOSHIBA MQ01ABD100 1TB + KINGSTON RBU-SNS8152S3128GG2 128 GB
Display(s) ViewSonic XG2401 SERIES
Case Acer Aspire E5-553G
Audio Device(s) Realtek ALC255
Power Supply PANASONIC AS16A5K
Mouse SteelSeries Rival
Keyboard Ducky Channel Shine 3
Software Windows 10 Home 64-bit (Version 1607, Build 14393.969)
I have laptop AMD Richland A8-5550M back in the day but I don't have any problem from wakeup the laptop from sleep.
Family 15h/21 does not have the RdRand instruction till Excavator.

Family 23/17h (Zen) is not affected, Family 22/16h (Jaguar/Puma) is affected.
 
Joined
Jun 28, 2016
Messages
3,595 (1.16/day)
We don't even know if this affects say Windows, also Linux doesn't use just the hardware RNG for entropy.
The bug mentioned here is about a specific scenario. But that's only how the issue emerged. The more general conclusion is that RNG is faulty and quality of numbers it outputs can be compromised. It could have happened and it may happen in the future. That's the real problem.

Everyone who uses (or used...) this RdRand now have a moment of doubt - and potentially a problem.
AMD has to check how deep this goes and either fix or disable it in an update.
Companies that use these CPUs in offline systems (once again: embedded!) will have to analyze the risks as well.

That's how things go. This is a standard procedure for most enterprises. Hardware and software faults are found all the time.

When it's important to have reliable noncompromisable entropy on the cheap they usually generate it via software. Rdrand is considered potentially weak in such cases.
I'm not sure if I understand your post, but it doesn't seem correct the way I read it.

Pseudo-random numbers generated computationally are always deterministic - hence, of limited "quality".
Of course they are perfectly fine for many applications.
However, for specific scenarios (e.g. complex financial modelling, scientific simulations) it is often recommended (sometimes: required) to use a higher quality source.
You can either go for a very complex algorithm or a hardware generator. Either way, the better randomness means slower operation.

The popular fix to this, commonly used since Intel introduced RDRAND, is to keep using a good PRNG and periodically reset seed with RDRAND (RDSEED in fact).
Now, if it turns out that AMD's RDRAND is not reliable, this (really common) approach has to be scrapped as it may even be worse than using a PRNG all the way...
 
Top