Live data from Hacker News

The mysterious case of the Linux Page Table Isolation patches

pythonsweetness.tumblr.com

71–80 of 264 posts

Re: The mysterious case of the Linux Page Table Isolation patches

#71

IMHO, with RowHammer, the hardware is broken and it will continue to be broken until users complain enough --- maybe to the point of absolutely refusing to buy --- that the manufacturers and designers stop thinking "works 99.9999999999% of the time" is good enough: https://news.ycombinator.com/item?id=12410274

There is no way the average technology user is going to understand the architectural distinctions of DRAM implementations enough to base their purchasing decisions on that.

Re: The mysterious case of the Linux Page Table Isolation patches

#72
post #5

Shouldn't cloud-grade computers be immune to rowhammer (or at least rowhammer should be much less efficient) as they typically use ECC RAM. Switching ECC RAM in a way that also modifies checksum in a deterministic way is (was?) not practical?

ECC wasn't designed to protect against this type of failure. It assumes a low probability of coincident multi-bit errors.

Re: The mysterious case of the Linux Page Table Isolation patches

#73
post #2

"Hey, I think I noticed a horrible horrible embargoed security bug. I know, I should do my best to pole holes in the embargo early!"

They weren't really trying to uncover the exploit such that they can reproduce it. They were trying to learn who the exploit affects and what the impact is. I don't think there's anything wrong with that. If you're an AWS customer who depends on hypervisor isolation for critical security guarantees, it helps you to know that this is threatened and perhaps exploitable. Please don't buy into the idea that embargoes and…

The CCC stated also that they observed that companies take a more reactive rather than proactive stance regarding their IT security because they believe that they will be notified of vulnerabilities prior of public disclosure or attacks. This may justify not following embargoes and coordinated disclosure.

Re: The mysterious case of the Linux Page Table Isolation patches

#75
post #39

Earlier quoted context omitted.

Embargos do not make you secure. If the bug exists the only safe assumption is that it is already being exploited. The faster the information gets out the better.

No, but they prevent everybody with ill-intent from exploiting the issue en-masse

Once there is disclosure then 100% of users can make the choice to take appropriate mitigation steps.

Prior to disclosure there will always be the possibility that some users are being exploited without their knowledge.

Therefore disclosure always improves the situation by giving those who could have been exploited without their knowledge the choice to take mitigation steps.

All of the "responsible disclosure" nonsense is just PR by companies who want to avoid the most obvious mitigation, which is for customers to stop using their products.

Re: The mysterious case of the Linux Page Table Isolation patches

#76

The kernels for Gentoo have been all over the place for the past few weeks. I'm running 4.12 at the moment, then the repos updated to 4.14, which wouldn't build for me, so I waited a week for genkernel to modernize. When I came back 4.14 had been marked unstable and 4.12 was masked, making 4.9 the latest supported kernel. Seems that whatever is happening is a Big Deal.

Thats because Gentoo decided to switch on a new compile flag, then didn't bother to test that the kernel still boots: https://lkml.org/lkml/2017/12/29/449

The same compiler (mis-)feature was also the cause of spurious crashes in Go applications (diagnosed about a month ago: https://marcan.st/2017/12/debugging-an-evil-go-runtime-bug/). Linus's comment is fun:

  So yes, It's a terminally broken compiler from hell. I assume gentoo
  has applied some completely broken security patch to their compiler,
  turning said compiler into complete garbage.

Re: The mysterious case of the Linux Page Table Isolation patches

#77
post #40

IMHO, with RowHammer, the hardware is broken and it will continue to be broken until users complain enough --- maybe to the point of absolutely refusing to buy --- that the manufacturers and designers stop thinking "works 99.9999999999% of the time" is good enough: https://news.ycombinator.com/item?id=12410274

The current miniaturization of DRAM circuitry doesn't really allow for a hardware fix for the RowHammer attack. During DRAM manufacturing a test similar to the RowHammer attack exists. This test has certain bounds for passing. If the bounds were tightened up to the level of perfection to prevent the attack it would drop the yield a considerable amount.

There are many examples of hardware using unreliable underlying layers, countered with whitening/scrambling, redudancy and other data encoding tricks. What would make RowHammer imprevious to these?

Re: The mysterious case of the Linux Page Table Isolation patches

#78
post #39

Earlier quoted context omitted.

Embargos do not make you secure. If the bug exists the only safe assumption is that it is already being exploited. The faster the information gets out the better.

No, but they prevent everybody with ill-intent from exploiting the issue en-masse

If this guy can figure this out, anybody with the means and motivation to write such an exploit is already working on t.

Re: The mysterious case of the Linux Page Table Isolation patches

#79
post #25

Earlier quoted context omitted.

The patchset being developed in the open, and the rationale for the development being done in the way it is, are two very different things.

But no one is hiding the bug this "fixes". If this bug + something else can be a hypervisor escape, well that's too bad for the AWS of this world, but I don't see how this patchset would leak the "something else" we don't know about?

No, not AWS. Xen was called safe. All the other KVM providers and normal linux servers in Intel are called out. arm, sparc, s390 were called out as safe, as they provide two seperate translation table registers, only intel provides only one.

Re: The mysterious case of the Linux Page Table Isolation patches

#80
post #77
post #40

Earlier quoted context omitted.

The current miniaturization of DRAM circuitry doesn't really allow for a hardware fix for the RowHammer attack. During DRAM manufacturing a test similar to the RowHammer attack exists. This test has certain bounds for passing. If the bounds were tightened up to the level of perfection to prevent the attack it would drop the yield a considerable amount.

There are many examples of hardware using unreliable underlying layers, countered with whitening/scrambling, redudancy and other data encoding tricks. What would make RowHammer imprevious to these?

Those tricks cost latency. You can get away with hiding some of that latency in access time to persistent storage. It's much harder to do so with RAM.

ECC helps, and can be done at full rate, but isn't a complete solution for all possible problems. And anything you do in hardware at full RAM speed is expensive.

Post reply on HN