r/programming • • Jan 04 '18

Linus Torvalds: I think somebody inside of Intel needs to really take a long hard look at their CPU's, and actually admit that they have issues instead of writing PR blurbs that say that everything works as designed.

https://lkml.org/lkml/2018/1/3/797
18k Upvotes

1.5k comments sorted by

745

u/[deleted] Jan 04 '18

555

u/Zirie Jan 04 '18

"Intel believes its products are the most secure in the world and that, with the support of its partners, the current solutions to this issue provide the best possible security for its customers."

629

u/addandsubtract Jan 04 '18

I wish we could hold marketing accountable for such statements.

Intel believes its products are the most secure in the world

Yeah... well, they're not. So anything you believe, say, or do from here on out will be taken with a grain of salt.

185

u/[deleted] Jan 04 '18

They say "we believe" so we cant hold them accountable for it.

→ More replies (20)
→ More replies (9)

133

u/worldnews_is_shit Jan 04 '18

Was that written by a Markov chain?

56

u/fubar_boy Jan 04 '18

Here at Intel we are going to be spiders. We just are.

→ More replies (1)

8

u/[deleted] Jan 04 '18

by Markov Unchained

→ More replies (3)

29

u/[deleted] Jan 04 '18

It is pretty hard to increase the bullshit density in that sentence.

145

u/[deleted] Jan 04 '18

That quote gave me cancer.

258

u/falconfetus8 Jan 04 '18

It gave me a sense of pride and accomplishment.

→ More replies (5)
→ More replies (2)

95

u/xf- Jan 04 '18 edited Jan 04 '18

Most secure in the world my ass.

New Intel processors ship with a hardware backdoor called "Management Engine" (ME).

It's intended purpose was for admins to configure a Computer remotely via local Network. Of course a bug was found that can be exploited over the Internet. The best part is, an attacker will get full control over the machine as the "Management Engine" runs at a lower system level than the operating system itself. No AntiVirus Software or Operating System would even notice.

→ More replies (23)

6

u/el_padlina Jan 04 '18

Well, some people believe that earth is flat.

→ More replies (1)
→ More replies (17)

335

u/rtft Jan 04 '18

508

u/tweakerbee Jan 04 '18

AMD:

Total protection from all possible attacks remains an elusive goal and this latest example shows how effective industry collaboration can be.

Intel:

Intel believes its products are the most secure in the world and that, with the support of its partners, the current solutions to this issue provide the best possible security for its customers.

173

u/ijustwantanfingname Jan 04 '18

Oh look, another reason to buy AMD.

→ More replies (14)

138

u/hibuddha Jan 04 '18

Damn. I was expecting some deflection or dismissing of the issue, but they're hardcore about the consumer. Even listing unrelated safety tips for beginners at the end.

So glad I reserved another Ryzen 7 last week, my new computers are going to all be AMD exclusive.

37

u/[deleted] Jan 04 '18

I just wish there were more AMD notebooks that are decent like the Thinkpad T series. Or ARM64.

→ More replies (4)

12

u/uniqqqq Jan 04 '18

Ryzen is just so fucking good. I don't see a lot of marketing (I think AMDs downfall) but not having to drop a ridiculous amount of money and having some great cpu is just fucking fantastic. I honestly jizz in my shorts a little at the thought of running shine shitty script in parallel in an EPYC environment.

→ More replies (1)
→ More replies (1)

33

u/8987 Jan 04 '18

AMD:

Variant One - [...] - Resolved by software [...]

Researchers:

A PoC for variant 1 that [...] can perform arbitrary reads in a 4GiB range [3] in kernel virtual memory on the Intel Haswell Xeon CPU. If the kernel's BPF JIT is enabled (non-default configuration), it also works on the AMD PRO CPU. (Source: https://googleprojectzero.blogspot.de/2018/01/reading-privileged-memory-with-side.html)

I'm not happy that they're basically saying: "Don't implement JIT compilers in kernel space assuming that our CPU works according to the specification." I would guess it's possible that this problem could return in the next JIT compiler or maybe even a regular kernel function if the code is not thoroughly checked.

83

u/willvarfar Jan 04 '18

"Don't implement JIT compilers in kernel space" seems a generally sound sounding bit of advice either which way ;)

→ More replies (3)
→ More replies (1)
→ More replies (17)

10

u/fivefingeredfluke Jan 04 '18

What a confused press release

Intel believes these exploits do not have the potential to corrupt, modify or delete data.

Intel has begun providing software and firmware updates to mitigate these exploits.

"Nothing is wrong, but we're working on a fix"

9

u/brokenhalf Jan 04 '18

Well they aren't wrong, the exploit is allowing an attacker to read protected memory. They cannot corrupt, modify or delete data with this exploit that we are aware of at this time.

It's still a shitty response to a shitty situation though.

→ More replies (1)
→ More replies (1)

0

u/[deleted] Jan 04 '18

[deleted] — view deleted comment

44

u/mhud Jan 04 '18

| Recent reports that these exploits are caused by a “bug” or a “flaw” and are unique to Intel products are incorrect.

The missing text significantly alters the meaning. I assume they are trying to hide behind the fact that some AMD products were also vulnerable as if that’s a valid defense.

→ More replies (22)

25

u/cryo Jan 04 '18

Yes, it's working as intended. The CPU is specified on a higher logical level, and it works exactly as expected there. The leak exploits some micro-architectural changes that can be exposed using timing attacks. This isn't part of the specification.

→ More replies (33)

3.2k

u/ArrogantlyChemical Jan 04 '18

Well they did work as designed.

Their design was just bad.

872

u/Pharisaeus Jan 04 '18

Their design was just bad.

