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

AMD Ryzen Machine Crashes to a Sequence of FMA3 Instructions

btarunr

Editor & Senior Moderator
Staff member
Joined
Oct 9, 2007
Messages
42,906 (8.03/day)
Location
Hyderabad, India
System Name RBMK-1000
Processor AMD Ryzen 7 5700G
Motherboard ASUS ROG Strix B450-E Gaming
Cooling DeepCool Gammax L240 V2
Memory 2x 8GB G.Skill Sniper X
Video Card(s) Palit GeForce RTX 2080 SUPER GameRock
Storage Western Digital Black NVMe 512GB
Display(s) BenQ 1440p 60 Hz 27-inch
Case Corsair Carbide 100R
Audio Device(s) ASUS SupremeFX S1220A
Power Supply Cooler Master MWE Gold 650W
Mouse ASUS ROG Strix Impact
Keyboard Gamdias Hermes E2
Software Windows 11 Pro
An AMD Ryzen 7-1800X powered machine was found to be crashing upon execution of a very specific set of FMA3 instructions by Flops version 2, a simple open-source CPU benchmark by Alexander "Mystical" Yee. An important point to note here is that this little known benchmark has been tailored by its developer to be highly specific to the CPU micro-architecture, with separate binaries for each major x64 architecture (eg: Bulldozer, Sandy Bridge, Haswell, Skylake, etc.), and as such the GitHub repository does not have a "Zen" specific binary.

Members of the HWBot forums found that Ryzen powered machines crash on running the Haswell-specific binary, at "Single-Precision - 128-bit FMA3 - Fused Multiply Add." The Haswell-specific binary (along with, we imagine, Skylake), adds support for the FMA3 instruction-set, which Ryzen supports, and which lends some importance to the discovery of this bug. What also makes this important is because a simple application, running at user privileges (i.e. lacking special super-user/admin privileges), has the ability to crash the machine. Such a code could even be executed through virtual machines, and poses a security issue, with implications for AMD's upcoming "Naples" enterprise processor launch.

View at TechPowerUp Main Site
 
Last edited:

Nkd

Joined
Sep 15, 2007
Messages
346 (0.06/day)
If this benchmark things are tailored to such specific level that they differentiate even SERIES within SAME VENDOR, why the hell is this a news?

I swear TPU posts anything and everything. Saying it doesn't have Zen specific binaries but hey there might be a bug. Really? Sometimes I have a hard time even believing I am reading this here on this site. Post anything and everything. Systems are rock stable with every software and then making this a news is just trolling. lol
 

the54thvoid

Moderator
Staff member
Joined
Dec 14, 2009
Messages
10,162 (2.23/day)
Location
Glasgow - home of formal profanity
System Name Newer Ho'Ryzen
Processor Ryzen 3700X
Motherboard Asus Crosshair VI Hero
Cooling TR Le Grand Macho
Memory 16Gb G.Skill 3200 RGB
Video Card(s) RTX 2080ti MSI Duke @2Ghz ish
Storage Samsumg 960 Pro m2. 512Gb
Display(s) LG 32" 165Hz 1440p GSYNC
Case Lian Li PC-V33WX
Audio Device(s) On Board
Power Supply Seasonic Prime TItanium 850
Software W10
Benchmark Scores Look, it's a Ryzen on air........ What's the point?
If this benchmark things are tailored to such specific level that they differentiate even SERIES within SAME VENDOR, why the hell is this a news?

I found when i subjected my Intel Sandy-E system to a water dousing test from an unplugged water block it also failed.

Morale of story, the specific open source bench, as alluded to in OP hasn't got the Zen instruction set yet....
 

btarunr

Editor & Senior Moderator
Staff member
Joined
Oct 9, 2007
Messages
42,906 (8.03/day)
Location
Hyderabad, India
System Name RBMK-1000
Processor AMD Ryzen 7 5700G
Motherboard ASUS ROG Strix B450-E Gaming
Cooling DeepCool Gammax L240 V2
Memory 2x 8GB G.Skill Sniper X
Video Card(s) Palit GeForce RTX 2080 SUPER GameRock
Storage Western Digital Black NVMe 512GB
Display(s) BenQ 1440p 60 Hz 27-inch
Case Corsair Carbide 100R
Audio Device(s) ASUS SupremeFX S1220A
Power Supply Cooler Master MWE Gold 650W
Mouse ASUS ROG Strix Impact
Keyboard Gamdias Hermes E2
Software Windows 11 Pro
If this benchmark things are tailored to such specific level that they differentiate even SERIES within SAME VENDOR, why the hell is this a news?

