Author Topic: Memory management bug in Intel CPUs threatens massive performance hits.  (Read 46473 times)

0 Members and 1 Guest are viewing this topic.

Online tszaboo

  • Super Contributor
  • ***
  • Posts: 7364
  • Country: nl
  • Current job: ATEX product design
Re: Memory management bug in Intel CPUs threatens massive performance hits.
« Reply #100 on: January 04, 2018, 08:59:25 pm »
https://www.techpowerup.com/240273/intel-aware-of-cpu-flaws-before-ceo-brian-krzanich-planned-usd-24m-stock-sale
Quote
Intel CEO Brian Krzanich sold the maximum amount of shares in the company he could, keeping only the mandatory 250,000 minimum shares that come with his position at Intel. In total, Brian Krzanich's sold shares totaled 245,743 shares of stock he owned outright, and 644,135 shares he got from exercising his options. So, the man sold around 80% of his Intel shares while the company (and he himself, surely) knew the flaw would become public knowledge soon enough
Sounds like insider trading to me.
 

Offline David Hess

  • Super Contributor
  • ***
  • Posts: 16604
  • Country: us
  • DavidH
Re: Memory management bug in Intel CPUs threatens massive performance hits.
« Reply #101 on: January 05, 2018, 12:17:38 am »
But AMD CPUs have this Cortex A5 management unit running inside, and since it's part of the security subsystem, I assume it has a higher security clearance. What if the hacker can inject some bad code pieces to the ARM firmware, then using it to attack the ARM, then using the ARM to attach the Zen cores?

This would be a big deal but has nothing to do with the exploits being discussed.
 

Offline dr.diesel

  • Super Contributor
  • ***
  • Posts: 2214
  • Country: us
  • Cramming the magic smoke back in...
Re: Memory management bug in Intel CPUs threatens massive performance hits.
« Reply #102 on: January 05, 2018, 01:09:07 am »

Offline Jeroen3

  • Super Contributor
  • ***
  • Posts: 4078
  • Country: nl
  • Embedded Engineer
    • jeroen3.nl