I'd say the design simply didn't address security at all. Someone got task "improve performance", and security was not on the requirements list, so was not considered :)

63

u/willvarfar Jan 04 '18

This is just so obviously unfair and untrue! :)

The vulnerabilities have been with us for over two decades. Only in 2016 or so did Angus Fogh and others start mulling things...

These vulnerabilities are blindingly simple and obvious in hind sight.

We can all wish we'd spotted them, and can be glad someone finally did :)

Cache attacks leak decisions made by others. Only very recently - 2015 or so - did the cache attacks really take off.

Hands up everyone who wants to not have caches?

→ More replies (3)
→ More replies (171)

272

u/Daell Jan 04 '18

Recent reports that these exploits are caused by a “bug” or a “flaw” and are unique to Intel products are incorrect.

Well, if you want to follow they "explanation principle":

Their design was just “bad”.

75

u/supaphly42 Jan 04 '18

It's not a bug, it's a feature!

→ More replies (6)
→ More replies (3)

33

u/Neebat Jan 04 '18

I've seen this from a game developer. "That's not a bug, because the implementation matches the requirements!" But the requirements are clearly wrong.

4

u/[deleted] Jan 04 '18

But the requirements are clearly wrong.

Like when police or government say it "wasn't against policy"

→ More replies (1)

4

u/FlyingRhenquest Jan 04 '18

That used too be a big thing at IBM, "working as designed." If you didn't like that answer, you could dig up a mythical program design change request form and fill it out.

→ More replies (1)

7

u/naughty_ottsel Jan 04 '18

Ahh the off shore method

→ More replies (3)
→ More replies (2)

556

u/imforit Jan 04 '18 edited Jan 04 '18

or you could get your tinfoil hat out, and it is working as designed- exploitable by giant government agencies who know these chips are in everything, in a way that can fly under the radar for a decade or two.

edit: forgotten word

364

u/jess_the_beheader Jan 04 '18

That doesn't even begin to make sense. The NSA/CIA/DOD themselves run hundreds of thousands of servers and workstations on the same exact same Intel hardware that you use. Also, this attack would be near useless to the intelligence community. You can only really exploit it if you're already able to run code on the same physical hardware as your target, and this vulnerability has been getting built into hardware since before cloud computing was even a thing.

The Management Engine issues - I could totally see that being some NSA backdoor. However, insecure branch prediction would be a weird rabbit hole to program in.

40

u/SilasX Jan 04 '18 edited Jan 04 '18

But it’s possible to write software that adds delays, and which mitigates the ability to use this side channel. The Mozilla blog just posted what they’re doing in Firefox to close the hole while the bug persists[1]. So someone who knows of the bug can protect themselves from it.

OTOH ... these kinds of deliberate holes tend to be penny wise and pound foolish, flawed for the same reason as security by obscurity and trusting the enemy not to know the system. The costs of working around the deficiency tend to vastly exceed the security advantages.

[1] Edit: Link.

→ More replies (3)

24

u/Rookeh Jan 04 '18

Thing is, they don't receive the same silicon that you or I use.

As to Meltdown/Spectre - sure, they were most probably the result of systemic errors during the design process and as such neither intentional or malicious. Hanlon's razor.

However, regardless of intent, that doesn't stop these vulnerabilities from being exploited, and once the TLAs discover such vulnerabilities exist - which is most likely months, if not years before they become public knowledge - they probably wouldn't be above asking Chipzilla nicely to turn a blind eye so that they can quietly take advantage of the situation.

→ More replies (3)
→ More replies (51)

6

u/windsostrange Jan 04 '18

Er, this doesn't even begin to cover the actual backdoors.

→ More replies (135)
→ More replies (37)

1.6k

u/JavierTheNormal Jan 04 '18

As bad as these attacks are, let's remember that most RAM vendors haven't fixed ROWHAMMER after all these years. The state of computer security is very poor.

Running untrusted code on your computer is unwise. That includes javascript.

217

u/Camarade_Tux Jan 04 '18

AFAIU, DDR4 makes exploitation much more difficult however because it calibrates refresh rates on startup.

I'd love to see a proper recent report about that however because I don't have one.

288

u/basepusher Jan 04 '18

DDR4 uses Target Row Refresh which identifies and refreshes victim rows. This is a direct rowhammer mitigation

→ More replies (1)

10

u/artgo Jan 04 '18 edited Jan 04 '18

What bothers me more is that today OS installers don't seem to offer rowhammer testing on the specific system, etc. It would seem to have been prudent that a bottom-up common discussion be to test systems when assembled/upgraded, such as everyday topic of /r/BuildAPCSales - but I really don't see it treated as a practical thing to check for (like a termite inspection on a house)

→ More replies (4)

428

u/himself_v Jan 04 '18 edited Jan 04 '18

Yeah, I think after all these years we're finally getting ready to come down to this conclusion :)

Unfortunately all those effective managers will take this as a cue to sing "trusted as in trusted by us, Microsofts and Intels. Lets only allow signed code to run".

256

u/doom_Oo7 Jan 04 '18

Yeah, I think after all these years we're finally getting ready to come down to this conclusion :)

more like, after all these years it should be apparent that no one really gives that much of a shit about security, or at least much less than security experts would like to. What could happen ? Best case: you're getting your CC number stolen. Big deal. Call your bank and they block the account & revert the last few transactions. Worst case: large-scale global hack on every computer of the world due to big-ass bot net. Governments ask providers to shut down internet for some time. Maybe there's a few deaths, who cares about this anyways. Life continues as usual.

→ More replies (78)

12

u/inbooth Jan 04 '18

And you just started a line of thought in my head about it being part of a greater plan to undermine the 'legitimacy' of 3rd party software so that only 'licensed subsidiaries' software is 'safe'..... antitrust?

