News for hackers. Stuff that matters.
Re:Blacksmith – Rowhammer bit flips on all DRAM devices toda... by 015a on Monday November 15, 2021 @12:04PM (#29229614)
Eventually, it will be obvious that running shared workloads on a single piece of physical hardware has fundamentally unremediatable security implications. This slow recognition is deeply perpendicular with how the current landscape of x86 chips are both manufactured and priced, as well as how cloud providers have structured billions of dollars in DC investment; in other words, they'll down-play it. This will be a massive opportunity for ARM & SoC manufacturers in the coming years, as its far better positioned to offer, for example, a single rack appliance with 64 individual 2-core mini-computers at a price-point competitive with a 128 core x86 rack, as one computer.

Computing moves in cycles:

- 2000s: gigahertz race on each core

- 2010s: increase core counts, multicore everything

- 2020s: back to core-efficiency and increasing per-core performance. M1 is already leading this charge, but is obviously a mismatch for a DC environment.

AMD and Intel need to adjust, or face extinction. Its not just about pushing ultra-high per-core performance (they're both good at this); its about pushing for more efficiency, so per-blade density in a DC can be pushed higher in the face of more, smaller individual computers. If they don't evolve, AWS will for them [1].

[1] https://aws.amazon.com/ec2/graviton/

Re:Blacksmith – Rowhammer bit flips on all DRAM devices toda... by landonxjames on Monday November 15, 2021 @12:13PM (#29229706)
"We have never shared two threads on a core between EC2 instances" - https://www.youtube.com/watch?v=kQ4H6XO-iao&t=2485s

Interesting that AWS has been mitigating for side channel attacks since before they became a big news item. Curious about Azure and GCP's stance on this

Re:Blacksmith – Rowhammer bit flips on all DRAM devices toda... by mlyle on Monday November 15, 2021 @12:21PM (#29229829)
Maybe they were super smart and foresaw side-channel being such a big problem.

Or, maybe, they just thought the lack of deterministic performance created billing/accounting/customer service problems. (One hyperthread can just about completely starve in many circumstances).

Re:Blacksmith – Rowhammer bit flips on all DRAM devices toda... by belter on Monday November 15, 2021 @12:37PM (#29230029)
Microsoft Research looked into it - Paper is from 2020 and is reference 24 in the document mentioned in the main post here.

"Are We Susceptible to Rowhammer? An End-to-End Methodology for Cloud Providers"

https://arxiv.org/pdf/2003.04498.pdf

Although their answer in this paper was diplomatic, my interpretation is that they confirm it as a problem. Their conclusion was it would not be as bad it was considered at the time. To be revisited on the context of this more recent work.

Edit: Adding main reference

"BLACKSMITH: Scalable Rowhammering in the Frequency Domain" https://comsec.ethz.ch/wp-content/files/blacksmith_sp22.pdf

Re:Blacksmith – Rowhammer bit flips on all DRAM devices toda... by thrashh on Monday November 15, 2021 @12:34PM (#29229993)
Well, you pick EC2 because you want dedicated cores.

You pick a VPS because you want to save costs and share cores.

So it’s not so much AWS choosing as you the customer choosing.

Re:Blacksmith – Rowhammer bit flips on all DRAM devices toda... by secondcoming on Monday November 15, 2021 @01:57PM (#29231117)
I was under the impression that AWS provides vCPUs, not dedicated CPUs unless you go bare-metal?
Re:Blacksmith – Rowhammer bit flips on all DRAM devices toda... by bostik on Monday November 15, 2021 @03:34PM (#29232326)
You can get dedicated tenancy instances in AWS, for an upfront monthly cost of ~$1.2k (per account) and about +10% on top of your normal EC2 instance costs.

I ran the numbers back in 2015 and persuaded the previous employer to go for dedicated tenancy with all performance-critical and privacy-sensitive workloads. I was effectively hedging against unknown but practically guaranteed cross-VM attacks to pacify a paranoid regulator.

Then Rowhammer happened. Less than a day later, our contact with the regulator comes to me asking how it affects us. Being able to answer - with absolute confidence - that it did not, was one of the proudest moments of my career. And the turnaround from "regulator comes asking awkward questions" to "regulator is happy and sees no reason to ask again" of less than 48 hours must be some kind of record too.

Re:Blacksmith – Rowhammer bit flips on all DRAM devices toda... by vngzs on Monday November 15, 2021 @02:33PM (#29231605)
You get dedicated time on a core while your task is running. For instance t3.medium is 2 vCPUs (because hyperthreading) but as you can see in [0] it's only one physical core.

[0]: https://aws.amazon.com/ec2/physicalcores/

Re:Blacksmith – Rowhammer bit flips on all DRAM devices toda... by dathinab on Monday November 15, 2021 @01:52PM (#29231052)
> Maybe they were super smart and foresaw side-channel being such a big problem.

The looming thread of side-channel attacks on SMT systems has been known since well, before we had SMT systems (because it also can apply to Co-Processor, and non SMT multi core systems).

The difference between back then and today is "we believe it's possible but haven't found a way yet" and "there are multiple known ways", as well as it being wide spread known instead of just in some communities.

The reason we still shipped the problematic CPU's is because improvement in perf. and as such competitiveness and revenue on the short term where more important.

There also was a shift in what people expect from security and which attack vectors are relevant. For example user applications a user installed where generally trusted as much as the user. While today we increasingly move to not trusting any applications even if they are installed by a trusted user and produced by a trusted third party. Similar running arbitrary untrusted native code from multiple untrusted users and "upholding" side-channel protection wasn't often an important requirement in the past.

Re:Blacksmith – Rowhammer bit flips on all DRAM devices toda... by mlyle on Monday November 15, 2021 @08:32PM (#29235508)
> The difference between back then and today is "we believe it's possible but haven't found a way yet" and "there are multiple known ways", as well as it being wide spread known instead of just in some communities.

I think the big difference is that we have attacks with high bandwidths of exfiltrated information-- instead of very slow, difficult to control leaks.

Re:Blacksmith – Rowhammer bit flips on all DRAM devices toda... by KingMachiavelli on Monday November 15, 2021 @12:36PM (#29230015)
They offer vCPUs in multiples of 2 so it makes logical sense to divide the resources that way; performance would be a lot more unpredictable if you could be sharing a single core with another EC2 user/instance.
Re:Blacksmith – Rowhammer bit flips on all DRAM devices toda... by kmeisthax on Monday November 15, 2021 @02:30PM (#29231551)
Viable sidechannel attacks on SMP/Hyperthreaded designs have been known about since 2005, only a few years after Intel brought their first SMP designs to market.
Re:Blacksmith – Rowhammer bit flips on all DRAM devices toda... by discreteevent on Monday November 15, 2021 @01:12PM (#29230504)
That's ok unless you are running something virtual like kubernetes on top of the EC2 instance but want to ensure isolation between containers/pods.
Re:Blacksmith – Rowhammer bit flips on all DRAM devices toda... by my123 on Monday November 15, 2021 @02:21PM (#29231430)
That’s insecure today anyway. Containers are not a security boundary. (If you don’t use a VMM like gVisor, Firecracker or go the Drawbridge way)
Re:Blacksmith – Rowhammer bit flips on all DRAM devices toda... by com2kid on Monday November 15, 2021 @12:14PM (#29229722)
> Eventually, it will be obvious that running shared workloads on a single piece of physical hardware has fundamentally unremediatable security implications.

Sure, but this is worse than that. This is "your online poker game client can gets access to your web browser's bank account session info."

We need process isolation within a single machine, or else we are kinda screwed as a field.

Re:Blacksmith – Rowhammer bit flips on all DRAM devices toda... by thrashh on Monday November 15, 2021 @01:44PM (#29230934)
IMO this is a perspective from software engineering.

But this is an electrical problem. Interference is a huge issue with any engineering that involves physical things and these kinds of attacks are just interference problems. This issue is no different from a microwave knocking out your Wi-Fi. These attacks have become possible because the acceptable interference threshold that chip makers have been using has turned out to be too low.

How do you fix interference problems? First, you choose a new threshold of acceptable interference and then you engineer better isolation, you lower density, and/or you switch technology.

We could make shared computing complete safe tomorrow if we wanted to so I think calling this the end to shared computing is quite alarmist. The issue is that we collectively want to both have the cake and eat it too: we currently have a certain cost-to-compute ratio that we have become accustomed to and we don't want to compromise that. We're basically buying time until we can invent a new technology that can achieve the same density without the same level of interference.

Re:Blacksmith – Rowhammer bit flips on all DRAM devices toda... by yholio on Monday November 15, 2021 @05:41PM (#29233886)
In a world where insecure high density exists, secure low density is at odds with cloud computing: the cloud makes sense only if you can efficiently utilize you computing power round the clock and make it cheaper than shipping mostly idle terminals. If securing the cloud is expensive, then there's a cutoff point where it's better to ship highly dense, cheap terminals.

So maybe "screwed as a field" is not an exaggeration if the field is butt computing.

Re:Blacksmith – Rowhammer bit flips on all DRAM devices toda... by AnimalMuppet on Monday November 15, 2021 @02:09PM (#29231278)
"Lower density" is a really hard sell at the moment...
Re:Blacksmith – Rowhammer bit flips on all DRAM devices toda... by jeremyjh on Monday November 15, 2021 @01:13PM (#29230528)
Right, we may be entering an era in which secure network computing is impractical and the impact could be very far reaching.
Re:Blacksmith – Rowhammer bit flips on all DRAM devices toda... by johnvaluk on Monday November 15, 2021 @01:49PM (#29231003)
I've been experimenting with isolating work activity from personal activity. It's amazing how difficult it is to prevent information from leaking between networks and applications. It's hard to find alternative solutions for entrenched convergence/convenience features like copy/paste, messaging and entertainment. Working remotely reveals too much about your personal and work relationships to corporations and VPNs only help to connect more dots. I can't curl up in a hammock with 3 laptops and a phone on a nice day, so I keep returning to a single device that does it all.
Re:Blacksmith – Rowhammer bit flips on all DRAM devices toda... by orlytho on Monday November 15, 2021 @04:13PM (#29232855)
Sorry, entering? Just like climate change some of us have been warning that a lack of focus on and willingness to challenge the fundamentals of building software and systems would lead to non-securable computing in the general case. That warning has been sounding since the 1990s. Nobody cares. It took a meat plant and pipeline paying a ransom in cryptocurrency for everyone to notice that we are completely and irredeemably fucked as a computing species. We are already there, my guy, and it’s only a matter of time now.

Think about someone trying to do basic ETL. Like having a tabular file and summing it or something. Don’t use Excel, we say, stand up a $4 million Spark and AWS architecture with seven hundred pitfalls that can let bored Russians take over your whole network as if they were going to the dry cleaners because remember, you just might be Google someday. That’s where we are. It’s been a complete industry failure for a decade and it’s only getting worse. Accelerating, even: now you need some operationally-terrifying Kubernetes to even be at the table, and then as an industry we (rightly) say running this stuff ourselves is too hard, so pay Amazon to do it rather than even ponder if we have settled on the right approach.

Tada: Humanity just lost computing to three companies. We very likely aren’t getting it back.

There are probably 5,000 people doing this work who can adequately secure such a system and make it mostly impermeable. Where middle computing is royally screwed is that nearly all of them work in San Francisco or its clones abroad. So then you get “best practice” blog posts and industry think pieces and the lowest bidder ties them together into something resembling a competent computing system. That’s been the state of the art since 2004 everywhere except Santa Clara county.

With the exception of some areas in the IC and DoD, I just described the entirety of US government IT. That ETL example? It’s actually real and underpins a small part of Medicare across several government contracts. Because the tools the valley exports are all they’ve got, and we sure love building systems with massive footguns, and then shaming organizations publicly for missing item #543 on the tribal “secure your computing system” checklist and shooting themselves.

The entire industry must change, top to bottom, but just like climate change, again, that’s a nonstarter. Posix and the Web are not the path forward and I hope I live to see the industry figure that out. I’m increasingly skeptical. The good news is my hometown might flood into the sea first, sparing me from considering in my last moments that every argument I’ve ever made in this profession has fallen on deaf ears and that everyone has to derive our industry’s peril from first principles for themselves.

Re:Blacksmith – Rowhammer bit flips on all DRAM devices toda... by jeremyjh on Monday November 15, 2021 @05:16PM (#29233594)
Right, on average industry has been failing forever. The difference now is it might not be practical for anyone to actually secure an internet server or web browser, full stop. I think that is a fundamentally different situation.
Re:Blacksmith – Rowhammer bit flips on all DRAM devices toda... by orlytho on Monday November 15, 2021 @05:17PM (#29233607)
I think we have been in that situation since everybody started mimicking how Google does things
Re:Blacksmith – Rowhammer bit flips on all DRAM devices toda... by Teever on Tuesday November 16, 2021 @02:30AM (#29237877)
I like your writing style.
Re:Blacksmith – Rowhammer bit flips on all DRAM devices toda... by KingMachiavelli on Monday November 15, 2021 @12:31PM (#29229963)
I don't see how Graviton/custom ARM chips are evidence of this predicted trend. ARM chips tend to have even higher thread counts and poorer per-core performance. The biggest security difference is the absence of SMT/hyper-threading.

I think it will come down to what you are willing to call 'individual' processors. But actually having physically distinct memory seems like a lot of overhead for attacks that won't matter for 90% of users. Also I would think that the on-board ECC of DDR5 would protect it against these types of attacks.

Re:Blacksmith – Rowhammer bit flips on all DRAM devices toda... by 015a on Monday November 15, 2021 @03:29PM (#29232277)
Graviton is not a prediction of the trend; its a signal that Amazon is willing to make very deep investment into custom, customer-facing hardware if Intel/AMD can't deliver what they need.

The trend is yet to come. My statement is that, if AMD/Intel doesn't adapt, Amazon has the hardware investment to leave them behind, just like Apple did.

But to be clear on two points: They will probably adapt. And Amazon/etc will probably never leave them behind fully. DCs, especially public cloud, are not all-or-nothing like Apple's Mac Lineup is.

Then the question follows, why would they want something Intel/AMD isn't offering right now? The trend is System-on-Chip. Beyond Security (this isn't the last electrical interference/speculative execution-like attack we'll see). SoCs are easier to service (easier != cheaper. holistic replacement versus per-component debugging. servers are cattle, not pets). Denser. More vertically integrated. Capable of far higher IO performance. Lots of benefits.

Mega-servers with 256 cores and 4 terabytes of memory still have a huge place in all DCs; but not when multiple untrusted workloads are running simultaneously. They're not for EC2/Fargate/Lambda/etc; they're for S3. Highly managed, trusted workloads.

Re:Blacksmith – Rowhammer bit flips on all DRAM devices toda... by froh on Monday November 15, 2021 @01:25PM (#29230678)
IBM Z series silicon (z architecture and it's predecessors s390,...) Is designed with multi tenancy in mind from the get go. Finding a way to escape virtualization let alone partitioning to access confidential competitor data was a no go.

And indeed to my understanding spectre, meltdown, rowhammer and similar attacks are not an issue there.

https://en.wikipedia.org/wiki/Z/Architecture

I wonder when more features from the mainframe cross pollinate Intel amd arm CPU architectures.

Re:Blacksmith – Rowhammer bit flips on all DRAM devices toda... by monocasa on Monday November 15, 2021 @01:57PM (#29231122)
Z Series is very much susceptible to meltdown, spectre, and rowhammer. IBM says that it should be fine because Spectre et al need to be running untrusted workloads to work, but they haven't updated their advisories since NetSpectre. : /

A lot of the talk of mainframe levels of security is specious at best.

Re:Blacksmith – Rowhammer bit flips on all DRAM devices toda... by froh on Monday November 15, 2021 @02:21PM (#29231422)
Wow. Your right, for spectre patches were needed on system z.

https://www.suse.com/de-de/support/kb/doc/?id=000019105

Meltdown didn't affect z nor amd.

Re:Blacksmith – Rowhammer bit flips on all DRAM devices toda... by monocasa on Monday November 15, 2021 @02:29PM (#29231549)
Series Z and POWER up to and including POWER9 are susceptible to meltdown as well.

https://www.zdnet.com/article/meltdown-spectre-ibm-preps-fir...

Re:Blacksmith – Rowhammer bit flips on all DRAM devices toda... by froh on Tuesday November 16, 2021 @12:42AM (#29237296)
Ok. debian is even more explicit than suse above regarding "no meltdown on Z":

https://wiki.debian.org/DebianSecurity/SpectreMeltdown#Syste...

Re:Blacksmith – Rowhammer bit flips on all DRAM devices toda... by classichasclass on Monday November 15, 2021 @03:56PM (#29232608)
Re:Blacksmith – Rowhammer bit flips on all DRAM devices toda... by monocasa on Monday November 15, 2021 @04:45PM (#29233202)
Which aren't POWER cores. POWER is an IBM trademark; the 7400 is a Motorola PowerPC core.
Re:Blacksmith – Rowhammer bit flips on all DRAM devices toda... by classichasclass on Monday November 15, 2021 @04:47PM (#29233218)
A fair point, though early POWER cores probably aren't for the same reasons these aren't (can't speculate through indirect branches using SPRs), and IBM was involved in the development of both.
Re:Blacksmith – Rowhammer bit flips on all DRAM devices toda... by throwaway894345 on Monday November 15, 2021 @12:12PM (#29229692)
> Eventually, it will be obvious that running shared workloads on a single piece of physical hardware has fundamentally unremediatable security implications.

If I understand correctly, Homomorphic Encryption aims to solve for these kinds of attacks (although presumably the computations are more expensive and programs must be restructured to use HE primitives?). https://en.wikipedia.org/wiki/Homomorphic_encryption

EDIT: Why the downvotes? Am I mistaken?

Re:Blacksmith – Rowhammer bit flips on all DRAM devices toda... by simiones on Monday November 15, 2021 @01:17PM (#29230589)
HE is incredibly slow, and unlikely to ever be fast enough for common workflows. As in, an HE implementation of an algorithm that runs in seconds in Python on a regular machine might run in minutes or tens of minutes.

Not to mention, to avoid side-channel attacks, an HE scheme still needs to always run the longest possible sequence of operations regardless of input (otherwise, information about the input data is leaked through timing). So an HE version of a quick-sort scheme would always run in O(n^2), otherwise it would leak details about the contents of the list. In some cases it would even have to run in the same amount of time regardless of the size of the list, to avoid leaking information about that.

Re:Blacksmith – Rowhammer bit flips on all DRAM devices toda... by Y_Y on Monday November 15, 2021 @01:33PM (#29230776)
To be fair, the performance problem you're talking about should affect latency rather than throughput. If you can batch lots of operations (not all controlled by the same user) then you can do things as fast as you can without leaking (much) information.

This is still phenomenally slow, of course.

Re:Blacksmith – Rowhammer bit flips on all DRAM devices toda... by PeterisP on Monday November 15, 2021 @10:49PM (#29236559)
HE hides the execution complexity from the system doing the computation, so no, it can't do someone else's computation and just wait in between to avoid leaking information, it's designed so that the computing operation order and quantity is simply independent on the input data, i.e. the worst case complexity, and a valid HE scheme would have mathematical proof that it's impossible for the system to find a way to do it faster than the worst case.
Re:Blacksmith – Rowhammer bit flips on all DRAM devices toda... by astrange on Tuesday November 16, 2021 @12:33AM (#29237239)
Is HE any different from taking the encrypted input data, sticking the program you want to run on the end, and returning that? If anything, it sounds less efficient than that.
Re:Blacksmith – Rowhammer bit flips on all DRAM devices toda... by tsimionescu on Tuesday November 16, 2021 @01:47AM (#29237641)
HE is designed for running a secret algorithm with secret input data and obtaining secret output data, all on an untrusted computer.

It works a little bit like this: you write your algorithm using only HE computing primitives, then you encrypt it and the input data and send those to the HE runtime, who you don't trust, and who DOESN'T have any way to decrypt your message. The HE runtime executes your encrypted program and sends back the still encrypted output. Once you receive your output, you decrypt it using the key you have kept secret.

Re:Blacksmith – Rowhammer bit flips on all DRAM devices toda... by astrange on Tuesday November 16, 2021 @04:30AM (#29238601)
That's not how it works, that's what it does. I provided an example of how it could work, but it had better be more efficient than that or it's a silly idea.
Re:Blacksmith – Rowhammer bit flips on all DRAM devices toda... by tsimionescu on Tuesday November 16, 2021 @12:07PM (#29243103)
One note, first of all: I made one mistake, the algorithm is not secret in HE (the HE runtime has to know it). Only the input data is guaranteed to be secret.

I'm not sure what you mean. This is how HE works, at a high level. The whole point is that you're doing public operations on secret data on a machine that can never know what the data was, nor what response it gave you. Furthermore, the point of HE is also that you know that your data remained secret regardless of how the HE runtime was implemented, as you just send it encrypted information.

Making it more efficient by giving it access to the decrypted data would defeat the whole point. Making it more efficient by optimizing based on the actual data would allow your data to leak through timing side-channels, again defeating the whole point.

Basically, HE refers to computing schemes where DECRYPT(ALGORITHM(ENCRYPT(X)) == ALGORITHM(X). You send [ALGORITHM, ENCRYPT(X)] to the runtime, and it gives you Y. DECRYPT(Y) is then the result of your computation.

As far as we know, this is indeed hopelessly slow, and there is no guarantee that we will ever find fast secure HE primitives.

Re:Blacksmith – Rowhammer bit flips on all DRAM devices toda... by tomc1985 on Monday November 15, 2021 @02:01PM (#29231175)
Seems like it still might be useful for small bits of data like session tokens or other encryption keys
Re:Blacksmith – Rowhammer bit flips on all DRAM devices toda... by pbronez on Monday November 15, 2021 @12:19PM (#29229795)
Yeah HE is a totally different security model. It moves all the trust out of the hardware. You ship encrypted workloads to an untrusted party, who computes on the encrypted data and returns an encrypted result. Then you decrypt the result to use it.

And yeah, this is just as inefficient as you'd think.

Re:Blacksmith – Rowhammer bit flips on all DRAM devices toda... by rocqua on Monday November 15, 2021 @05:50PM (#29233978)
I'd say its much more inefficient as you'd think.

Firstly the computations on encrypted data just take a LOT longer, especially for Fully Homomorphic encryption. With a single 64 bit addition taking microseconds.

Secondly, the FHE code cannot branch based on data. If it could, it would know something about the data, and it wouldn't be proper encryption. This means an if statement becomes "calculate both branches, and throw away the result you don't need". Similarly, a for loop becomes "give me an upper bound of how long this will run", then "loop for exactly the upper bound number of times, if the loop is 'done' early, just throw away the result of the remaining operations".

FHE is really cool, and has its uses in situations where you want to cooperate without needing to trust, but it is stupidly inefficient. (Things get really cool if two parties want to cooperate and the computing party can e.g. branch based on their local unencrypted data)

Re:Blacksmith – Rowhammer bit flips on all DRAM devices toda... by teddyh on Monday November 15, 2021 @01:12PM (#29230513)
HE is stupidly inefficient, and is entirely an academic oddity, and there is every indication that it will always remain that way. Bringing up HE in a context of real problems needing real solutions is unproductive.
Re:Blacksmith – Rowhammer bit flips on all DRAM devices toda... by ghaff on Monday November 15, 2021 @01:52PM (#29231048)
If solving a problem in a stupidly inefficient way is the only way of mitigating said problem, you may not have much choice--at least for some use cases. Saying something can't be answer because it isn't an efficient answer (today) is also unproductive.
Re:Blacksmith – Rowhammer bit flips on all DRAM devices toda... by PeterisP on Monday November 15, 2021 @10:53PM (#29236583)
There's a simple way of mitigating said problem - don't use shared hardware, and run each thing on aseparate, isolated chip. That's also inefficient, but compared to the immense overhead of HE it's quite reasonable.
Re:Blacksmith – Rowhammer bit flips on all DRAM devices toda... by baq on Monday November 15, 2021 @12:06PM (#29229629)
AMD and Intel deliver CPUs tailor made for large cloud customers already; those SKUs are not available via normal channels.
Re:Blacksmith – Rowhammer bit flips on all DRAM devices toda... by belter on Monday November 15, 2021 @12:12PM (#29229693)
Can you elaborate or provide a reference on how those CPUs are different?
Re:Blacksmith – Rowhammer bit flips on all DRAM devices toda... by Syonyk on Monday November 15, 2021 @12:16PM (#29229756)
Anyone who would know the fine grained differences is almost certainly NDA'd up quite tightly.

But it's likely things like different core counts, frequency performance curves, perhaps more or different memory/IO controller counts, perhaps instruction extensions of some particular interest (I'd wager BF16 was available in data center SKUs long before consumer SKUs), etc.

It's nothing radical, but if you're going to buy an awful lot of them and want something slightly custom, Intel will definitely do that for you.

Re:Blacksmith – Rowhammer bit flips on all DRAM devices toda... by wolf550e on Monday November 15, 2021 @12:27PM (#29229903)
It's unlikely a different die (silicon chip), so the usual number of cores and usual size of caches, and it's unlikely that AWS gets a secret x86 instruction unlockable via msr or something like that. It's probably just constants for the frequency scaling (e.g. all cores and single core turbo).

Cloudflare mentioned they use a custom Intel SKU on their blog, and they're not as big as AWS.

Re:Blacksmith – Rowhammer bit flips on all DRAM devices toda... by ghbe44 on Monday November 15, 2021 @01:03PM (#29230361)
I’m familiar with Google’s custom SKUs, and I assure you they’re unique enough to experience microcode bugs nobody else on the planet ever hits. There was a weird FDIV one back in the day that wasn’t the same FDIV bug that hit us all a long time ago. Cloudflare isn’t really at that customization table.

Your take sounds accurate for non-FAANGs (and a couple of those). For Google, not so much. There is a lot of custom acceleration and such that isn’t available to any other customer, and a nearby commenter is right, every detail about them is locked behind a very strong NDA. I’ve heard thirdhand AWS does indeed have custom instructions in the virtualization extensions stuff, but don’t know if that’s true.

Re:Blacksmith – Rowhammer bit flips on all DRAM devices toda... by monocasa on Monday November 15, 2021 @02:02PM (#29231194)
My understanding is that Google's SKUs are the same die. Non Google versions just have the Google specific silicon fused off, or require a MSR knock sequence to turn on.
Re:Blacksmith – Rowhammer bit flips on all DRAM devices toda... by ghbe44 on Monday November 15, 2021 @01:08PM (#29230439)
> I'd wager BF16 was available in data center SKUs long before consumer SKUs

Right you are, Ken.

Re:Blacksmith – Rowhammer bit flips on all DRAM devices toda... by javajosh on Monday November 15, 2021 @12:26PM (#29229890)
What kind of levers do big ISPs/cloud providers want over their CPUs, other than the basic efficiency gains we all want? Isn't it risky doing any customization since you don't get commodity pricing?
Re:Blacksmith – Rowhammer bit flips on all DRAM devices toda... by to11mtm on Monday November 15, 2021 @12:39PM (#29230057)
> Isn't it risky doing any customization since you don't get commodity pricing?

Depends on how many you order and how reasonable the customization is. Like, what if I wanted a 10,000 38 core Xeons with a 2.5GHz Base clock and 3.5GHz Turbo clock? Such a part doesn't exist, yet sits smack dab between two existing Models, the Xeon Platnium 8368 and 8368Q. Assuming yields are already good enough, that might be the sort of thing a CPU maker will do. (Might need more than 10k units though, IDK.)

Re:Blacksmith – Rowhammer bit flips on all DRAM devices toda... by baq on Monday November 15, 2021 @02:43PM (#29231731)
I'd wager Pat doesn't get out of bed for 10k units and neither does Lisa.
Re:Blacksmith – Rowhammer bit flips on all DRAM devices toda... by swiftcoder on Monday November 15, 2021 @01:32PM (#29230770)
At AWS scale you can feasibly just buy up the entire run of chips. What's a few million CPUs more or less between friends?
Re:Blacksmith – Rowhammer bit flips on all DRAM devices toda... by mywittyname on Monday November 15, 2021 @02:01PM (#29231181)
Additionally, Amazon is absolutely the type of company to create their own x86 processor if Intel/AMD are unwilling to make some customization.

Intel does not want to be competing with an Amazon Basics processor.

Re:Blacksmith – Rowhammer bit flips on all DRAM devices toda... by swiftcoder on Tuesday November 16, 2021 @03:09AM (#29238123)
They already have pretty significant investment in their own ARM-based chips for servers. Given Apple's recent success in x86 emulation on ARM, I doubt it's worth the trouble of directly competing in the x86 arena.
Re:Blacksmith – Rowhammer bit flips on all DRAM devices toda... by Grazester on Monday November 15, 2021 @03:19PM (#29232169)
You basically need a license for X86 from Intel for this. Do you think x86 is open source!
Re:Blacksmith – Rowhammer bit flips on all DRAM devices toda... by folmar on Monday November 15, 2021 @07:22PM (#29234890)
The usual line of operation is to include VIA in the operation.
Re:Blacksmith – Rowhammer bit flips on all DRAM devices toda... by ThrowawayR2 on Monday November 15, 2021 @01:50PM (#29231023)
A recent HN posting points to a news article about AMDs customized processors for Facebook although it provides little detail: https://news.ycombinator.com/item?id=29204257

"The custom Epyc 7003 part that Facebook has commissioned from AMD has 36 cores out of its potential 64 cores activated, and with a bunch of optimizations for Facebook applications at the web, database, and inference tiers of its application stack."

Re:Blacksmith – Rowhammer bit flips on all DRAM devices toda... by baq on Monday November 15, 2021 @12:27PM (#29229902)
not really, just heard about those. but it wouldn't really be that much different than a customized SKU for a playstation or an xbox.
Re:Blacksmith – Rowhammer bit flips on all DRAM devices toda... by belltaco on Monday November 15, 2021 @12:33PM (#29229986)
But what model number would they show up as in the OS facing the users? From what I see most CPU names are the ones available in the market.
Re:Blacksmith – Rowhammer bit flips on all DRAM devices toda... by dathinab on Monday November 15, 2021 @01:57PM (#29231114)
Their next gen "normal" server CPUs also have "cloud optimized CPUs".

While this seems to be mainly about Power/Heat/Perf. optimizing for typical "cloud" workloads it might also have design decisions related to this problem. We will see, but they look interesting anyway.

Re:Blacksmith – Rowhammer bit flips on all DRAM devices toda... by Arrath on Monday November 15, 2021 @02:06PM (#29231245)
> This will be a massive opportunity for ARM & SoC manufacturers in the coming years, as its far better positioned to offer, for example, a single rack appliance with 64 individual 2-core mini-computers at a price-point competitive with a 128 core x86 rack, as one computer.

I'm curious about the eventual end-game of security in this space. Take the 64 individual processors in your example, give each one their own independent memory bus to their own ram chip, isolate them from each other as much as possible. What else can be done, if a malicious process on processor Z has to go all the way to disk to try to get back at data working on processor J, is that as maximally secure as it can be without being in a completely separate chassis with only network access to the other device?

Re:Blacksmith – Rowhammer bit flips on all DRAM devices toda... by 015a on Tuesday November 16, 2021 @04:37PM (#29246638)
I think what you describe is a likely end-state, and what large cloud providers will move to. The problem right now is that a setup like this isn't cheap; but its only expensive because economics of scale aren't behind it; that will change if demand for more isolated VMs increases.

Essentially, a board with an array of "mini computers", 1-4 cores bussed to their own physically and logically isolated memory pool. Storage is oftentimes already networked in public cloud, and seemingly less susceptible to these kinds of attacks, so probably little change is necessary there.

Its also likely we'll see vendors produce more "card computers", like the raspberry pi, but oriented at a server environment. At massive scale like what AWS runs at, these are less compelling, but they do have advantages; the biggest being, maintenance is a cinch, and the blast radius on one failing is isolated to just the workload on that card. I imagine these will be more interesting for current VPS providers like DigitalOcean, who also want to offer dedicated hosts with smaller core/memory counts. Even RPis today are super compelling; a $50 multicore computer that's easy to manufacture and replace, with density high enough to fit 100+ inside a 4U? Just need a bit more core perf and ARM adoption (though its easy to see Intel also hoping on this train with their long-term investment in pro/consumer NUCs).

Writing is on the wall. The tipping point will be an industry thought leader saying, in effect, "you should be using dedicated hosts, because at this point physics is our enemy and we're not winning, by the way here's a new dedicated host instance type that's perfectly suited for horizontally scaled workloads, its 20% more expensive than virtual hosts of the same size, byeeee".

Re:Blacksmith – Rowhammer bit flips on all DRAM devices toda... by FpUser on Monday November 15, 2021 @04:31PM (#29233051)
>"as its far better positioned to offer, for example, a single rack appliance with 64 individual 2-core mini-computers at a price-point competitive with a 128 core x86 rack,"

I have server application capable of utilizing many threads and thousands requests/s. You think I will deploy it on tiny 2 core CPU? No thank you, it currently runs on powerful dedicated server from Hetzner where I control everything.

>"AMD and Intel need to adjust, or face extinction ....

If they don't evolve, AWS will for them..."

Sounds like pontification / FUD.

Re:Blacksmith – Rowhammer bit flips on all DRAM devices toda... by tadbit on Monday November 15, 2021 @06:01PM (#29234094)
> Sounds like pontification / FUD.

Sounds like you didn't fully grasp what the grandparent was writing about.

>> Eventually, it will be obvious that running shared workloads on a single piece of physical hardware has fundamentally unremediatable security implications

> I have server application capable of utilizing many threads and thousands requests/s. You think I will deploy it on tiny 2 core CPU? No thank you, it currently runs on powerful dedicated server from Hetzner where I control everything.

Your use case isn't covered here, you're neither a cloud nor VPS customer.

There will always be individuals and companies looking for dedicated hosting solutions, or just hosting it themselves.

However, for the rest of the world that wants to run their stuff in the cloud that's where Amazon's and other companies investments in ARM come into play. That's where we'll see disruption, the extinction the grandparent was talking about.

Re:Blacksmith – Rowhammer bit flips on all DRAM devices toda... by passivate on Monday November 15, 2021 @12:48PM (#29230153)
But you still need data exchange between parallel/concurrent workloads. The security focus will shift to the data nodes which exchange data between the CPUs. And then the focus will probably shift towards latency and performance and moving these data modules closer to each other.. kinda like RAM :P
Re:Blacksmith – Rowhammer bit flips on all DRAM devices toda... by api on Monday November 15, 2021 @12:38PM (#29230044)
I am not at all convinced that this is not a solvable problem. It may require significant changes in how schedulers work, such as resurrecting the idea of processor affinity.

Unfortunately it will likely have negative performance implications for multi-tenant work loads.

Re:Blacksmith – Rowhammer bit flips on all DRAM devices toda... by short12 on Monday November 15, 2021 @01:40PM (#29230886)
AMD seems to be doing just fine. With a roadmap for the future. They will be just fine
Re:Blacksmith – Rowhammer bit flips on all DRAM devices toda... by temac on Monday November 15, 2021 @12:55PM (#29230245)
The M1 family certainly doesn't go into the direction of less cores, and even if you had a single one you could probably rowhammer during your timeslice and then patiently wait for the target process to execute. Since even individual computers execute random garbage code straight from the Internet (e.g. JS), there is still a needed for internal security.

That being said, and even if I consider that a quite different subject, I agree that the current efficiency story of Intel is not very good, but I hope they will improve in a not so far future. The dev lifecycle of CPUs is quite long and it seems to be an obvious target. I suspect they will be forced to improve their efficiency, because that's actually were the performance potential is today (the current dissipation level of their last desktop CPUs is not reasonable, and prevents scalability). And trying to lower the core count also can yield to high consumption, e.g. if you want your performance back by increasing the frequency. Wide and "slow" is needed, and it is harder to increase the internal number of execution units per core and have them actually used, than to increase the core count -- plus ironically one way to do that is through HT, which goes against your wish to share less hardware. (Now if you compare their P-core and E-core in Alder Lake the story is more complicated, but their marketing figures seem very strange, so I won't conclude anything for now. The current instances of P-core we have is for that weird desktop market with unreasonable high TDP anyway.)

Now if you really want miniaturized individual computers that would not be shared at all, I'm not sure the market will actually go into that direction because big systems will continue to be needed (and clusters are a niche mostly for HPC), and I'm not sure a "slightly more secure on smaller systems" market would be interesting enough. Esp. in an era of chip shortage. And also because it would still be bigger than a shared equivalent system make with the same techs... But if that's really a niche that has to be addressed, I suspect it would mostly be a matter for Intel to create new small and slower SKUs ("slower" compared to their desktops insanities) -- they even kind of have that already, but yes the physical miniaturization aspect is not handled yet -- that does not really depends that much on the cores, though. And even in those computers, I'm not sure there would be much demand for very low core counts. The threading of pretty much all workloads tends to increase, nowadays.

One last point, after the e.g. Pentium 4 fiasco nobody really left the IPC race. AMD had some difficulties when trying "weird" ideas (part of which were because of their marketing communication), and then again a completely new design from scratch to market takes time. In general there was a pause of performance growth around 2016 for a few years, and that was mostly Intel having process problems and the rest of the industry catching up (and then overtaking them).

Re:Blacksmith – Rowhammer bit flips on all DRAM devices toda... by oopsyDoodl on Monday November 15, 2021 @01:12PM (#29230508)
Intel gets it and is adjusting to be a foundry that builds chips to application spec.

For me cloud computing is just where the best pay is. I do not at all see it as the future of computing.

One reason is ML will help us realize we write code we don’t need; so much of it is syntax sugar for business specific needs; infra, security… it’ll be realized cloud software is solving unemployment not technical problems of value. That many issues with software back in the day were lower quality networks, and consumer hardware. I mean any phone can abstract metadata from any one users amount of behavior, we do it in a DC because that’s where the jobs are. Chip manufacturing will include ML normalized logic for specific application.

LAN IOT will improve and we’ll realize the Metaverse can be implemented with a local client and AI generated art, on a mobile GPUs power in a few years. Middle men like Zuckerberg face the most uncertain future. He failed to diversify as well as Bezos, Newell, and others.

IMO, Valve is a serious threat with Steamdeck; an open IOT brain in a kid friendly form factor could be the new cigarette. Even Apple may have to take them seriously. My kids iPads need replacing soon; a flat glass slab with no interactive controls, requiring another $800+ machine to develop on, bloated development tools, fees, and a bunch of cloud logins, are not going to motivate kids to feel creative.