1. 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

Discussion in 'News' started by btarunr, Mar 16, 2017.

  1. btarunr

    btarunr Editor & Senior Moderator Staff Member

    Joined:
    Oct 9, 2007
    Messages:
    33,133 (9.58/day)
    Thanks Received:
    16,881
    Location:
    Hyderabad, India
    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.
     
    Last edited: Mar 16, 2017
    lexluthermiester says thanks.
  2. RejZoR

    RejZoR

    Joined:
    Oct 2, 2004
    Messages:
    10,364 (2.27/day)
    Thanks Received:
    4,379
    Location:
    Europe/Slovenia
    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?
     
    AsRock and yogurt_21 say thanks.
    10 Year Member at TPU
  3. Nkd

    Joined:
    Sep 15, 2007
    Messages:
    110 (0.03/day)
    Thanks Received:
    25
    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
     
  4. the54thvoid

    the54thvoid

    Joined:
    Dec 14, 2009
    Messages:
    5,936 (2.23/day)
    Thanks Received:
    5,010
    Location:
    Glasgow - home of formal profanity
    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....
     
    psyko12, AsRock, ensabrenoir and 3 others say thanks.
  5. btarunr

    btarunr Editor & Senior Moderator Staff Member

    Joined:
    Oct 9, 2007
    Messages:
    33,133 (9.58/day)
    Thanks Received:
    16,881
    Location:
    Hyderabad, India
    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?
     
    Jack1n and hellrazor say thanks.
  6. RejZoR

    RejZoR

    Joined:
    Oct 2, 2004
    Messages:
    10,364 (2.27/day)
    Thanks Received:
    4,379
    Location:
    Europe/Slovenia
    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...
     
    10 Year Member at TPU
  7. Mussels

    Mussels Moderprator Staff Member

    Joined:
    Oct 6, 2004
    Messages:
    45,712 (10.03/day)
    Thanks Received:
    13,135
    Location:
    Australalalalalaia.
    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.
     
    psyko12, ensabrenoir and Aenra say thanks.
    10 Year Member at TPU
  8. silentbogo

    silentbogo

    Joined:
    Nov 20, 2013
    Messages:
    1,834 (1.50/day)
    Thanks Received:
    1,968
    Location:
    Dark and creepy attic
    Tesla Model S won't run on Diesel!
    And I quote:
     
  9. the54thvoid

    the54thvoid

    Joined:
    Dec 14, 2009
    Messages:
    5,936 (2.23/day)
    Thanks Received:
    5,010
    Location:
    Glasgow - home of formal profanity
    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.
     
    psyko12, Lionheart and nemesis.ie say thanks.
  10. Taloken New Member

    Joined:
    May 27, 2015
    Messages:
    8 (0.01/day)
    Thanks Received:
    4
    From the hwbot thread, a fix is coming with a new microcode. Also disabling SMT prevent the crash.
     
    nemesis.ie says thanks.
  11. Super XP

    Super XP

    Joined:
    Mar 23, 2005
    Messages:
    2,916 (0.66/day)
    Thanks Received:
    588
    Location:
    Ancient Greece, Acropolis (Time Lord)
    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.
     
    Lionheart and nemesis.ie say thanks.
    10 Year Member at TPU
  12. btarunr

    btarunr Editor & Senior Moderator Staff Member

    Joined:
    Oct 9, 2007
    Messages:
    33,133 (9.58/day)
    Thanks Received:
    16,881
    Location:
    Hyderabad, India
    No, my point is the disgruntled IT guy Barclay's just fired could crash a "Naples" powered server with just this "little known program."
     
  13. Jack1n

    Jack1n

    Joined:
    Oct 8, 2012
    Messages:
    1,358 (0.83/day)
    Thanks Received:
    399
    Location:
    Israel
    It's funny how people seem to be missing the point in this article, anyway, I hope AMD is able to fix this.
     
    lexluthermiester says thanks.
  14. W1zzard

    W1zzard Administrator Staff Member

    Joined:
    May 14, 2004
    Messages:
    16,361 (3.48/day)
    Thanks Received:
    16,569
    No you can't. Your application will crash and that's it.
     
    psyko12, hellrazor, OSdevr and 2 others say thanks.
    10 Year Member at TPU
  15. behrouz

    Joined:
    Apr 21, 2010
    Messages:
    32 (0.01/day)
    Thanks Received:
    13
    Source
     
  16. RejZoR

    RejZoR

    Joined:
    Oct 2, 2004
    Messages:
    10,364 (2.27/day)
    Thanks Received:
    4,379
    Location:
    Europe/Slovenia
    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...
     
    nemesis.ie says thanks.
    10 Year Member at TPU
  17. RejZoR

    RejZoR

    Joined:
    Oct 2, 2004
    Messages:
    10,364 (2.27/day)
    Thanks Received:
    4,379
    Location:
    Europe/Slovenia
    There is always a way, they just haven't found it yet...
     
    10 Year Member at TPU
  18. john_

    john_

    Joined:
    Sep 6, 2013
    Messages:
    1,003 (0.77/day)
    Thanks Received:
    473
    Location:
    Athens, Greece
    psyko12, nemesis.ie and Chaitanya say thanks.
  19. kn00tcn

    kn00tcn

    Joined:
    Feb 9, 2009
    Messages:
    1,342 (0.45/day)
    Thanks Received:
    344
    Location:
    Toronto
    what? web code doesnt run native like that...
     
  20. XiGMAKiD

    XiGMAKiD

    Joined:
    Dec 10, 2015
    Messages:
    105 (0.22/day)
    Thanks Received:
    60
    Location:
    Here
    Good to know there's a fix on the way
     
    Aenra says thanks.
  21. Vinska

    Vinska

    Joined:
    Jul 23, 2011
    Messages:
    1,550 (0.75/day)
    Thanks Received:
    1,459
    Location:
    Kaunas, Lithuania
    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.
     
  22. R0H1T

    Joined:
    Apr 12, 2013
    Messages:
    186 (0.13/day)
    Thanks Received:
    108
    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: Mar 16, 2017
  23. darkangel0504

    darkangel0504

    Joined:
    May 20, 2011
    Messages:
    186 (0.09/day)
    Thanks Received:
    78
    .
     
  24. _JP_

    _JP_

    Joined:
    Apr 16, 2010
    Messages:
    2,723 (1.07/day)
    Thanks Received:
    776
    Location:
    Portugal
    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...
     
    Super XP and Chaitanya say thanks.
  25. phanbuey

    phanbuey

    Joined:
    Nov 13, 2007
    Messages:
    5,658 (1.65/day)
    Thanks Received:
    1,284
    Location:
    Austin Texas
    sounds patcheable
     

Currently Active Users Viewing This Thread: 1 (0 members and 1 guest)