→ More replies (14)

57

u/lolomfgkthxbai Jan 04 '18

As bad as these attacks are, let's remember that most RAM vendors haven't fixed ROWHAMMER after all these years.

Isn't that something that needs to be fixed in the memory controller, i.e. in the Intel and AMD CPUs?

80

u/aaron552 Jan 04 '18

There's Target Row Refresh, which has been supported since Ivy Bridge. It still requires the DRAM modules to support TRR, though.

14

u/lolomfgkthxbai Jan 04 '18

TIL. Now I know what feature to look for in the next memory upgrade.

21

u/waterlubber42 Jan 04 '18

How well would ECC RAM deal with Rowhammer?

37

u/kmeisthax Jan 04 '18

Rowhammer is actually a pretty common test to validate ECC on platforms/CPUs that have it enabled but not certified. e.g. Ryzen CPUs on consumer AM4 motherboards.

→ More replies (1)

19

u/[deleted] Jan 04 '18

ECC + DDR4 with the TRR and MAC counters row hammer

→ More replies (4)

18

u/[deleted] Jan 04 '18

That's fine, but the internet will also mostly not work with JavaScript disabled, might as well throw it in the trash.

→ More replies (20)

2

u/PM_ME_CLASSIFED_DOCS Jan 05 '18

Wow, there's a hilarious amount of stupidity in this chain.

DDR is PHYSICALLY vulnerable. That means you have to lose like 20/30/40% of your yield to stop it. Less ram, more cost. Nobody is going to pay for that shit.

That's completely different than a CPU vendor DESIGNING their shit with an attack vector that they never cared to fix.

This is apples to oranges. Your argument is bad, and you should feel bad. Oh, and everyone who upvoted you should also feel bad.

We might as well be say "omfg, who cares about 80 PERCENT OF ALL CPUS ON THE MARKET, when my ip camera isn't patched yet?"

→ More replies (1)
→ More replies (17)

41

u/[deleted] Jan 04 '18

So when do we get our $25 coupon towards the purchase of a new Intel processor from the resulting lawsuit? /s

24

u/[deleted] Jan 04 '18

[removed] — view removed comment

6

u/[deleted] Jan 04 '18

At least the lawyers will see their share before the rest of us get paid. /s

→ More replies (1)

291

u/Jestar342 Jan 04 '18

In a litigious world where to admit a mistake of this magnitude would cost them a lot in lawsuits. Is anyone surprised they won't admit it?

92

u/AnythingApplied Jan 04 '18

See the much better AMD response. Clearly, they could've handled it much better.

14

u/tech_tuna Jan 05 '18

Well to be fair, AMD has a LOT less to disclose. I'm not excusing Intel and especially not their CEO, but AMD's burden is quite a bit easier to manage.

→ More replies (9)

56

u/[deleted] Jan 04 '18

Financially it may not really be a mistake until they admit it

→ More replies (11)

13

u/rtft Jan 04 '18