The haswell-specific bench runs an FMA3 industry-standard instruction, which takes down the FMA3-supporting Ryzen (and not FMA3-supporting Skylake).

This is news because an unprivileged application can take down a machine (and is hence a security hole). Would a company like Barclay's put its client live database on a "Naples" machine now?
 
Joined
Oct 2, 2004
Messages
13,791 (2.14/day)
The haswell-specific bench runs an FMA3 industry-standard instruction, which takes down the FMA3-supporting Ryzen (and not FMA3-supporting Skylake).

This is news because an unprivileged application can take down a machine (and is hence a security hole).

I'm pretty sure you can crash ANY system by feeding it with instructions that are not meant for it. And we know how "standards" work with instructions. If they really were 100% standard, then they'd exhibit IDENTICAL performance gains on ALL CPU's. Which we know for a fact it's not true...
 

Mussels

Freshwater Moderator
Staff member
Joined
Oct 6, 2004
Messages
53,515 (8.31/day)
Location
Oystralia
System Name Rainbow Sparkles
Processor Ryzen R7 5800X (PBO tweaked, 4.4-5.05GHz)
Motherboard Asus x570 Gaming-F
Cooling EK Quantum Velocity AM4 + EK Quantum ARGB 3090 w/ active backplate. Dual rad.
Memory 2x32GB DDR4 3600 Corsair Vengeance RGB @3800 C18-22-22-22-42 TRFC704 (1.4V, SoC 1.15V Hynix MJR)
Video Card(s) Galax RTX 3090 SG 24GB: Often underclocked to 1500Mhz 0.737v
Storage 2TB WD SN850 NVME + 1TB Sasmsung 970 Pro NVME + WD AN1500 1TB + 1TB Intel 6000P NVME USB 3.2
Display(s) Gigabyte G32QC (4k80Hz, 1440p 165Hz) + Phillips 328m6fjrmb (4K 60Hz, 1440p 144Hz)
Case Fractal Design R6
Audio Device(s) Logitech G560 |Razer Leviathan | Corsair Void pro RGB |Blue Yeti mic
Power Supply Corsair HX 750i (Platinum, fan off til 300W)
Mouse Logitech G Pro wireless + Steelseries Prisma XL
Keyboard Razer Huntsman TE (custom white and steel keycaps)
VR HMD Oculus Rift S
Software Windows 11 pro x64 (Yes, it's genuinely a good OS)
Benchmark Scores I don't quite know how i managed to get such a top tier PC, I am not rich.
People are missing the point: A program can be coded to crash zen. Someone could throw that code into a website ad for example, and *bam* AMD stocks plummet.

Hopefully a BIOS or windows security update can fix this one before it goes bad.
 
Joined
Nov 20, 2013
Messages
5,203 (1.67/day)
Location
Kiev, Ukraine
System Name WS#1337
Processor Ryzen 7 3800X
Motherboard ASUS X570-PLUS TUF Gaming
Cooling Xigmatek Scylla 240mm AIO
Memory 4x8GB G.Skill Ares OEM DDR4-3200 (B-die)
Video Card(s) Inno3D RTX 3070 Ti iChill
Storage Adata SX8200 Pro 1TB
Display(s) Samsung U24E590D (4K/UHD)
Case ghetto CM Cosmos RC-1000
Audio Device(s) ALC1220
Power Supply SeaSonic SSR-550FX (80+ GOLD)
Mouse Logitech G603
Keyboard Modecom Volcano Blade (Kailh choc LP)
Software Windows 10, Ubuntu 20.04 LTS
Tesla Model S won't run on Diesel!
The haswell-specific bench runs an FMA3 industry-standard instruction, which takes down the FMA3-supporting Ryzen (and not FMA3-supporting Skylake).

This is news because an unprivileged application can take down a machine (and is hence a security hole). Would a company like Barclay's put its client live database on a "Naples" machine now?
And I quote:
Wikipedia said:
AMD explicitly revealed that Zen, its 3rd-generation x86-64 architecture in its first iteration (znver1 – Zen, version 1); would drop support for FMA4 in a patch to the GNU Binutils package.[13] There has been initial confusion regarding whether FMA4 was implemented or not due to errata in the initial patch that has since then been rectified.[14]
 

the54thvoid

Moderator
Staff member
Joined
Dec 14, 2009
Messages
10,162 (2.23/day)
Location
Glasgow - home of formal profanity
System Name Newer Ho'Ryzen
Processor Ryzen 3700X
Motherboard Asus Crosshair VI Hero
Cooling TR Le Grand Macho
Memory 16Gb G.Skill 3200 RGB
Video Card(s) RTX 2080ti MSI Duke @2Ghz ish
Storage Samsumg 960 Pro m2. 512Gb
Display(s) LG 32" 165Hz 1440p GSYNC
Case Lian Li PC-V33WX
Audio Device(s) On Board
Power Supply Seasonic Prime TItanium 850
Software W10
Benchmark Scores Look, it's a Ryzen on air........ What's the point?
The haswell-specific bench runs an FMA3 industry-standard instruction, which takes down the FMA3-supporting Ryzen (and not FMA3-supporting Skylake).

This is news because an unprivileged application can take down a machine (and is hence a security hole). Would a company like Barclay's put its client live database on a "Naples" machine now?

Not fair comparison at all. By the news post itself, "a little known open source program" designed my one guy, wouldn't be used by Barclays.

@Mussels, everything can be crashed. Especially on such esoteric and unique program with a specific instruction set.

I'm not saying it's not an issue but it's very specific and very minor. Every major operating system has almost weekly vulnerability exposed.
 
Joined
Mar 23, 2005
Messages
3,960 (0.63/day)
Location
Ancient Greece, Acropolis (Time Lord)
System Name RiseZEN Gaming PC
Processor AMD Ryzen 7 5800X @ Auto
Motherboard Asus ROG Strix X570-E Gaming WIFI II ATX Motherboard
Cooling Corsair H115i PRO RGB, 280mm Radiator, Dual 140mm ML Series PWM Fans
Memory G.Skill TridentZ 64GB (4 x 16GB) DDR4 3200
Video Card(s) Sapphire Radeon RX 580 8GB Nitro+ SE + (Radeon 6700XT | When the $ is Right)
Storage Corsair Force MP500 480GB M.2 (OS) + Force MP510 480GB M.2 (Steam/Games)
Display(s) Asus 27" (MG278Q) 144Hz WQHD 1440p + 1 x Asus 24" (VG245H) FHD 75Hz 1080p
Case Corsair Obsidian Series 450D Gaming Case
Audio Device(s) SteelSeries 5Hv2 w/ ASUS Xonar DGX PCI-e GX-2.5 Audio Engine Sound Card
Power Supply Corsair RM750x Power Supply
Mouse Razer DeathAdder PC Gaming Mouse - Ergonomic Left Hand Edition
Keyboard Logitech G15 Classic Gaming Keyboard
Software Windows 10 Pro - 64-Bit Edition
Benchmark Scores I'm the Doctor, Doctor Who. The Definition of Gaming is PC Gaming...
This isn't news, it's nonsense.
Now we have Intel fan boys on wccftech spreading rumors of Ryzen being a design flaw due to this article lol, ridiculous.
 

btarunr

Editor & Senior Moderator
Staff member
Joined
Oct 9, 2007
Messages
42,906 (8.03/day)
Location
Hyderabad, India
System Name RBMK-1000
Processor AMD Ryzen 7 5700G
Motherboard ASUS ROG Strix B450-E Gaming
Cooling DeepCool Gammax L240 V2
Memory 2x 8GB G.Skill Sniper X
Video Card(s) Palit GeForce RTX 2080 SUPER GameRock
Storage Western Digital Black NVMe 512GB
Display(s) BenQ 1440p 60 Hz 27-inch
Case Corsair Carbide 100R
Audio Device(s) ASUS SupremeFX S1220A
Power Supply Cooler Master MWE Gold 650W
Mouse ASUS ROG Strix Impact
Keyboard Gamdias Hermes E2
Software Windows 11 Pro
Not fair comparison at all. By the news post itself, "a little known open source program" designed my one guy, wouldn't be used by Barclays.

No, my point is the disgruntled IT guy Barclay's just fired could crash a "Naples" powered server with just this "little known program."
 
Joined
Oct 8, 2012
Messages
1,439 (0.41/day)
Location
Israel
Processor AMD Ryzen 7 5800X
Motherboard B550 Aorus PRO V2
Cooling Corsair H115i RGB Platinum
Memory Gskill Trident Z Neo 3600 2x16GB
Video Card(s) MSI RTX 3070 Trio X
Storage WD Blue SN550 1TB NVME/Supertalent Teranova 2x1TB
Display(s) Acer XV340CK
Case Corsair 4000D Airflow
Power Supply Corsair HX850i
Mouse Logitech G502 Lightspeed
Keyboard Logitech G513 Tactile
Software Windows 10 Pro
It's funny how people seem to be missing the point in this article, anyway, I hope AMD is able to fix this.
 
Joined
Apr 21, 2010
Messages
475 (0.11/day)
System Name Home PC
Processor Ryzen 1600X
Motherboard Asus Prime X370 Pro
Cooling Thermaltake Contac Silent 12
Memory Dual channel G skill F4-3200C16-8GVKB
Video Card(s) XFX RX480 GTR - XFX Double Dissipation R9 290 (inactive)
Storage Samsung SSD Evo 120 -Adata SX6000 Lite 512 GB - Toshiba 2TB HDWT720
Display(s) AoC 931wx (19in, 1680x1050)
Case Green Magnum Evo
Power Supply Green 650UK Plus
Mouse Green GM602-RGB ( copy of Aula F810 )
Keyboard Old 12 years FOCUS FK-8100
The Stilt said:
The issue with Flops was found and fixed in the beginning of february.
The current µcode version dates to 01/27/2017, so the fix is obviously not included yet (due to the time required for validation).
Flops is only affected when the SMT is enabled, so disabling the SMT can be used as a temporary work-around (until the actual fix arrives).

Source
 
Joined
Oct 2, 2004
Messages
13,791 (2.14/day)
No, my point is the disgruntled IT guy Barclay's just fired could crash a "Naples" powered server with just this "little known program."

It's a bit disingenuous to create drama over a bug (I'm not going to deny that!) and ignoring the fact the fix exists (as posted by @behrouz above) , but hasn't been pushed out yet because of required testing procedures. It's why I questioned newsworthiness of this bug...
 