Re: Memory management bug in Intel CPUs threatens massive performance hits.
« Reply #103 on: January 05, 2018, 06:47:15 am »
It works... Intel i7-4710MQ  :(
 

Offline Mr. Scram

  • Super Contributor
  • ***
  • Posts: 9810
  • Country: 00
  • Display aficionado
Re: Memory management bug in Intel CPUs threatens massive performance hits.
« Reply #104 on: January 05, 2018, 07:39:41 am »
One thing I've learned about computers, is that it does not matter if the crypto is good, if the implementation is bad. And so, then things get really complicated, and a single wrong character in some piece of code somewhere, can lead to what is called a 'catastrophic failure' with regard to having some expected security.

An important aspect of computer security is probably how allowing physical access to an adversary makes having security more like an impossibility, as the risk of anyone tampering with physical hardware at some location is more like a feature, than a threat model.
Again, like in normal life if they want you, they have you. Obviously, there are many parties out there that collect vast amounts of zero days to use against anyone they please. However, the reality is most of us aren't important enough for zero days. Those are expensive and relatively rare and reserved for state level chess, or as the basis for a large criminal attack. There's bound to be some application or even libraries on your computer you haven't updated and that might be enough. If you somehow dodged that bullet in the most unlikely fashion, there's still social engineering. There are attacks that can catch even very careful people out and if they don't, the customer service of all the services you use aren't so well behaved. You can do everything right and still suffer from someone else's mistakes. There are a couple of well known cases where this happened.

The uncomfortable truth is that when your time has come, you're done. Of course, this applies to regular life too and people prefer to deny that too.
 

Offline Mr. Scram

  • Super Contributor
  • ***
  • Posts: 9810
  • Country: 00
  • Display aficionado
Re: Memory management bug in Intel CPUs threatens massive performance hits.
« Reply #105 on: January 05, 2018, 08:08:49 am »
You can use NoScript and leave Javascript turned on for certain sites.  I don't think Youtube is going to send you anything malicious.
They won't risk the fallout from doing so in this case, but I don't put it beyond them to not only index your behaviour when you use their software, but your behaviour elsewhere as well. Like a Facebook button, except it's not just your browsing behaviour, but everything you do on your computer. I realize this could be considered tin foil hatty, but it's been shown again and again that companies will overstep boundaries until the law tells them they can't, and even try to get away with as much as they can.
 

Offline bd139

  • Super Contributor
  • ***
  • Posts: 23018
  • Country: gb
Re: Memory management bug in Intel CPUs threatens massive performance hits.
« Reply #106 on: January 05, 2018, 08:09:56 am »
Indeed. It’s the “better to ask for forgiveness than permission” argument. Doesn’t wash when EU GDPR kicks in. Seriously large damaging fines for pulling that shit.
 

Offline Mr. Scram

  • Super Contributor
  • ***
  • Posts: 9810
  • Country: 00
  • Display aficionado
Re: Memory management bug in Intel CPUs threatens massive performance hits.
« Reply #107 on: January 05, 2018, 08:37:37 am »
Indeed. It’s the “better to ask for forgiveness than permission” argument. Doesn’t wash when EU GDPR kicks in. Seriously large damaging fines for pulling that shit.
The GDPR seems a bit overreaching in some areas, but considering the things that have been going on that might just be what's needed. I just hope it isn't used to slap regular IT companies around, while the big parties dance between the raindrops with impunity.
 

Offline bd139

  • Super Contributor
  • ***
  • Posts: 23018
  • Country: gb
Re: Memory management bug in Intel CPUs threatens massive performance hits.
« Reply #108 on: January 05, 2018, 08:38:52 am »
It's about shafting the big guys and the finance sector. We're having to move a lot of mountains to make it work.

Looking at 17% loss on everything now with the patches: https://lkml.org/lkml/2018/1/3/281
 

Offline justanothercanuck

  • Frequent Contributor
  • **
  • Posts: 391
  • Country: ca
  • Doing retro repairs...
Re: Memory management bug in Intel CPUs threatens massive performance hits.
« Reply #109 on: January 05, 2018, 11:16:20 am »
I hope the hell POWER wins some fans out of this.

Not sure if anyone caught this, still reading through the other 4 pages...

https://access.redhat.com/security/vulnerabilities/speculativeexecution

PPC is out too.  I wouldn't be surprised if newer SPARC was also out since they also do branch prediction and/or out-of-order execution, but c'mon...  who owns modern Oracle hardware?  :-//
Maintain your old electronics!  If you don't preserve it, it could be lost forever!
 

Offline bd139

  • Super Contributor
  • ***
  • Posts: 23018
  • Country: gb
Re: Memory management bug in Intel CPUs threatens massive performance hits.
« Reply #110 on: January 05, 2018, 11:38:05 am »
Ah bugger. I had some hopes for POWER.

This dude is still OK!  :-DD

 

Offline GeorgeOfTheJungle

  • Super Contributor
  • ***
  • !
  • Posts: 2699
  • Country: tr
Re: Memory management bug in Intel CPUs threatens massive performance hits.
« Reply #111 on: January 05, 2018, 12:10:40 pm »
Looking at 17% loss on everything now with the patches: https://lkml.org/lkml/2018/1/3/281

Yep. "The impact of this will vary depending on the workload. Every time a program makes a call into the kernel—to read from disk, to send data to the network, to open a file, and so on—that call will be a little more expensive, since it will force the TLB to be flushed and the real kernel page table to be loaded. Programs that don't use the kernel much might see a hit of perhaps 2-3 percent—there's still some overhead because the kernel always has to run occasionally, to handle things like multitasking.

But workloads that call into the kernel a ton will see much greater performance drop off. In a benchmark, a program that does virtually nothing other than call into the kernel saw its performance drop by about 50 percent; in other words, each call into the kernel took twice as long with the patch than it did without. Benchmarks that use Linux's loopback networking also see a big hit, such as 17 percent in this Postgres benchmark. Real database workloads using real networking should see lower impact, because with real networks, the overhead of calling into the kernel tends to be dominated by the overhead of using the actual network"

I wonder if the i5/i7 in a MacBookPro6,1 (running Snow Leopard) is affected by this? Or this only happens on newer cpus?
The further a society drifts from truth, the more it will hate those who speak it.
 

Offline bd139

  • Super Contributor
  • ***
  • Posts: 23018
  • Country: gb
Re: Memory management bug in Intel CPUs threatens massive performance hits.
« Reply #112 on: January 05, 2018, 12:28:03 pm »
Snow leopard isn't patched. Only Sierra and High Sierra are.

I just moved two postgres and two nginx nodes over to new kernels. Here we go :D
 
The following users thanked this post: GeorgeOfTheJungle

Offline Mr. Scram

  • Super Contributor
  • ***
  • Posts: 9810
  • Country: 00
  • Display aficionado
Re: Memory management bug in Intel CPUs threatens massive performance hits.
« Reply #113 on: January 05, 2018, 12:37:14 pm »
Yep. "The impact of this will vary depending on the workload. Every time a program makes a call into the kernel—to read from disk, to send data to the network, to open a file, and so on—that call will be a little more expensive, since it will force the TLB to be flushed and the real kernel page table to be loaded. Programs that don't use the kernel much might see a hit of perhaps 2-3 percent—there's still some overhead because the kernel always has to run occasionally, to handle things like multitasking.

But workloads that call into the kernel a ton will see much greater performance drop off. In a benchmark, a program that does virtually nothing other than call into the kernel saw its performance drop by about 50 percent; in other words, each call into the kernel took twice as long with the patch than it did without. Benchmarks that use Linux's loopback networking also see a big hit, such as 17 percent in this Postgres benchmark. Real database workloads using real networking should see lower impact, because with real networks, the overhead of calling into the kernel tends to be dominated by the overhead of using the actual network"

I wonder if the i5/i7 in a MacBookPro6,1 (running Snow Leopard) is affected by this? Or this only happens on newer cpus?
Any except the most ancient Intel CPU is affected by this. Whatever the case, unless you have a reason to think you're not affected it's likely you are.
 
The following users thanked this post: GeorgeOfTheJungle

Offline GeorgeOfTheJungle

  • Super Contributor
  • ***
  • !
  • Posts: 2699
  • Country: tr
Re: Memory management bug in Intel CPUs threatens massive performance hits.
« Reply #114 on: January 05, 2018, 01:57:54 pm »
I wonder if the i5/i7 in a MacBookPro6,1 (running Snow Leopard) is affected by this? Or this only happens on newer cpus?
Any except the most ancient Intel CPU is affected by this. Whatever the case, unless you have a reason to think you're not affected it's likely you are.

Snow leopard isn't patched. Only Sierra and High Sierra are.

Ufff, In practice, then, ~ all the PCs in the world are vulnerable? And I'm going to have to abandon my beloved Snow Leopard? Shit.
« Last Edit: January 05, 2018, 02:00:33 pm by GeorgeOfTheJungle »
The further a society drifts from truth, the more it will hate those who speak it.
 

Offline nfmax

  • Super Contributor
  • ***
  • Posts: 1559
  • Country: gb
Re: Memory management bug in Intel CPUs threatens massive performance hits.
« Reply #115 on: January 05, 2018, 02:08:43 pm »
Snow leopard isn't patched. Only Sierra and High Sierra are.

Is Sierra patched already? I haven't seen that stated anywhere else yet. I just moved my 'testbed' MBP to 10.13.2 so I can use email/web and shut down my main iMac until the dust settles a bit. But the older Macs that won't run Sierra? Are they just scrap now? I have two PPC macs which run my music library and drive the scanner that HP couldn't be bothered to support on Lion (!). Ill probably have to set up a seperate airgapped cabled network for them now. To say nothing of my father's MBP which is too old for Sierra.

You would have to be mad to buy a computer or phone of any type now or for the next two or three years, without extreme need - although I gather Raspberry Pis of all versions are not affected.
 

Offline Kalvin

  • Super Contributor
  • ***
  • Posts: 2145
  • Country: fi
  • Embedded SW/HW.
Re: Memory management bug in Intel CPUs threatens massive performance hits.
« Reply #116 on: January 05, 2018, 02:08:54 pm »
Does this also affect virtualized OSs, like a Linux running in Virtualbox, ie. can the Linux running inside the Virtualbox running on Windows 10 host compromise the Windows 10 host? 
 

Offline nfmax

  • Super Contributor
  • ***
  • Posts: 1559
  • Country: gb
Re: Memory management bug in Intel CPUs threatens massive performance hits.
« Reply #117 on: January 05, 2018, 02:12:32 pm »
Does this also affect virtualized OSs, like a Linux running in Virtualbox, ie. can the Linux running inside the Virtualbox running on Windows 10 host compromise the Windows 10 host?

Yes

Basically the hardware protection between privilege levels has been demonstrated not to work.
 
The following users thanked this post: Kalvin

Online wraper

  • Supporter
  • ****
  • Posts: 16842
  • Country: lv
Re: Memory management bug in Intel CPUs threatens massive performance hits.
« Reply #118 on: January 05, 2018, 03:05:42 pm »
Does this also affect virtualized OSs, like a Linux running in Virtualbox, ie. can the Linux running inside the Virtualbox running on Windows 10 host compromise the Windows 10 host?
Yep it does.
On a side note, AMD introduced RAM encryption in EPYC which basically makes it immune to this.

 

Offline rrinker

  • Super Contributor
  • ***
  • Posts: 2046
  • Country: us
Re: Memory management bug in Intel CPUs threatens massive performance hits.
« Reply #119 on: January 05, 2018, 03:06:46 pm »
Does this also affect virtualized OSs, like a Linux running in Virtualbox, ie. can the Linux running inside the Virtualbox running on Windows 10 host compromise the Windows 10 host?

 That is the BIGGEST danger of this and why Microsoft rushed out patching their host systems for their Azure cloud environment ahead of their original planned date.
 Mostly without incident but we've had a few customers with issues where things didn't come up cleanly after the host was restarted under their VM.
 

Offline bd139

  • Super Contributor
  • ***
  • Posts: 23018
  • Country: gb
Re: Memory management bug in Intel CPUs threatens massive performance hits.
« Reply #120 on: January 05, 2018, 03:11:39 pm »
Yep it does.
On a side note, AMD introduced RAM encryption in EPYC which basically makes it immune to this.


Until someone works out how to read the keys with it :)
 