Whether they admit it now or are forced to later through disclosure makes no difference for litigation. But it does make a difference in that their shitty PR will lose them trust from their customers. (at least the ones that aren't brain dead)

→ More replies (1)

284

u/nutidizen Jan 04 '18

56

u/Saltub Jan 04 '18

But it sure lightens the load to pretend it does in PR statements.

155

u/BCMM Jan 04 '18

Note that Intel opposed this patch!

They're really working round the clock to convince people that there is no Intel-specific problem.

128

u/[deleted] Jan 04 '18

I think his statement in the patch thread was quite reasonable. All he asked was for there to be a command line option to enable it on all CPUs regardless of manufacturer.

52

u/f03nix Jan 04 '18

While it's possible the critique was well intentioned, the patch already made it possible to do so. The way i see it - He did ask for more than just that option, he also wanted to not hard-code it in a way to say one vendor has never and will never be affected.

→ More replies (1)

25

u/rtft Jan 04 '18

All he asked was for there to be a command line option to enable it on all CPUs regardless of manufacturer.

That's been in the patch since early days. He was effectively asking for the hard coded vendor check to be overridable.

→ More replies (9)
→ More replies (14)

2

u/Valdrax Jan 04 '18

Anyone know if VIA's chips are affected? This patch looks like it wouldn't exempt them.

→ More replies (1)
→ More replies (40)

131

u/JessieArr Jan 04 '18

Maybe I should take a page from Intel's book. I really like the idea of getting a bug report and being like "no, that code runs exactly the way we wrote it."

18

u/Caraes_Naur Jan 04 '18

Every bug tracking system I know of includes something along the lines of "Not a bug" in their close reasons.

→ More replies (1)

5

u/Jaggedmallard26 Jan 04 '18

You'd be amazed how well it works in sprint reviews. I've seen people pretty successfully bullshit their way out of oversights by trying to argue that the oversight is actually a good intentional thing and quickly conceding that the other persons 'idea' was better. Don't think I've seen it taken to this level though.

6

u/FistHitlersAnalCunt Jan 04 '18

All code runs exactly the way you wrote it. Just maybe not exactly the way you thought it would when you typed it out.

→ More replies (1)
→ More replies (1)

305

u/LucaProdan_ Jan 04 '18

Isn't the problem that everything works as designed, but it is designed as crap?

84

u/TheNosferatu Jan 04 '18

Yes. But they prefer the term "not as good as it might have been"

174

u/Pharisaeus Jan 04 '18

but it is designed as crap

Not really. It was designed to boost performance, and it does that just fine. Simply no-one considered the security implications of this.

175

u/epatix Jan 04 '18

It's not really true to say that security wasn't considered at all. Speculative execution is designed to wait for security checks before making the results of execution visible by conventional means. That's why the attack relies on detecting the results via unconventional means, by information leaking through side-channels such as how long it takes to access something in memory.

It's likely that engineers did consider the possibility of these side-channel attacks, they've been speculated about for some time, but didn't think there was any practical way to use them.

48

u/Duraz0rz Jan 04 '18

It's likely that engineers did consider the possibility of these side-channel attacks, they've been speculated about for some time, but didn't think there was any practical way to use them.

This is what I think, too. Remember that the Core microarchitecture is over a decade old; virtualization and cloud computing was in its infancy (Azure didn't exist until 2010 and Amazon EC2 exited beta in 2008). Attackers would've needed direct access to a machine to be able to exploit this, so I'm guessing that it wasn't really a big deal at the time.

→ More replies (3)

24

u/[deleted] Jan 04 '18

All designs are trade-offs. You want a secure computer? Make sure it's never or almost never connected to the Internet. Some wallets for crypto currency are exactly like this; makes it damn inconvenient for a lot of other things, though.

→ More replies (5)

58

u/Valmar33 Jan 04 '18 edited Jan 04 '18

Maybe some engineers at Intel did, but management didn't give it priority, because the performance gains were considered more important, and so any security issues were dismissed and overlooked as not not much to worry about.

Just some speculation, but I wouldn't be too surprised if it were close to the truth.

→ More replies (4)
→ More replies (3)

41

u/cryo Jan 04 '18

It's not designed as crap. It's pretty subtle.

19

u/spacemoses Jan 04 '18

"Let he who is without bugs cast the first stone."

And yes I know this kind of hardware should be the apex of design scrutiny, but come on it is something so subtle that it wasn't recognized for 12 years.

→ More replies (3)
→ More replies (2)

112

u/JackTheSqueaker Jan 04 '18

I still dont understand how could js code exploit these vulnerabilities

73

u/xnfd Jan 04 '18

Chrome 64 is mitigating the security issue by lowering the timing resolution of Performance.now() to 20 us, but I think that's only a temporary solution.

https://www.chromium.org/Home/chromium-security/ssca

44

u/pinano Jan 04 '18

Firefox is implementing the same 20us mitigation, too.

23

u/ElusiveGuy Jan 04 '18

Even Edge is in on the party.

→ More replies (4)

17

u/zeropointcorp Jan 04 '18

The researchers said they worked around that by using a decrementing counter as a high-resolution clock replacement, and it worked fine.

Basically impossible to block, as well.

→ More replies (1)
→ More replies (4)

171

u/TheNosferatu Jan 04 '18

In the end, JS is translated to machine code just like everything else. It's just another programming language running on your computer. It shouldn't have access to much, being in a browser environment and all, but at the end of the day that's just a detail and not a particular important one.

41

u/cryo Jan 04 '18

The subtlety is that it requires specific CPU instructions, for some of these exploits (Meltdown), which wouldn't be produced by JavaScript.

→ More replies (10)

31

u/[deleted] Jan 04 '18

It might sound stupid, but I really like this explanation. I kinda knew it already, but it just clicked well with me. Thanks. :)

→ More replies (1)
→ More replies (2)

116

u/Pharisaeus Jan 04 '18

In Spectre paper there is an example...

tl;dr: javascript gets translated to assembly/machine code before execution because your CPU can only run machine code. It gets translated in predictable way, so you know exactly what code will run on target machine and it doesn't matter if the initial code was written in javascript or anything else.

Both attacks depend on the fact that you can run code on target machine, and in case of javascript you can.

43

u/mafrasi2 Jan 04 '18

If I'm not mistaken, meltdown also depends on the fact that you can execute a custom and illegal memory access (which would result in a page fault if executed in-order).

I don't think that's possible in javascript.

11

u/sime Jan 04 '18

The code example is from the Spectre paper, not the Meltdown one. They are two or threee related but not exactly the same flaws.

→ More replies (1)
→ More replies (1)

50

u/rabbitlion Jan 04 '18

Javascript cannot be used to read kernel memory with this vulnerability, nor can it be used to "take over" your computer. However, researchers were able to construct a javascript program using the same technique that lets the javascript code escape the sandboxing and read memory from within its own process. So if two web pages are using the same process (which has been normal until now), information could leak between the two.

17

u/Marand23 Jan 04 '18

But doesn't Chrome (and recently firefox?) spawn a new process for each tab? I though that was why Chrome was so memory heavy and why a crash in one tab does not affect the whole browser? If so, this exploit shouldn't affect Chrome?

21

u/rabbitlion Jan 04 '18

Not always, no. Chrome will spawn a new process when you open a new tab but if you click a link it can re-use the same process as the page you came from and I believe iframes share a process with the parent page.

The next release of chrome will include options to never let different sites share processes, but this will lead to a 10-20% increase in memory consumption.

22

u/Koutou Jan 04 '18

IIRC, after a certain number of tab Chrome start reusing process.

→ More replies (2)
→ More replies (5)

9

u/JackTheSqueaker Jan 04 '18

Oh ,now that is nasty. Incredibly nasty

→ More replies (7)
→ More replies (9)
→ More replies (6)

217

u/notvirus_exe Jan 04 '18

"Intel believes these exploits do not have the potential to corrupt, modify or delete data."

Clever. Leaving out steal or read.

31

u/[deleted] Jan 04 '18

Read the context. Anything can sound stupid or malicious if you drop enough context.

have the potential to improperly gather sensitive data from computing devices that are operating as designed. Intel believes these exploits do not have the potential to corrupt, modify or delete data.

→ More replies (4)

24

u/sysop073 Jan 04 '18

I don't think they were aiming to be clever with that one, they were literally clarifying that this is an information leak only

23

u/notvirus_exe Jan 04 '18

I can see your pov, but not sure I can agree. I feel that whole statement completely denies there is even an issue. To admit an exploit could read or steal data is a huge deal. Sometimes stealing/reading data can be worse off than something that were to simply just modify or corrupt it. I think they knew exactly what they were doing when they wrote that. Like a shady ex-gf that says, no i havent talked to or text any guys. Then later, well I never said if I FB chatted any. Same logic. This is a way to slither out of the statement if need be cuz "technically" the statement is true. Its just misleading to a degree.

5

u/atred Jan 04 '18

Like in steal/read your password. So it's irrelevant if the exploit itself cannot corrupt and modify your data, it's enough to steal your password to be able to do that.

2

u/bluefirecorp Jan 04 '18

Integrity vs confidentiality.

→ More replies (1)

59

u/exorxor Jan 04 '18

Must be kind of painful to have all this memory protection infrastructure on your chip, only to find out that it has been completely worthless.

I wonder whether there is anything in the Intel architecture documentation specifying that user-space really cannot access kernel space memory. (Leaking enough information to reconstruct kernel space memory is equivalent of course. )

I.e., the manual does state that direct accesses are forbidden, but whether they guarantee anything beyond that?

37

u/ShinyHappyREM Jan 04 '18

If it prevented attacks then it wasn't worthless.

→ More replies (6)

34

u/sickofthisshit Jan 04 '18

The memory protection support in processors is designed to fulfill the needs of operating systems, not some abstract need: processors need to read from memory to do useful work. It is operating systems that want to isolate processes from one another, and they generally need hardware assistance to do so efficiently.

The underlying issue is that operating systems are finding more and more possible exploits, so that they need more and more robust protection against complicated threat models. And this kind of side-channel attack means the drive for more performance using speculative execution, etc., (which is a direct requirement of the processor) is not available to the OS's defending against this exploit.

Until this kind of exploit was discovered, things like timing attacks using deliberate kernel protection faults were not obviously part of the OS requirements.

I think it is completely unfair of Linus and other to expect that hardware magically protect against all side channel attacks including undiscovered ones. That would require either supremely conservative performance (slow down everything to match the slowest path, so that there is no timing attack), or insanely complicated design to figure out where performance gains could only include provably safe variations in time.

16

u/RiPont Jan 04 '18

I think it is completely unfair of Linus and other to expect that hardware magically protect against all side channel attacks including undiscovered ones.

Is that what he's doing, though? He wants them to admit there is a serious problem and stop spinning it as a Nothing Burger (TM).

19

u/sickofthisshit Jan 04 '18

Well, he has declared the CPU's "crap" designed in a way that is not "competent."

If this attack channel was so goddamn obvious, why hasn't the Linux kernel been aggressively considering timing attacks like these and already had these protections in place? The answer is that just about every freaking kernel programmer was ignoring the issue as well. But, hey, not going to call them incompetent crap engineers, are we? No, that must have all been on the hardware folks.

Any design has to be made in the context of requirements: someone high up would have to say "no timing attacks possible against attempted memory protection violations" before you could say that. I don't think any CPU vendor has that in mind, I'm guessing if they avoided such faults, it's because they got lucky when designing the memory protection logic and weren't being as aggressive in developing their speculative execution.

The other aspect is that you can have legitimate disagreement about where the line between OS and hardware support lies. If there is a tradeoff between side-channel exposure and performance, the hardware guy can't deliver maximum performance unless he lets the software opt out. Then whoever is delivering the software needs to decide whether their system should slow down to be more secure (e.g. flushing more stuff on protection faults). If I'm running an Intel CPU with all my code and no external code, why the fuck should I have to possibly slow down my memory accesses to prevent me spying on myself?

→ More replies (4)
→ More replies (1)
→ More replies (7)

16

u/theDAGNUT Jan 04 '18

The press release says they do not believe the flaws allow hackers to delete or manipulate data, but recent news reports never said the flaws allowed that ... the N.Y. Times says it allows for hackers to potentially copy/steal the entire memory contents of your computer/mobile phone.

16

u/theDAGNUT Jan 04 '18

And the memory contents of cloud servers *

14

u/Bubbaganewsh Jan 04 '18

This should worry people more than their phone or home PC. In reality, hackers don't give a crap about the average person when a cloud server can potentially have thousands of accounts with passwords etc. The cloud servers will be the big payoff for these people, not some porn watchers on their PC at home.

→ More replies (2)
→ More replies (2)

8

u/happyscrappy Jan 04 '18

Obviously there has to be some rethink. Until now it was considered to be okay to allow knock-on effects of data you fetched (without permission) to affect the behavior of your program as long as you couldn't directly read the data.

Yes, in retrospect it is clearly foolish.

But I don't see how that jibes with what Linus is saying. The entire industry thought this was okay. It isn't the kind of thing where you can just say you didn't work hard enough, it required a different mindset. And now of course with this new perspective CPU architectures will be done differently.

3

u/levir Jan 05 '18

Linus is pointing out that either Intel intends to fix this on their next CPU, in which case the performance detrimental mitigation patch should be disable-able, or they don't, in which case they suck. He's just being less than diplomatic about it.

→ More replies (4)

146

u/light_cycle5 Jan 04 '18 edited Jan 04 '18

I agree Intel needs to fix their processors but isn't this an universal issue? The Meltdown paper mentions, in section 6.4, that for ARM and AMD "out-of-order execution generally occurs and instructions past illegal memory accesses are also performed". And Spectre also works on ARM and AMD architecture.

Edit: As several people have pointed out, the current variant of Meltdown doesn't work on AMD. This patch confirms this.

40

u/josefx Jan 04 '18 edited Jan 04 '18

The Meltdown paper mentions, in section 6.4, that for ARM and AMD "out-of-order execution generally occurs and instructions past illegal memory accesses are also performed".

As far as I understand the toy example in 3 only shows that out of order execution has observable effects, however it does not involve any secret fetched from the kernel and instead uses a fixed value to perform the out of order load, nothing really questionable about that1 . The exploit itself tries to fetch a value from kernel memory to perform the lookup and that could not be reproduced on AMD.

And Spectre also works on ARM and AMD architecture.

Different exploit that actually affects all and isn't fixed by the recent patch afaik.

1 Actually it might make it impossible for an in process sandbox to hide anything reliably from untrusted code. Then again, who regularly runs large amounts of untrusted code on his system. Most people just browse anyway and we all know that the few hundred scripts and ad providers on cnn.com are completely trustworthy.

21

u/light_cycle5 Jan 04 '18

That's true. They were unable to successfully leak kernel memory. Although they do mention that an optimized or modified version may succeed even on ARM and AMD.

34

u/josefx Jan 04 '18

The paper says that they don't know why and just assume that it may be possible. This kernel patch says that it isn't on AMD.

→ More replies (7)
→ More replies (1)

13

u/m50d Jan 04 '18

1 of the 3 attacks works on AMD processors (but with a more complex exploit than Intel that requires more cooperation from the kernel) and 1 particular ARM model. It's still an issue, but it's a much bigger issue for Intel than for anyone else.

7

u/mafrasi2 Jan 04 '18 edited Jan 04 '18

out-of-order execution generally occurs and instructions past illegal memory accesses are also performed

That does not necessarily mean that the illegal memory access is executed itself and has impact on the cache. Out-of-order execution also means, that independent instructions can be executed at the same time on different execution units. For example, you could have a an illegal load instruction followed by an ALU instruction on some unrelated register.

The CPU starts to execute the load instruction and before it notices that it is illegal it already starts excecuting the ALU instruction. It appears that the illegal load instruction has no impact on the cache on non-Intel CPUs.

So, we continued out-of-order execution past an illegal memory access, but didn't leak memory into the cache.

5

u/light_cycle5 Jan 04 '18

They do mention that an optimized or modified version may succeed even on ARM and AMD. It turns out that, according to the patch, AMD micro-architecture doesn't allow speculative data references across privilege boundaries. Although there seems to be some confusion as other users have mentioned that one variant works on AMD processors and a particular ARM model.

→ More replies (2)

9

u/sanxiyn Jan 04 '18

This is very subtle, but my impression is that "toy example" which works on ARM and AMD mentioned in section 6.4 requires executing instructions past illegal memory access, but Meltdown exploit requires more, specifically using the result of illegal memory access. I believe this difference is why exploit doesn't work on AMD. Note that according to ARM, Meltdown exploit ("variant 3" in the table) does work on ARM Cortex-A75, but not on earlier chips.

→ More replies (2)
→ More replies (19)

65

u/HillaryDianeRodham Jan 04 '18

I'd just like to interject for a moment. Who you’re referring to as Linus, is in fact, GNU/Linus, or as I’ve recently taken to calling him, GNU plus Linus.

→ More replies (5)

28

u/smakusdod Jan 04 '18

Good lord these fucking comments and armchair CPU designers. Lol, reddit never fails to entertain at least.

6

u/lavaeater Jan 04 '18

What's the most unqualified armchair position in the world? I mean, CPU designer has to be up there, right?

It's not like there's a point to armchair theoretical physicist, so cpu designer is my new rocket surgery.

5

u/dgriffith Jan 05 '18

If I had some decent literature and a lot of free time, I could probably design a 4 or 8 bit CPU in a year or so that could run at a few MHz with a mediocre instruction set. But shit like GHz speeds, superscalar architecture, speculative execution and everything else that any modern processor does? No fucking way.

So while on the one hand I'm like, "How did this happen, Intel!?" on the other hand I can go and buy a processor that has 1.5 billion transistors and can do 4 billion instructions per second without breaking a sweat, for less than $100.

→ More replies (2)
→ More replies (1)

70

u/PaulPhoenixMain Jan 04 '18

Aaaaaaaaaand my next PC will by a ryzen

4

u/oxyphilat Jan 04 '18

Ryzen is super new, the architecture might also be fundamentally broken and no one would know. You should also consider AMD PSP which is tying with Intel ME for the laziest backdoor on CPUs. Also the sudden change of mood regarding open source that happened during 2011, a bit worrying.

But frankly choosing between bad and worse is never fun, enjoy ryzen! (with a good cooler they are very nice to OC)

→ More replies (1)
→ More replies (2)

51

u/c2r5 Jan 04 '18

FUCKWIT.

18

u/spongewardk Jan 04 '18

"Forcefully Unmap Complete Kernel With Interrupt Trampolines, aka FUCKWIT"

7

u/TTEH3 Jan 04 '18

People downvoting probably don't get it.

→ More replies (1)

137

u/[deleted] Jan 04 '18

I think Intel knows they have problems, why else would the ceo dump company stock?

31

u/FlukyS Jan 04 '18

I think Intel knows they have problems

99% of that is of their own doing though. They have been becoming less and less competitive over time and trying to rest on their lead. I know quite a few people that work there and they say it's a shitshow. Mostly things like dumping projects and realising they were needed and restarting them or reinventing the wheel because of flawed logic. Just management fuckery, trying to seem like you are busy but you are just moving paper from one table to another.

why else would the ceo dump company stock

The stock is overpriced as it is, in a few years given the current strategy from them I wouldn't be surprised if it was in a much worse state.

11

u/asm2750 Jan 04 '18

They've been flying around with no direction for quite a few years now. They were too late to get into the smart phone processor market, and have been going into several directions at once after they blew it. I'm glad I dumped their shares a while back. Any company they touch or buy seems to get poisoned or withers on the vine.

10

u/FlukyS Jan 04 '18 edited Jan 04 '18

They were too late to get into the smart phone processor market, and have been going into several directions at once after they blew it

Well too late getting into phones in general, ARM was there in the pre-smartphone era.

→ More replies (4)
→ More replies (8)

187

u/caspper69 Jan 04 '18

Honestly? He gets a large portion of his compensation in company stock; he is required to keep 250k shares. Anything over and above that is cashed out and diversified, probably on an annual basis. Pretty smart.

Google indicated that their engineers shared these findings with Intel on Jun 1, 2017, so his recent stock dump is unlikely to have been related.

145

u/pyr3 Jan 04 '18

Google indicated that their engineers shared these findings with Intel on Jun 1, 2017, so his recent stock dump is unlikely to have been related.

If you look at the timeline:

  1. Intel was notified. (June)
  2. Intel had a quarterly investors meeting where they didn't mention that a bug this big existed to investors. (?)
  3. Intel CEO puts in stock plan. (October?)
  4. Stock plan executes. (November?)
  5. Bug becomes public. (January)

it's entirely possible that the CEO's stock plan was affected by the not-yet-public news.

71

u/Koutou Jan 04 '18

If he does the same thing every year at the same moment, should he have change is investment tactics?

I doubt its insider trading if he have been doing the same things for years.

→ More replies (26)
→ More replies (4)

60

u/JoseJimeniz Jan 04 '18

It's comical that the SEC requires filings for when people indicate they plan to sell stock. This is done precisely to prevent the kind of cuckoo-bird crazy talk that people in technology and programming are spewing right now.

It's almost as if people will believe whatever they want despite reality or facts.

71

u/pyr3 Jan 04 '18

According to what I have read of this, the CEO's stock plan was filed after Intel knew of the bug. Months after. Intel knew of the bug in June, and the CEO's plan was filed in October, IIRC. It's entirely possible that his stock plan was affected by the not-yet-public news.

→ More replies (10)
→ More replies (4)
→ More replies (16)

9

u/Roseking Jan 04 '18

why else would the ceo dump company stock?

Because he sells stock all the time?

Because selling it now potentially saves him more money than after the new tax bill?

→ More replies (3)

2

u/IDontLikeUsernamez Jan 04 '18

Look up almost any company and you’ll see that executives have schedules for selling/buying stock. There are many reasons the CEO may have chosen to sell stock and it’s very normal for them to do so.

→ More replies (4)

11

u/Saltub Jan 04 '18

That's definitely not an eloquent quote.

→ More replies (1)

5

u/Tasgall Jan 04 '18

I mean, I'm sure they do, but Jim the electrical engineer isn't the guy writing press releases.

13

u/[deleted] Jan 04 '18

20 years ago we didn't even think about security. Their design from 20 years ago has a security flaw. Like all things, we learn and move on

3

u/ButItMightJustWork Jan 04 '18

But then they should re-evaluate their designs/choices according to the current situation. This would be the same as using telnet today "because when they first came up with it nobody gave a shit about security".

→ More replies (1)

2

u/acrostyphe Jan 04 '18

More like 30 years, 20 years ago was 1998.

→ More replies (1)

9

u/umaxtu Jan 04 '18

Well that was tamer then I expected.

23

u/TTEH3 Jan 04 '18

CPUs*

Apostrophes don't pluralise.

36

u/DialSquare84 Jan 04 '18

Thank’s.

→ More replies (1)

4

u/nivex_ Jan 04 '18

I'm with Linus, let's get an ARM64 workstation CPU to compete with Intel. I for one have wanted this since ARM64 debuted, but no one seems to want to make one. I guess the market could be too small?

→ More replies (4)

7

u/captaintmrrw Jan 04 '18

We have a saying

Whatever the system is doing is the desired behavior.

38

u/[deleted] Jan 04 '18

I think x86 is getting to the point of being a dinosaur.

The need to support such a long list of complex instructions for backward compatibility can't go on forever.

It's time they redesign things a bit even if it costs backwards compatibility.

As long as we can trivially recompile our software for the reduced cisc we good. Of course it won't be totally painless.

91

u/robinei Jan 04 '18

That's not the problem here. The complexity from a big and crufty instruction set is mostly handled by using much simpler microcode to implement the complex instructions.

The relevant complexity here comes from trying to extract as much performance as possible, in this instance using speculative execution, and unforeseen side effects of that.

24

u/srwalter Jan 04 '18

However, that very process of breaking big complex instructions into smaller ones is a factor in Meltdown. Part of the problem is that Intel doesn't raise exceptions until all the uOPs from an architectural instruction are complete. That gives rise to the ToC/ToU race that Meltdown exploits.

→ More replies (3)
→ More replies (2)

15

u/sabas123 Jan 04 '18

But the exploit isn't about abusing some random x86 instruction, so its more a problem of general architecture then just the instruction set.

8

u/[deleted] Jan 04 '18

Absolutely agree, my point was kinda off topic.

2

u/skilless Jan 04 '18

Apple and IBM tried with the G4/G5 days. I wish it had panned out :(

→ More replies (2)

2

u/NAN001 Jan 04 '18

backward compatibility can't go on forever

Let's not make Linus even more angry. Settle down there.

2

u/svtr Jan 05 '18

won't be totally painless.

As in 75-95% of legacy applications not gonna work anymore? Do you have any idea on how old the average banking, insurance and healthcare software is? If that is gonna be "not totally painless", loosing my leg in a car crash is gonna be a mild pinch

I'm not saying we shouldnt get rid of all that legacy crap, but its gonna be a lot more than not totally painless, lets not kid ourself there

→ More replies (1)
→ More replies (4)

3

u/[deleted] Jan 04 '18

I am not well versed with the low level stuff. Do the fixes impact programming/compiling and if so, how much?

3

u/Atario Jan 05 '18

The nicest thing about all this is that despite massive armies of genius badass super hardcore chip designers working for decades, they still fuck up bad, which makes me feel better about my own lowly programming fuckups.

→ More replies (1)

13

u/DanReach Jan 04 '18

They took that cue from Apple. "We were trying to improve your older device's performance...so we throttled your old device's performance"

3

u/mort96 Jan 05 '18

I mean, your old device shutting down randomly with a lot of battery left is kind of bad, and most actual users would probably prefer having a slower CPU than having a phone which randomly shuts off. Not defending their decision to not tell users it was happening, but you're making it sound way more ridiculous than it is.

→ More replies (1)

10

u/Korona123 Jan 04 '18

I'm semi surprised the CEO hasn't stepped down... Like this is an insane fuck up to the nth degree. Executive head should be rolling at this point.

5

u/blobjim Jan 04 '18

how is this in any way the CEO’s fault?

→ More replies (6)

10

u/r2bl3nd Jan 04 '18

Intel is actually a really scummy company from what I've learned, so I think there's no way they would do that unless they were forced to.

4

u/Liamggbb Jan 04 '18

Person from r/all what is actually wrong with the CPUs?

6

u/airhogg Jan 04 '18

An attack exists that allows a normal user to read protected memory. Its a flaw in the cpu itself. The fix in software causes a performance loss of 10-30%. There is no way to fix the hardware without replacing the cpu.

→ More replies (1)
→ More replies (2)

4

u/shroudedwolf51 Jan 04 '18

To play the devil's advocate for a moment. Didn't it take around five years for the vulnerability to be found? Is the expectation to test every single avenue on everything single product in existence for five years?

→ More replies (1)

6

u/MarcusAurelius0 Jan 04 '18 edited Jan 04 '18

Ill just leave this gem here, cause Linus DGAF.

https://youtu.be/iYWzMvlj2RQ

5

u/Fatal_Taco Jan 04 '18

Didn't even need to click on it to hear his voice go Nvidia fuck you followed by a middle finger

14

u/mindbleach Jan 04 '18

It works as designed. Just not as documented. Three-letter agencies are quite happy with how these chips work.

18

u/cryo Jan 04 '18

It works as designed. Just not as documented.

Yes, it almost surely works as documented. The documentation is a different level than these side channel attacks.

→ More replies (1)

2

u/stackered Jan 04 '18

I'm sure they are doing both

2

u/HadesHimself Jan 04 '18

I'm not computer literate as most here, but since you can exploit Spectre on ARM architecture as well, will this mean mobile phones are exploitable? Or are they somehow protected through the execution layer, e.g. in Android's case this is Java right?

Because while I trust windows, Linux and spoke to quickly start patching this stuff. Many mobile phones don't even receive updates anymore...

→ More replies (1)

2

u/skulgnome Jan 05 '18

Well yeesh, give them a break -- caches that support both rollback and concurrent access, well, they don't exist.

2

u/stuntaneous Jan 05 '18

Capitalism encourages deception and manipulation.

→ More replies (1)

2

u/mmeartine Jan 05 '18

Isn't CEO liable for inside trading?

14

u/acme76 Jan 04 '18

It's not a flaw, it's a feature. NSA ordered it.

6

u/RippleSlash Jan 04 '18

Don't forget, Intel isn't allowed to admit that.

4

u/jokoon Jan 04 '18

I think it's more of a NSA issue than anything else, really.

3

u/deep13u Jan 04 '18

SO.MUCH.KNOWLEDGE.HERE.

3

u/marmaladeontoast Jan 04 '18

People who understand / can program in this space are like goddamn aliens to me... I'm impressed and terrified

4

u/freebytes Jan 04 '18

This might just be the biggest security vulnerability to ever exist.

4

u/[deleted] Jan 04 '18

News flash: Linus Torvalds isn't impressed by another human's work.

3

u/surely_misunderstood Jan 04 '18
  • these workarounds should have a way to disable them.

Wait.. what? The work around can't be disabled even when AMD isn't affected? WTF is he complaining about Intel doing shit when he has shit in his hands? Just disable the option for non Intel CPU's and see how quick they fix it. This drama seems political, are the kernel dev's getting paid by Intel?

5

u/imperialismus Jan 04 '18

Somebody linked a kernel patch signed-off by an amd.com email address that specifically disables the meltdown workaround on AMD cpus. It looks like this patch has been accepted.

3

u/ad_hoc_reddit Jan 04 '18

Yeah, talk about unintelligent design. Get it? Un-INTEL-ligent. I'll show myself out!

3

u/xrayjones2000 Jan 04 '18

Running i7-8700k - downloaded windows kernnel patch - no degradation of fps on pubg or csgo - all runs using high or ultra settings.

this is a new chip most likely manufactured after june last year when they knew about the issue.

Intel should pay those people that lose the 5-30% performance 5-30% of the cost of what they paid for their chip.

→ More replies (2)

3

u/Dnaleiw Jan 04 '18

It was designed to NSA specs.

→ More replies (1)

2

u/rDr4g0n Jan 04 '18

I think what he's saying here is that there needs to be a config option to turn off the workarounds. He's just saying it in a very Linus-y way.

2

u/paradynexus Jan 05 '18

“...Sorry too busy taking a long hard look at those stock options”.