Joined
Sep 6, 2013
Messages
1,964 (0.62/day)
Location
Athens, Greece
System Name 3 systems: Gaming / Internet / HTPC
Processor Ryzen 7 2700X / Ryzen 7 2600X / AM3 Athlon 645 unlocked to 6 core @ 3.6+GHz
Motherboard MSI X470 Gaming Plus Max (1) / MSI X470 Gaming Plus Max (2) / Gigabyte GA-990XA-UD3
Cooling Νoctua U12S / AMD Wraith / Snowman M-T6
Memory 16GB G.Skill RIPJAWS 3600 / 16GB G.Skill Aegis 3200 / 16GB Kingston 2400MHz (DDR3)
Video Card(s) XFX RX 580 8GB + GT 710 (PhysX)/ GT 730 / HD 5670
Storage NVMe x 3 + SATA SSDs, SATA HDDs / Samsung 256GB NVMe + more / Samsung SSD 120GB
Display(s) Samsung LE32D550 32'' TV(2 systems connected) 1080p OC @ 75Hz / 19'' HP monitor + projector
Case Sharkoon Rebel 12 / Sharkoon Rebel 9 / Xigmatek Midguard
Audio Device(s) onboard
Power Supply Chieftec 850W / Sharkoon 650W / Seasonic 400W
Mouse CoolerMaster / Rapoo / Logitech
Keyboard Spartan Gear / Natec / CoolerMaster
Software Windows 7 and 10
Joined
Feb 9, 2009
Messages
1,618 (0.33/day)
People are missing the point: A program can be coded to crash zen. Someone could throw that code into a website ad for example, and *bam* AMD stocks plummet.

