Intel confirms Hyper-Threading flaw in several CPUs

(tldrdailynews.com)

153 points | by lucamark 5 hours ago

18 comments

  • lawrencejgd 3 hours ago
    • jaen 1 hour ago
      Indeed, what's with the recent trend of linking to zero-value AI slop summaries/regurgitations on HN when original sources are easily available?

      Should mods replace these kinds of links?

  • jonsoft 2 hours ago
  • CoastalCoder 4 hours ago
    IIRC, Intel's onboarding video strongly emphasized the importance of candor about processor issues, using the FDIV debacle as a case study.

    This seems at odds with that.

    • adrian_b 27 minutes ago
      Every Intel CPU, like every CPU made by any other company, has dozens or even hundreds of errata.

      So it makes sense that they do not have a press release for each one of them.

      Intel has the euphemistically named documents "Specification Update", which contain the list of bugs and workarounds. The corresponding lists of AMD bugs have also an euphemistic name: "Revision Guide".

      Any developer facing low-level problems, like compiler writers, device driver writers, operating system contributors, must search and read Intel's "Specification Update" documents and AMD's "Revision Guide" documents.

      Unfortunately the quality of technical documentation at all companies has been steadily degrading for more than a quarter of century, so nowadays these lists of bugs and workarounds, at least in their public versions, i.e. available without an NDA, are much more frequently incomplete or not up-to-date, than in the past.

    • dofm 3 hours ago
      FDIV is getting on for one entire chip developer career ago, I think?

      The Pentium project started in 1989; there cannot be that many current Intel employees who were designing silicon then who are involved with silicon design now.

      So most people are working from the war story, rather than the shared experience.

      People begin to forget, but Chesterton's Fence pops up everywhere.

      (FDIV was interesting — it seemed like everyone knew all of a sudden computers could be fallible at maths. Really random people who you would not expect to know would joke "I hope a Pentium didn't come up with these numbers!" Real tabloid stuff, first of its kind)

      • Almondsetat 3 hours ago
        Engineers in other fields use debacles and incidents from a century ago to avoid repeating them, why would making processors be any different?
        • Someone 1 hour ago
          Other engineering projects have design errors, too. Differences with CPUs are that they often are easier to fix in the field. Cars get recalls, for example, and bridges get fixes to prevent excessive rusting or excessive vibration.

          CPUs also typically are made in quantities that are rarely seen in other complex long-lived products (yes, nails and screws are made by the billions, too, but those are simpler than CPUs)

        • hnlmorg 3 hours ago
          They also repeat mistakes learned recently too.

          There’s a reason building regulations are often very strict: it’s because you can’t always trust businesses to do the right thing when it comes to human safety.

          • heisenbit 2 hours ago
            Repeatability is the hallmark of mature development processes.

            A lot of our work is actually dealing with exceptions and corner cases and processes do have tremendous value but management often falls for the safety illusion it provides.

          • mschuster91 2 hours ago
            > There’s a reason building regulations are often very strict: it’s because you can’t always trust businesses to do the right thing when it comes to human safety.

            Watch some Cy Porter on Youtube. Holy shit it's insane what builders try to get away with it.

        • dofm 3 hours ago
          Money and discipline. Engineers in other fields

          1) are actual trained, qualified engineers, usually with liability

          2) do not become billionaires six months after dropping out of their degree with a business plan sketched on the back of someone's "HAVE YOU SEEN MY DOG" flyer

          • Sharlin 3 hours ago
            To be fair I’m pretty sure Intel still employs chip designers with actual digital electronics engineering degrees, probably PhDs, even though chip design is much more like programming than it was in Pentium’s days.
      • formerly_proven 2 hours ago
        CPUs have had so many issues over the past decade, from both AMD and Intel, it's not likely they've forgotten what a disaster is.

        Just from the top of my head, I'm probably missing half their failures.

        Intel: Intel 13th/14th gen (RPL) self-cooking CPUs (Vmin, eTVB, ...), RPL instability, RPL manufacturing defects, Atom C3000 manufacturing defect causing mass field failures, TSX being completely broken and largely removed, the Skylake Prime95 bug, Somethinglake crashing when HT is enabled, the general P/E-core compatibility fiasco and subsequent AVX512 removal from consumer lines, ...

        AMD: AMD AM5 exploding CPUs and the 9000X3D fiasco, AMD SoCs with self-degrading kinks (yes daddy AXMP punish me with 1.4 V), all the Zen 1 bugs (remember GCC crashing Zen 1?), Zen 2 never managing advertised clocks/performance before being replaced with Zen 3, AM4 never having reliable USB, X570/B550 PCIe 4.0 being completely bug-ridden, the AM4 APU failures, ...

        And both have a nearly infinite list of CPU security vulnerabilities, Meltdown, Spectre, then ten years of Meltdown-and-Spectre-Variations, VM escapes, though Intel is definitely leading there. Which could be because Intel gets more research attention or AMD does a better job. Anyway, in either case the fixes are usually microcode updates or kernel workarounds which usually slightly degrade performance, but the cumulative effect of slightly degrading performance 30 times in a row is a substantial degradation.

        • adrian_b 14 minutes ago
          I remember very well gcc crashing Zen 1, because AMD made me loose with that almost EUR 1000.

          I pre-ordered the best Ryzen, one of the best motherboards for it and 64 GB of ECC memory.

          After discovering that under Linux the Ryzen was unusable garbage, I dumped it together with the motherboard and I bought an Intel Kaby Lake Xeon and a motherboard for it. From the Ryzen fiasco I could keep only the 64 GB of ECC memory, but at that time memory was cheap, unlike today.

          Nonetheless, I did not keep a grunge against AMD for my financial loss, and after the launch of Zen 2 I had to buy only AMD CPUs, because after every launch of new Intel CPUs, they were never cheap enough to justify their inferior performance (my needs are biased towards high multi-threaded performance, where starting with Zen 2 AMD was always better).

          AMD has never given an adequate explanation of the Zen 1 bug, even if eventually, after a lot of delays, they accepted to replace the CPUs upon request, but I did not attempt to use that, because sending the CPU from Europe to AMD was costly and there was no clear guarantee that the replacement CPU will not also be buggy.

        • guardiandemon 6 minutes ago
          Considering the complexity at nanoscale I'm surprised they work at all!
        • chiph 17 minutes ago
          It would be interesting to compare defect count against transistor count. Is the defect rate proportional?
      • quotemstr 3 hours ago
        The energy in tech right now is anti-Kerckhoff, anti-liberal (lowercase l), and anti-candor.
        • dofm 3 hours ago
          This goes in cycles, though. We're about due another Therac-25 (which is now fully outside of a single developer career duration). Had they not been caught, perhaps Theranos would have been that scandal.
          • solyin 2 hours ago
            737 MAX not rate in your book? Therac 25 was in 1986!
            • dofm 32 minutes ago
              Therac-25 was released in late 1982, and its development was from the mid-1970s onwards.

              It is outside any developer's working lifetime, realistically. Even the office junior in 1982 would be in their sixties.

              I imagine most of the Therac team are either long retired or no longer with us.

    • cube00 9 minutes ago
      > This seems at odds with that.

      Plenty of companies pay endless lip service as long as it's free and doesn't cost them anything in money or negative press.

      Rare to have a company stick to its (alleged) values in a crisis.

  • mgaunard 2 hours ago
    Isn't it what hyperthreading does by definition? Delaying the thread that shares the same core.

    Do they mean they delay it even if suitable execution ports are actually available?

    • ajasmin 55 minutes ago
      That is my rough understanding as well i.e. hyperthreading is feeding the execution pipeline from two threads so as to more effectively use the ALU.

      I would have tough it normal that one thread can stale another...

    • mrklol 2 hours ago
      Afaik, no. Should be using the idle ports which is rarely not the case. And if that is delayed / blocked it’s getting way slower.
  • DeepLogin 2 hours ago
    • peter_d_sherman 14 minutes ago
      First of all, excellent link!

      The real serious issues seem to start around page 17 -- these are necessary reading for anyone who is going to invest heavily in these CPU's, i.e., owners/investors of datacenters and tech CEO's that are heavily vested in cloud/datacenter infrastructures, etc., etc.

      While some or even most of these issues may not be all that severe in their scope or implications -- what's scary about this document is the overwhelming quantity of issues that are flagged as "no fix" -- as it would take only one severe unfixed/unpatched one of them to lead to yet another future security "rabbit-hole" nightmare...

      What's the old proverbial saying?

      "A chain is only as strong as its weakest link..." ?

      Anyway, a must-read for any datacenter/cloud CEO/owner/investor and a must read for any tech CEO whose products/services rely on datacenter/cloud infrastructures...

      A very important document for early awareness of potential future problems!

  • pjmlp 1 hour ago
    Based on my experience, hyper threading was anyway a workaround until multicore became widely available, not sure how much it is still worthwhile, given the impact in shared units across the CPU.

    Usually having hyperthreads killing each other's cache entries, is much worse that splitting the work across multiple real cores, with a few synchronisation points.

    • ls65536 10 minutes ago
      It can often still be worthwhile to keep SMT enabled (if available), and very often it is for many general use cases, but it definitely depends on the workload.

      Modern cores have become exceptionally good at extracting instruction-level parallelism from a single thread, so SMT becomes relatively less useful all else being equal. At the same time, modern cores also have much wider and more numerous internal resources where a single thread will be more likely to leave more of these resources idle (which could be useful to another simultaneously executing thread).

      It seems that if you have two threads that tend to each saturate or bottleneck on the same internal CPU resources (execution resources, various buffers, caches, etc.), then SMT is more likely to reduce overall performance compared to just running a single thread at a time sequentially. But you need to measure to be sure.

      As a fun anecdote, one of the best relative improvements I've seen in leaving SMT enabled (vs. disabled) was on one of the earliest (in-order!) Intel Atom CPUs. I suppose getting good ILP out of a single thread was simply not possible there, so even with the tiny execution resources available in that CPU there was still plenty to allow another thread to benefit from substantially.

    • gsliepen 1 hour ago
      Hyper-threading is a way to make better use of the execution engines of a CPU core. Some instructions stall (for example, because they need to wait for memory), so you want to run something else in the mean time. Instruction reordering and speculative execution only goes so far. If you have a completely separate thread available that can do some useful work, then you improve the overal efficiency.

      Note that GPUs basically are hyper-threaded CPUs that not have just 2 or 4 threads per core, but thousands. This approach avoids needing all the complicated out-of-order circuitry, but it only works if you really have thousands of threads, which for a GPU is actually the case.

      • pjmlp 47 minutes ago
        Back in 2010 I disabled hyperthreading on development machines, due to decrease in performance on Java and .NET application servers.

        They were much faster using only real cores.

        So maybe my experience is tainted due to the runtimes not being written in a way that they could take advantage of hyperthreading, however I have my doubts it has improved since then, unless the code is aware of being executed in hypethreads and act accordingly.

    • swiftcoder 1 hour ago
      Hyperthreading was also a workaround for software that did all its networking by leaving hundreds (or even thousands) of OS threads blocked on IO.

      As epoll/kqueue/iocp/io_uring et al have become more widely adopted, and we offload a lot more of this IO multiplexing into userspace, the value proposition gets hazier.

      • ls65536 34 minutes ago
        A thread blocked on IO gets taken off the CPU by the operating system though, so it isn't "running" as a thread on the CPU, and it isn't using up any resources in this context that might be contending with another SMT thread (other than maybe things like leftover TLB entries or cache lines that become much more likely to just get evicted soon anyway).

        In some sense you can think of SMT as a lower-level resource sharing capability (of execution units and various buffers and such) inside the CPU core, which is somewhat analogous to how the operating system shares the higher-level logical CPU by timeslicing access to it across different runnable threads. The latter capability also layers on top of the former, which makes for some interesting performance implications from an operating system scheduler's point of view, but they're still different things.

    • whizzter 15 minutes ago
      Doesn't HT help mask cache latencies if your code is very cache-unfriendly? Ie there is computing that can move forward whilst the memory system is waiting?
  • pamcake 3 hours ago
    Mentioned affected series: Alder Lake (Gen12), Raptor Lake (Gen13), Meteor Lake (Intel Core Ultra Gen1), select Core Ultra 200U processors (ARL080).
    • moffkalast 2 hours ago
      "Why is it when something happens, it is always you?"

      Raptor Lake: "Believe me, I've been asking myself the same question for four years."

      • happycube 39 minutes ago
        It wasn't Alder Lake MAX's (original) fault. This time.
  • soleveloper 3 hours ago
    "Unfixable" is misleading here; a microcode update will likely mitigate it, just like most other silicon bugs.

    edit: Original title was:

    > Intel confirms unfixable Hyper-Threading flaw in several CPUs

    • rvba 1 hour ago
      it depends what fix this will be - and how much it impacts performance

      for example disabling hyper-treading is a "fix"..

    • josteink 3 hours ago
      I also think we can suffix the title “, again”. ;)
  • quotemstr 3 hours ago
    ISTR a problem from a few months ago in which the processor could time out entering SMI across a core, allowing one thread on a core to be in SMI while the other runs user code, allowing that user thread (via other shenanigans) to explore and mutate SMI state.

    Is this that? If so, this is a SMI break, yes?

    • pocksuppet 3 hours ago
      To find the YouTube conference presentation I had to jump through some hoops because most attempts to Google or YouTube this bring up nothing but AI slopcopies. Here it is thanks to some random YouTube user's public playlist. https://www.youtube.com/watch?v=O43cvXUmQ80

      This is Christopher Domas's talk about using slow instructions to break SMM transitions. It's more about the BIOS than the processor though. This is the same person who brought us Sandsifter, MOVfuscator, the hidden RISC mode in some obscure CPU, and the SMM memory sinkhole. I'm just noticing his slides are partially AI.

      And the GitHub slow instructions list: https://github.com/xoreaxeaxeax/asm-hall-of-shame

      The winning instruction took 62 seconds to execute. As far as any software can possibly tell, like the BIOS or operating system, that processor core has completely hung, disappeared, or exploded, until it suddenly and unexpectedly wakes up again a minute later.

      • quotemstr 3 hours ago
        Thanks for digging that up! And yes, I'm wondering whether the vagueness in the linked articles is about trying to dance around an unfixable SMM break
  • athrowaway3z 3 hours ago
    Is this site an AI generated summaries of google news and just ripping off https://www.techpowerup.com/355512/intel-confirms-hyper-thre... in this case?

    Anyways both it and the techpowerup:

    > The issue only affects systems with Hyper-Threading enabled; disabling Hyper-Threading is not listed as an official workaround but is suggested by some commentators as a potential mitigation.

    Is an strange reading - Intel literally says it only affects systems with HT enabled.

  • zerof1l 20 minutes ago
    Over the last years, there have been so many software mitigations for different CPU bugs, almost all of which negatively impact performance. Makes me question the benchmarks when the new CPU comes out. Yeah, it is faster by X% on the day it is released, but in a couple of years you're lucky to get the previous generation's performance.
  • mort96 3 hours ago
    Okay is this just a minor performance bug where some workloads become a tiny bit slower than they normally would? This really doesn't seem like a big deal.

    But the article makes no attempt what so ever to describe the impact. What's up with that?

    • murderfs 3 hours ago
      It's probably not "a tiny bit slower", but something like doing an instruction that locks up the sibling thread for 200 billion cycles like in https://github.com/xoreaxeaxeax/asm-hall-of-shame.

      Doesn't matter for single-user machines, but cloud providers might care a bit.

      • nraynaud 3 hours ago
        I wonder if that would leak crypto keys from one thread to the other.
      • mgaunard 2 hours ago
        Most of these are just slow and contended I/O.

        Disappointing.

      • jart 29 minutes ago
        You got an assembly instruction to take a whole minute. Wow.
    • 9029 2 hours ago
      Intel says "Due to this erratum, system software may not behave as expected"
      • vardump 1 hour ago
        That's handy. You can in fact describe almost every errata with the exact same sentence!
  • FartyMcFarter 36 minutes ago
    > Although Intel does not list disabling HT as an official workaround, it seems to be the best approach to address this problem.

    Hah. Can you imagine cloud providers instantly losing half their advertised CPU "cores" on every Intel machine?

  • a012 1 hour ago
    After Meltdown Intel CPUs were already taking a big hit, and now this one. They deserve their downfall.
    • sabas123 1 hour ago
      Compared to which other vendor? Its not like every other x64 vendor has crazy shit in at least a couple generations.

      Making fast CPUs is hard, let alone secure ones.

  • lolmfaoa 3 hours ago
    [dead]
  • giraffe455 1 hour ago
    HT was always a hack and it might have had a point in early mono-core or dual-core processors, but today it is not justified as we have plenty of actual cores to spare. We have more cores than the OS or the average program can take advantage of. These hacks only add complexity and security issues now.
    • goalieca 1 hour ago
      It was useful for not stalling the pipeline on things like a cache miss. It was more about just doing more work and keeping everything moving. This is complicated though and can slow things down when done wrong which actually leads to timing attacks and things.
    • theandrewbailey 1 hour ago
      IBM and Oracle CPUs do the same thing, where it's called symmetrical multi-threading. They take security very seriously, as do their users. Instead of two threads per CPU, they do like, eight. It could be a security through obscurity thing, but I think that if running multiple threads on one CPU core was inherently a security issue, of all people, they would have noticed it by now.
    • bartwe 1 hour ago
      HT has its place, it is a handy way to process more work when waiting on more data for ram but more slots for queries remain on the memory controller. One of the ways that make gpu workloads less sensitive to ram latency.
  • bdnsn 4 hours ago
    I doubt this is that important when it's taken them years just to find the issue.
    • alanfranz 3 hours ago
      Unless this can trigger a dos in shared environments, eg clouds.

      Or unless it can be used as a covert comm channel.

    • lucamark 3 hours ago
      Not sure because hard to find doesn't mean not important. It likely happens in corner-case situations
    • BlackRabbit1 3 hours ago
      Depends.

      AVX512 was also a great invention until they found out that the CPU heats up too much while using and clocking its core down because of it. Rendering other - theoretically slower calculation paths - more efficient.

      Issue is fixed with new latest generation of CPUs. But back then it needed a Compiler fix avoiding these instructions.

      • gmokki 1 hour ago
        I think it was chipsandcheese article that showed that modern AMD processors can not be overheated with avx512 instructions.

        The transfer of data from memory to CPU on the other hand caused the CPU to throttle.

      • mort96 3 hours ago
        The AVX512 FUD really needs to stop.
        • formerly_proven 1 hour ago
          "fixed with new latest generation"... like anything newer than Skylake-X (~2016).
          • mort96 1 hour ago
            I mean we're talking about one architecture from a decade ago where there were some workloads which got slower from AVX-512, right?

            Today, a 512-bit version of an algorithm will typically be significantly faster than the 256-bit version of the algorithm.