News for hackers. Stuff that matters.
Re:Google says Rowhammer attacks are gaining range as RAM is... by notriddle on Friday May 28, 2021 @02:44PM (#27319051)
In other words, blame Intel for trying to pass off ECC as a "Enterprise Feature" instead of the basic necessity that it is.
Re:Google says Rowhammer attacks are gaining range as RAM is... by hypertele-Xii on Friday May 28, 2021 @02:52PM (#27319142)
ECC is vulnerable to Rowhammer.
Re:Google says Rowhammer attacks are gaining range as RAM is... by notriddle on Friday May 28, 2021 @03:00PM (#27319210)
I saw this article linked later. https://www.vusec.net/projects/eccploit/

It's interesting! It seems fixable, based on information later on in the article ("Can I get DDR3 DIMMs that are Rowhammer-free?"), and ECC only seems to be part of a solution, and not a complete solution.

But you're still right, and I was still wrong: ECC alone isn't good enough.

Re:Google says Rowhammer attacks are gaining range as RAM is... by josh2600 on Friday May 28, 2021 @03:19PM (#27319415)
I mean the punchline is: if you heat something up enough then you can get electrons to wiggle. At some level of cell wall thickness, the cost/time/annoyance of triggering a rowhammer exceeds the value of the attack, and other methods become cheaper or more practical.

Ultimately, nothing that an attacker has physical access to can be completely secured, we can only raise the cost in terms of time and money to attempt to breach the system. Even a system with tamper-destructive enclosures have seen attacks (it's just more expensive and difficult than other attacks).

In short, the more annoying/expensive you can make it to attack your system, the smaller the set of attackers becomes.

Re:Google says Rowhammer attacks are gaining range as RAM is... by tooltower on Friday May 28, 2021 @08:03PM (#27321945)
We are not talking about physical attacks. Neither are we talking about attacks based purely on heating up the DRAM chips. The topic here is a remote attacker who can target specific words or bits to be flipped.
Re:Google says Rowhammer attacks are gaining range as RAM is... by josh2600 on Saturday May 29, 2021 @06:13PM (#27328644)
When bits are flipped in a row hammer attack, what is happening to the dram? Most people would argue the energetic potential is increasing causing a failure of the boundary between cells...
Re:Google says Rowhammer attacks are gaining range as RAM is... by nullc on Friday May 28, 2021 @03:00PM (#27319216)
Much less so.
Re:Google says Rowhammer attacks are gaining range as RAM is... by dahfizz on Saturday May 29, 2021 @10:28AM (#27325461)
Row hammer is already super impractical. ECC does make the exploit harder.
Re:Google says Rowhammer attacks are gaining range as RAM is... by nwah1 on Friday May 28, 2021 @03:00PM (#27319209)
Equally vulnerable?
Re:Google says Rowhammer attacks are gaining range as RAM is... by r00fus on Friday May 28, 2021 @03:13PM (#27319346)
The same way that masks don't prevent COVID.
Re:Google says Rowhammer attacks are gaining range as RAM is... by th0ma5 on Friday May 28, 2021 @04:05PM (#27319839)
Right in statistically mostly it does / they do.
Re:Google says Rowhammer attacks are gaining range as RAM is... by kortilla on Friday May 28, 2021 @06:29PM (#27321273)
No, statistically it’s almost useless to prevent yourself from getting COVID. It’s mainly about reducing your ability to spread it.

That’s why people get mad when you don’t wear a mask even if you “don’t care about getting covid”.

Re:Google says Rowhammer attacks are gaining range as RAM is... by th0ma5 on Friday May 28, 2021 @06:32PM (#27321300)
Yes that was a prominent theory at one time and helped a lot of the public adopt masks but it is actually both https://www.npr.org/sections/health-shots/2020/11/11/9339038...
Re:Google says Rowhammer attacks are gaining range as RAM is... by vbezhenar on Friday May 28, 2021 @05:37PM (#27320823)
Do you think many Ryzen PCs use ECC? I doubt that. It's accepted truth among gamers and power users, that ECC is waste of budget. I don't share this position, but if you'd ask on some computer forums, that's what you'll hear. If ECC would be enabled on all Intel CPUs, nothing fundamentally would change, most users would prefer to save 10% on their RAM.
Re:Google says Rowhammer attacks are gaining range as RAM is... by Dylan16807 on Saturday May 29, 2021 @02:22AM (#27323427)
> It's accepted truth among gamers and power users, that ECC is waste of budget.

A waste of budget at what price?

Are they actually looking at $80 of ram becoming $90, or are they looking at it becoming $160 and slower? Which is about what I see when I go check newegg.

I don't think you can extrapolate current decisions to a world where adding ECC is 12% of the RAM budget and 1-2% of the total budget.

Re:Google says Rowhammer attacks are gaining range as RAM is... by staticassertion on Friday May 28, 2021 @09:05PM (#27322253)
The price of ECC is artificially inflated because it's not available to consumers.
Re:Google says Rowhammer attacks are gaining range as RAM is... by Laforet on Saturday May 29, 2021 @12:28AM (#27323028)
At minimum ECC will cost you an extra 12.5% for the extra bit of RAM. That part is not inflated.
Re:Google says Rowhammer attacks are gaining range as RAM is... by staticassertion on Saturday May 29, 2021 @01:24AM (#27323244)
Yeah I wasn't trying to imply it would cost nothing to add ECC.
Re:Google says Rowhammer attacks are gaining range as RAM is... by GekkePrutser on Friday May 28, 2021 @05:40PM (#27320853)
I don't use it on mine, but my Ryzen PC is my gaming box.. Where the impact from such things is very limited.

But ECC RAM is a lot more than 10% more expensive. This is part of the problem. Intel pushes it into a high-end niche which puts it in a much more expensive category, and it also loses economy of scale.

Re:Google says Rowhammer attacks are gaining range as RAM is... by patrakov on Saturday May 29, 2021 @11:20AM (#27325806)
Not sure about PCs, but my Ryzen laptop (HP EliteBook 835 G6) seems to use the AMD technology for memory encryption, with per-boot keys. This is not ECC, but also good enough to counteract RowHammer, because the attacker cannot target specific bits.
Re:Google says Rowhammer attacks are gaining range as RAM is... by ghoward on Friday May 28, 2021 @07:56PM (#27321904)
I use it on my Ryzen PC, but I am also running ZFS, and I'm a little paranoid about using my data.

This is one anecdote, though, so it's probably not useful. But people using ECC on Ryzen do exist.

Re:Google says Rowhammer attacks are gaining range as RAM is... by staticassertion on Friday May 28, 2021 @04:44PM (#27320249)
Agreed. Rowhammer is just one more example of this, but it's frustrating that ECC is not widely deployed.
Re:Google says Rowhammer attacks are gaining range as RAM is... by creato on Friday May 28, 2021 @03:06PM (#27319264)
DRAM manufacturers continue (knowingly at this point) to manufacture faulty products, and we should blame Intel?
Re:Google says Rowhammer attacks are gaining range as RAM is... by notriddle on Friday May 28, 2021 @03:31PM (#27319545)
Yes.

Intel is an industry leader. EFI, Thunderbolt, and the "ultrabook" product category are all their ideas. By adding a feature to their CPU products, they induce demand for anything that complements it.

By putting ECC support into their highest-end mobile CPUs only, they made them into high-end luxuries instead of industry standard. https://ark.intel.com/content/www/us/en/ark/search/featurefi...

Re:Google says Rowhammer attacks are gaining range as RAM is... by userbinator on Friday May 28, 2021 @09:41PM (#27322425)
As others have mentioned, ECC is nothing more than a bandaid for what is ultimately a defective product.
Re:Google says Rowhammer attacks are gaining range as RAM is... by staticassertion on Friday May 28, 2021 @11:49PM (#27322886)
I don't think that's true at all. ECC wasn't designed specifically with this attack in mind, and it's still a pretty effective mitigation.

There's nothing defective about RAM, it's never going to be the case that errors won't happen, it's just that before we were worried about heat and radiation and now we have to worry about attackers too.

Re:Google says Rowhammer attacks are gaining range as RAM is... by jolux on Friday May 28, 2021 @04:23PM (#27320024)
The Ultrabook brand was Intel's idea but I'm pretty sure it was created to make sure that the Wintel ecosystem could stay competitive with the MacBook Air.
Re:Google says Rowhammer attacks are gaining range as RAM is... by sroussey on Friday May 28, 2021 @05:17PM (#27320628)
That doesn’t explain Apple and the M1 though.
Re:Google says Rowhammer attacks are gaining range as RAM is... by gugagore on Friday May 28, 2021 @03:16PM (#27319383)
I am not familiar with DRAM spec sheets, but are manufacturers specifying that there will be zero errors?

Without a specification that says so, I don't think it's necessarily the fault of the manufacturer if they cannot build perfect RAM!

Suppose someone builds a car with one these computers in a safety-critical role, and then someone gets injured because of an error that "originated" with the RAM.

Re:Google says Rowhammer attacks are gaining range as RAM is... by rini17 on Friday May 28, 2021 @05:48PM (#27320927)
They specify timing and when it is followed, RAM should work without fault.

But if there are corner cases like this, they should be added to specs. Most likely it would require memory controller to remember last addresses and insert delays if rowhammer attempt is detected. And/or make CPU microoperation scheduler avoid it. No idea how expensive would that be, surely nontrivial.

Re:Google says Rowhammer attacks are gaining range as RAM is... by kevingadd on Saturday May 29, 2021 @12:48AM (#27323095)
There are already measures like that where the memory controller attempts to identify "victim rows" and refresh them, but attacks can fool the victim row detection and succeed anyway.
Re:Google says Rowhammer attacks are gaining range as RAM is... by rocqua on Friday May 28, 2021 @05:48PM (#27320931)
If my car's spec doesn't say "the wheels stay on" and then the wheels fall off, the car is still defective.
Re:Google says Rowhammer attacks are gaining range as RAM is... by userbinator on Friday May 28, 2021 @09:39PM (#27322410)
The true safety-critical stuff is far from ordinary and would never use commodity DRAM.
Re:Google says Rowhammer attacks are gaining range as RAM is... by GekkePrutser on Friday May 28, 2021 @05:38PM (#27320836)
They could include ECC but it wouldn't work on most systems so why would they bother?

At least on AMD it works these days.

Re:Google says Rowhammer attacks are gaining range as RAM is... by nightfly on Friday May 28, 2021 @05:47PM (#27320916)
How many times more expensive would DRAM that is immune to rowhammer cost?
Re:Google says Rowhammer attacks are gaining range as RAM is... by staticassertion on Friday May 28, 2021 @09:10PM (#27322281)
Not an expert, but I feel like the answer is not much. ECC RAM is not, to my knowledge, considerably more expensive to produce - the reason it costs more is because it only works with specific devices, so it's more of a market cost.

ECC RAM is pretty effective as-is against rowhammer, and imo you could very likely tweak ECC's approach to get even further.

The 'worst case' solution wouldn't be more than 2x, right? Since you'd just have to keep a clone of RAM, but obviously shuffled so that the same errors wouldn't occur in the same places. So 2x seems like the sort of absurd upper bound, but I feel like we could do a lot better.

Re:Google says Rowhammer attacks are gaining range as RAM is... by Dylan16807 on Saturday May 29, 2021 @02:38AM (#27323479)
My understanding is that rows in memory chips have thousands of bits in them. If you add 10-20 more to act as a refresh counter, then you can trigger extra refreshes if it gets high enough. Done right, that should give you immunity to rowhammer, while only costing a fraction of a percent in extra die space. And you won't be able to trick it like you can hash-table-based refresh counters.
Re:Google says Rowhammer attacks are gaining range as RAM is... by userbinator on Friday May 28, 2021 @09:40PM (#27322421)
Mid 2008 or so I think was when rowhammer-prone DRAM started appearing, so consider the density of that DRAM compared to today.