Hopefully a BIOS or windows security update can fix this one before it goes bad.
what? web code doesnt run native like that...
 
Joined
Dec 10, 2015
Messages
545 (0.23/day)
Location
Here
System Name Skypas
Processor Intel Core i7-6700
Motherboard Asus H170 Pro Gaming
Cooling Cooler Master Hyper 212X Turbo
Memory Corsair Vengeance LPX 16GB
Video Card(s) MSI GTX 1060 Gaming X 6GB
Storage Corsair Neutron GTX 120GB + WD Blue 1TB
Display(s) LG 22EA63V
Case Corsair Carbide 400Q
Power Supply Seasonic SS-460FL2 w/ Deepcool XFan 120
Mouse Logitech B100
Keyboard Corsair Vengeance K70
Software Windows 10 Pro (to be replaced by 2025)
Joined
Jul 23, 2011
Messages
1,585 (0.40/day)
Location
Kaunas, Lithuania
System Name my box
Processor AMD Ryzen 9 5950X
Motherboard ASRock Taichi x470 Ultimate
Cooling NZXT Kraken x72
Memory 2×16GiB @ 3200MHz, some Corsair RGB led meme crap
Video Card(s) AMD [ASUS ROG STRIX] Radeon RX Vega64 [OC Edition]
Storage Samsung 970 Pro && 2× Seagate IronWolf Pro 4TB in Raid 1
Display(s) Asus VG278H + Asus VH226H
Case Fractal Design Define R6 Black TG
Audio Device(s) Using optical S/PDIF output lol
Power Supply Corsair AX1200i
Mouse Razer Naga Epic
Keyboard Das Keyboard Model S Ultimate
Software Funtoo Linux
Benchmark Scores 217634.24 BogoMIPS
I'm pretty sure you can crash ANY system by feeding it with instructions that are not meant for it.