Offline Mr. Scram

  • Super Contributor
  • ***
  • Posts: 9810
  • Country: 00
  • Display aficionado
Re: Memory management bug in Intel CPUs threatens massive performance hits.
« Reply #121 on: January 05, 2018, 03:11:58 pm »
Does this also affect virtualized OSs, like a Linux running in Virtualbox, ie. can the Linux running inside the Virtualbox running on Windows 10 host compromise the Windows 10 host?
Yep it does.
On a side note, AMD introduced RAM encryption in EPYC which basically makes it immune to this.


If that works properly and sufficiently it might just net them a huge piece of the pie.
 

Offline BravoV

  • Super Contributor
  • ***
  • Posts: 7547
  • Country: 00
  • +++ ATH1
Re: Memory management bug in Intel CPUs threatens massive performance hits.
« Reply #122 on: January 05, 2018, 03:21:27 pm »
If that works properly and sufficiently it might just net them a huge piece of the pie.

Yep, have a friend that works in big corporation at high level, just told me that regarding their company's major servers refresh program that is due this year, the upper management had decided to rule out Intel based servers as they're going to issue a major purchase order for this Q1.

I can imagine similar scenes are also happening and will happen at least for Q1 and Q2 this year throughout the world big companies.

Looks like 2018 is a good year for AMD's CEO Lisa Su at least.

Offline dr.diesel

  • Super Contributor
  • ***
  • Posts: 2214
  • Country: us
  • Cramming the magic smoke back in...
Re: Memory management bug in Intel CPUs threatens massive performance hits.
« Reply #123 on: January 05, 2018, 03:32:29 pm »
I plan to do the same, AMD is now competitive enough to suit my/customers needs, but also, Intel needs more competition.

Offline cdev

  • Super Contributor
  • ***
  • !
  • Posts: 7350
  • Country: 00
Re: Memory management bug in Intel CPUs threatens massive performance hits.
« Reply #124 on: January 05, 2018, 03:39:57 pm »
This is really about two huge security problems.  Fixing them will impact performance on affected HW.

https://spectreattack.com/

>>  https://meltdownattack.com/meltdown.pdf    (Intel specific)

>> https://spectreattack.com/spectre.pdf    (Likely impacts other HW platforms  as well)

Also, several other quite similar other exploits have been discovered recently.

It seems to me that there is likely much more to this and related stories. Time will tell.
« Last Edit: January 05, 2018, 04:21:20 pm by cdev »
"What the large print giveth, the small print taketh away."
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf