9 ms·
Solving Spectre and Meltdown may ultimately require a new type of processor
- mindslight 8y agoYeah - AMD! (I kid) Although seriously with the "invisible hand" pushing platform lockdowns across the industry, it's time to stockpile some G34's next to the canned goods.
- lysp 8y agoThe Alternate Mitigation Device cpu?
- mhkool 8y agoThe "new processor" is already being developed. Mill computing is designing the Mill CPU and made 13 videos so far on Youtube explaining most characteristics of the new CPU. The CPU is on par with the latest Xeon, uses 10x less power, and has many great features that enhance performance and security a lot. For example, portals calls are function calls from protection domains to another protection domain and automagically only allow the parameters to be read by the callee and the results be read by the caller. The rest of the data of the other protection domain cannot be accessed. The stack is also secure since there are 2 stacks: one holds all data that one normally find on a stack and is modifiable by the program and the second stack is a hardware-managed stack with the return addresses which is hidden from software. Also the protection on the stack changes with each call and each return such that a stack overflow results in an immediate fault. The CPU has many more features, too many to name here.
- comboy 8y ago> The CPU is on par with the latest Xeon, uses 10x less power (...) When you say the CPU do you mean a working ASIC? Some simulation? Or a plan to make one? And how do you compare them if they have completely different instructions set?
- nikanj 8y agoExtraordinary claims require extraordinary proof. Being on par with the latest Xeon, while using 10x less power, is an absurd claim.
- olefoo 8y agoMoores law is well and truly dead. That's one design cycle == 10x improvement. So not unreasonable within the context of the history of the industry. The proof will be in the product when it ships.
- eropple 8y agoSo there's no proof and the persistent pro-Mill posts are wishcasting? Glad we cleared that up.
- mhkool 8y agoyou did not watch the 13 videos on youtube and the text of the 14 patents that they have filed so far, huh?
- bsder 8y ago> The CPU is on par with the latest Xeon, uses 10x less power, and has many great features that enhance performance and security a lot. Here's the last two companies to spout this line of garbage: Transmeta and SiByte. Remember them? Your statement implies that the Intel engineers have left a lot of design on the table. I assure you, this hasn't been true for quite a long time (circa 1996, arguably, but certainly not since 2000--that's why both Transmeta and SiByte failed). The simple answer to this is: graph the active area vs power consumed for all the chips of a particular technology node. Unless Intel is significantly below that line, you're not going to beat them by much.
- wtallis 8y ago> Your statement implies that the Intel engineers have left a lot of design on the table. The Mill folks would rather argue that Intel's problem is they aren't leaving things on the table—instead, they're shoving tons of extra machinery into their core designs while the Mill tries to avoid extremely power-hungry performance enhancing techniques like speculative out of order execution. > graph the active area vs power consumed for all the chips of a particular technology node Setting aside the difficulties of accounting for differences between different manufacturer's processes at the same node, this still isn't a very informative measure. Active areas of the chip don't all make the same contribution to performance. Speculative execution can light up a lot of silicon executing instructions that don't actually need to be executed. I'm quite skeptical that the Mill guys will ever produce a core that beats Intel on raw performance, but they have plenty of convincing arguments for why their power consumption will be much lower, and I think it's plausible that they will be able to beat Intel on performance per watt for some workloads.
- bsder 8y ago> Mill tries to avoid extremely power-hungry performance enhancing techniques like speculative out of order execution. Go look at Alpha 21164 vs x86 in the timeframe. You don't save as much as you think (and Intel's designs were much shoddier back then). > Setting aside the difficulties of accounting for differences between different manufacturer's processes at the same node, this still isn't a very informative measure. You would think so, but the graph is remarkably consistent. Just because a measure has noise does not make it a useless measure. Intel could be significantly below the curve. But beating the curve is ferociously difficult.
- gruez 8y agoA quick skim on wikipedia says it's yet another VLIW uarch. What's preventing it from being another Itanium?
- zlynx 8y agoI heard rumors that Intel set up a research group to fix this in hardware as soon as the Spectre exploit showed up. Mill may be cool and all but x86 isn't going anywhere. Although I think it'd be hilarious if Intel decided to bring back Itanium with explicit per task cache indexing and no speculative execution. They already have the technology while Mill has never had a silicon implementation.
- noobermin 8y agoSomething very relevant to this discussion was this article[0] from a few weeks back. A bit of a clickbait title, but the points are very relevant: C, based on the PDP-11, has a computation model that no longer really tracks with how a computer actually works today, and in those gaps is where people insert in stuff like speculative execution in the first place to be faster while maintaining the guise to app developers of a "fast PDP-11". [0] https://queue.acm.org/detail.cfm?id=3212479 https://queue.acm.org/detail.cfm?id=3212479 Old discussion (skip the first reply for meat!) https://news.ycombinator.com/item?id=16967675 https://news.ycombinator.com/item?id=16967675
- flukus 8y agoCorrect me if I'm wrong but assembly doesn't offer many more entries into this computation model either does it, especially when considering some non-standard extensions to C? So they've added a lot of processor features with no API. Is there a reason speculative execution had to be added to the processor and not compilers? Would we have been better off if the true memory model was exposed to compilers?
- wtallis 8y ago> Is there a reason speculative execution had to be added to the processor and not compilers? Would we have been better off if the true memory model was exposed to compilers? Binary compatibility is the reason. You can't break the memory model or the instruction set unless you actually have the ability to re-compile everything that your users want to run. This almost never happens in the personal computing world, and emulation is only a partial solution. Intel managed to transition from the 8080 to the 8086 without backwards compatibility by preserving assembly language compatibility, but every architecture shift since then has required either emulation or a backwards-compatible processor mode.
- mitchty 8y ago> Binary compatibility is the reason. You can't break the memory model or the instruction set unless you actually have the ability to re-compile everything that your users want to run. I fail to see how having shared speculation is incompatible with existing binaries. AMD processors for example check security before speculating, instead of just running things in parallel and hoping they don't need to reset registers later. Can you explain how speculative execution is systemic to x86? I can't see it to be honest.
- furi 8y agoSolving Meltdown absolutely does not require a new type of processor. Performing out-of-order executions of privileged instructions is something you can just not do, nobody except Intel is doing it right now in fact. Lots of Spectre variants likewise don't require entirely new processor varieties, such as the lazy floating point speculation vulnerability or the new L1 terminal fault vulnerabilities. The only one that possibly requires a new type of processor is the original Spectre, which is quite hard to completely stamp out all possibility of while retaining the concept of speculative execution.
- xenadu02 8y agoIndeed, AMD CPUs don’t speculate loads until the page protection is checked. That alone eliminates whole classes of vulnerabilities. Cache updates will need to be staged and not “retired” (aka committed and made visible to other cores) until the speculated instructions are retired. That will have some perf impact and cost some die space, but it is hardly fatal. Whether AVX survives in its current form is an open question. Those 512-bit vector units cost a lot of power. Intel gets away with powering them down when unused, leading to a large delay when the first vector instruction is encountered after an idle period. Powering them up continuously blows their TurboBoost strategy. If they can eliminate the penalty or make the units more power efficient it might not require many changes, otherwise AVX may need to shrink back down to narrower units, or maybe force them through a shutdown cycle on every context switch? Not sure what the solution is here.
- voidmain 8y agoOn the AVX thing, I think maybe you can eliminate it as a channel for speculative execution attacks by just not speculatively executing AVX-512 instructions when the units are powered down, which also sounds more efficient (it doesn't sound good that, apparently, if (expression_that_is_false) { do_avx_instruction() } can drop your clock speed for several milliseconds if branch prediction guesses wrong! The cost of powering up the AVX units is, I think, much greater than the cost of failing to speculate once.) In general, I think the problem is that we probably don't know about all possible side channels, and might not for many years. So the approach you suggest - eliminating side channels one by one so that you can't extract information from speculative execution that way - is inherently risky.
- Bucephalus355 8y agoDuring World War I, in order to get a decent working radio, the US government suspended lots of IP restrictions and made companies pool their patents. Perhaps in the future we could see something like this. Considering that radio stocks were the “hot item” in the 20’s, to a point where it became something of a bubble, it doesn’t look like businesses made out too bad.
- acct1771 8y agoRISC is good.
- deleted 8y ago[deleted]
- TwoBit 8y agoI keep thinking, surely Intel and AMD were internally aware of spectre. How could they not foresee it?
- acdha 8y agoThe same way most security bugs happen: people are focused on making the expected results happen. The skill of thinking about how something could creatively be abused is hard to cultivate – theoretically this class of bugs has been around for decades but it wasn’t publicly exploited until now.
- gwbas1c 8y agoTwo of the most important things about security is understanding how valuable information is and how likely an attack is. Specter is very hard to pull off, thus it will probably only be used for highly valuable information.
- _chris_ 8y agoI gave a talk on this topic at a recent RISC-V conference (slides here: [1]). I think this can entirely be hidden below the ISA abstraction, but it will be a lot of development work to do this and unfortunately getting new hardware into the field is a slow process. One part of this is buffering and killing speculative updates (or flushing on "time domain" switches). The other, and harder part, is to manage/avoid bandwidth contentions caused by speculation. I think the better, long-term solutions will involve address IDs/capabilities to better denote security boundaries to the hardware. But that requires a lot of buy-in across many layers of the compute stack(OS/platform change for starters). [1] https://content.riscv.org/wp-content/uploads/2018/05/13.00-13.15-Celio-Barcelona-Workshop-8-Talk.pdf https://content.riscv.org/wp-content/uploads/2018/05/13.00-1...
- alexeiz 8y agoAm I the only one with the impression that Spectre and Meltdown vulnerabilities are way overblown? At the company I work for, nobody cries bloody murder about them. I don't see other organizations scrambling to update their infrastructure either. For the amount of press these vulnerabilities get there is very little action taken.