Nope, feeding a CPU with instructions not meant for it simply makes the CPU issue an illegal instruction fault, which normally results in the program terminating (i.e. "crashing"). If that happens in kernelspace code, that usually means the whole [virtual] machine "chrashes", but on userspace code, that should normally only kill the offending process. Meanwhile, if a userspace program can bring the whole system down, that is quite abnormal.

FWIW, I doubt this is something that can't be simply fixed with a microcode update.
After all, every CPU ends up with hundreds of errata, some a lot scarier than simple DoS such as this one.
 
Joined
Apr 12, 2013
Messages
4,789 (1.44/day)
No, my point is the disgruntled IT guy Barclay's just fired could crash a "Naples" powered server with just this "little known program."
Someone running Naples will likely have their own application coded to run on the Ryzen server, they don't just copy/paste the aforementioned code to run on their application & crash (test) a server. Then there's also app & OS specific safeguards that usually prevents system crash, like the sandboxing in chrome or any number of OS safeguards under Windows. Mind you linux is generally more secure (IMO) & most servers run on linux, not to mention running code locally with elevated privilege isn't as simple on linux. Someone also said that web code doesn't crash OS just like that, so even for web requests you'd have to do some major goofup to let this crash a system.
 
Last edited:
Joined
May 20, 2011
Messages
205 (0.05/day)
System Name Windows 10 Pro 64 bit
Processor Ryzen 5 1600X @3.9 1.25v
Motherboard Asrock X370
Cooling True Spirit
Memory 16 GB 2800 MHz
Video Card(s) GTX 1060
Storage 500 GB seagate + 1TB Samsung + 1 TB WD green + 250 GB SSD Samsung EVO
Display(s) LG 23MP67HQ Borderless + LG 42 Inch Full HD
Power Supply CM V1000
Benchmark Scores 1300 CB R15
. But for some reason, it only affects this particular benchmark. Other programs (like prime95 and y-cruncher) aren't affected despite using FMAs.
.
 
Joined
Apr 16, 2010
Messages
3,307 (0.75/day)
Location
Portugal
System Name Dust gatherer (ol' Dale-y)
Processor AMD Ryzen 7 1700
Motherboard MSI X370 Gaming Plus
Cooling Noctua NH-C12P SE14 + NM-AM4 + NF-P14r
Memory 2x 8GB G.Skill Trident Z (F4-3200C16D-16GTZB)(Hynix)
Video Card(s) Sapphire Pulse AMD Radeon RX 5500 XT 8GiB
Storage HyperX Savage 240GB + KC300 240GB + 750EVO 500GB
Display(s) LG Flatron W2361V 23'' FHD (RN a 24'' IPS HP oldie)
Case NOX Blaze w/random fans and no aRrGeeBee
Audio Device(s) Creative SoundBlasterX AE-5 + GigaWorks t40 series II
Power Supply Corsair TX650M
Mouse Microsoft Comfort Mouse 4500
Keyboard Logitech Media Keyboard (PS/2)
Software Windows 10 x86-64 (1909)
Benchmark Scores Needs a reinstall...but it used to play a game or two in TV resolution from time to time, in 2019
No, my point is the disgruntled IT guy Barclay's just fired could crash a "Naples" powered server with just this "little known program."
Well, maybe that IT guy wasn't very good at it anyway because he didn't blacklist executables that shouldn't run on a production server in the first place...and this a finance-related server you're making an example about. :)
This news isn't a big deal...
 
Joined
Nov 13, 2007
Messages
8,957 (1.69/day)
Location
Austin Texas
System Name Espresso Machine
Processor 12600K @ 5.2Ghz
Motherboard MSI 690-I PRO
Cooling 280MM push pull water Loop
Memory 32 GB DDR5 6200 MHZ 32-35-35-67
Video Card(s) MSI Ventus RTX 3080 UC @1810mhz 775mv
Storage 3x1TB SSDs, 2TB SSD
Display(s) LG CX OLED 48"
Case SLIGER S610
Audio Device(s) Bose Solo
Power Supply Corsair SF750
Mouse Superlight wireless
Keyboard 65% mini hyperspeed wireless
Software Windows 11
sounds patcheable
 
Top