‹ BackHN Continuity

Thread

AMD's random number generator can't generate a 0?

288 points · 220 comments · BruceEel

  1. 349ru3h4f03 · · focus · HN ↗
    <a href="https:&#x2F;&#x2F;www.amd.com&#x2F;en&#x2F;resources&#x2F;product-security&#x2F;bulletin&#x2F;amd-sb-7055.html" rel="nofollow">https:&#x2F;&#x2F;www.amd.com&#x2F;en&#x2F;resources&#x2F;product-security&#x2F;bulletin&#x2F;a...
    1. peri-cl · · focus · HN ↗
      The OP says they discovered this on a Zen 2, which is not covered by that bulletin (?)

      [edit to add]: Also, the bulletin is solely about RDSEED zeros, whereas the OP is also reporting RDRAND zeroes.

      1. ciupicri · · focus · HN ↗
        Older AMD processors had issues as well:

        <a href="https:&#x2F;&#x2F;github.com&#x2F;systemd&#x2F;systemd&#x2F;pull&#x2F;12536&#x2F;commits&#x2F;1c53d4a070edbec8ad2d384ba0014d0eb6bae077" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;systemd&#x2F;systemd&#x2F;pull&#x2F;12536&#x2F;commits&#x2F;1c53d4...

        1. [deleted] · · focus · HN ↗

          [deleted]

        2. peri-cl · · focus · HN ↗
          That one&#x27;s insidious!

          I found the thread about it,

          <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=19848953">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=19848953

          Yikes at this: &quot;I am so glad I resisted pressure from engineers working at Intel to let &#x2F;dev&#x2F;random in Linux rely blindly on the output of the RDRAND instructure.&quot; -Theodore Ts&#x27;o (2013)

        3. matja · · focus · HN ↗
          Why does systemd use architecture-specific instructions rather than using the kernel-provided random interface in the first place?
          1. claudex · · focus · HN ↗
            It was removed later <a href="https:&#x2F;&#x2F;github.com&#x2F;systemd&#x2F;systemd&#x2F;commit&#x2F;ffa047a03e4c5f6bd3af73b7eecb99cd230fe204" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;systemd&#x2F;systemd&#x2F;commit&#x2F;ffa047a03e4c5f6bd3...
Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.