News for hackers. Stuff that matters.
Re:Downfall Attacks by malfist on Tuesday August 08, 2023 @02:26PM (#37053427)
This is an unreasonable position. Vulnerabilities can be fixed
Re:Downfall Attacks by layer8 on Tuesday August 08, 2023 @02:30PM (#37053473)
You are assuming that white hats discover them early enough before black hats.
Re:Downfall Attacks by 2OEH8eoCRo0 on Tuesday August 08, 2023 @02:32PM (#37053490)
The mitigation here can take a up to a whopping 50% performance penalty. At what point can customers return these CPUs for either being defective or for false advertising? If they can't safely meet the target performance they shouldn't be doing these tricks at all.
Re:Downfall Attacks by dcow on Tuesday August 08, 2023 @03:17PM (#37054124)
Did processor companies ever advertise that processors guaranteed certain security properties of the software they execute?

Aren't system designers at fault for coming up with the idea of a context switch and assuming that we can trust a processor not to leak details across artificial software constructed boundaries?

Re:Downfall Attacks by rvnx on Tuesday August 08, 2023 @04:51PM (#37055284)
But wait, how is it even considered a processor bug ?

You write data inside the registers, yes, other processes can read these registers.

It always been like this, and is absolutely normal.

It's the responsibility of the operating system to clear the registers if it is switching context.

Re:Downfall Attacks by IlliOnato on Tuesday August 08, 2023 @05:30PM (#37055731)
Well, it's not exactly what branch prediction does. If I understand it correctly, it does some additional writing to registers (?) and to the cache on its own, and it can leak your data even if you clean up everything you wrote explicitly. Now, did the vendors promise that this would not happen? I doubt it.
Re:Downfall Attacks by duped on Tuesday August 08, 2023 @06:01PM (#37056037)
> But wait, how is it even considered a processor bug ?

These side channel attacks allow an attacker to read registers from other processes before any context switching has occurred, or independently of any context switching (even if the OS has been written to correctly clear state).

Re:Downfall Attacks by 3np on Tuesday August 08, 2023 @05:11PM (#37055519)
According to OP, SGX is also vulnerable. There has been quite some marketing around the supposed security properties of SGX, yes.
Re:Downfall Attacks by IlliOnato on Tuesday August 08, 2023 @05:27PM (#37055698)
Yeah, I am sure the customers can sue, but would they win? I find it unlikely.
Re:Downfall Attacks by CanaryLayout on Tuesday August 08, 2023 @10:16PM (#37057978)
AMD has the same problem (Inception). Predictive instruction pipelining makes timing and context separation harder. Even if you are on s390x or M1 it's not like you are safe either. This is a whole field of study.

In my mind the better mitigation is to put control over trusted code back to the user and to do that you have to add less-performant cores onto the die and force the operator to elevate (or not) to SMT.

Right now it's an all-or-nothing proposition for the whole board. I would like to think that you can take your untrusted code and stick it on the less-performy cores with the safer instruction pipelining scheme so an actual physical barrier exists.

If that was in the chip architecture, then it's up to OS vendors to surface it in a way that developers understand, and then down to the operator to decide upon configuration.

You are never going to get a perfect-solve from the chipmakers on this where the consumer has to do nothing.

Re:Downfall Attacks by CanaryLayout on Tuesday August 08, 2023 @09:38PM (#37057760)
> Aren't system designers at fault for coming up with the idea of a context switch

Context switching was in the Apollo 11 guidance computer https://www.youtube.com/watch?v=xx7Lfh5SKUQ

The problem is that cycle-speed boosts left the industry cic. 2012-or-so. All the perf boost we get these days is by optimizing the instruction sequencing and multiprocessing. This is why languages like Go popped up (making the advanced programming topic of multiprogramming an entry-level accomplishment) and you now see the 'async' decorator plastered everywhere in C#, and so-on.

Keeping the security context intact and separated is a gargantuan task.

To me it makes more sense to add "lousy cores" to the die and force the operator to declare the launching threads are safe for SMT, else the job gets scheduled to the less-performing core where the pipelining is safer. It delegates responsibility to the chip-gobbler, forces them to understand the tradeoff for performance, until some elegant solution is found for side channel attacks like this.

Re:Downfall Attacks by autoexec on Wednesday August 09, 2023 @02:51AM (#37059460)
> Did processor companies ever advertise that processors guaranteed certain security properties

It's not the guaranteed security as much as the advertised speed that's the issue. If they put out a chip which could only be used at half the advertised speed or else it would catch on fire, nobody would argue that they should be let off the hook because they didn't guarantee that the chips were fireproof in their ads.

If the chips can't perform at advertised speeds safely during typical use they're not delivering what was advertised.

Re:Downfall Attacks by dcow on Wednesday August 09, 2023 @02:53PM (#37066957)
They do perform at the advertised speeds, just not in a multi-user soft context switched situations.
Re:Downfall Attacks by hinkley on Tuesday August 08, 2023 @02:43PM (#37053634)
Vulnerabilities are like unreliable cars. It doesn't matter so much if they can be fixed, it's the very, very high opportunity cost of needing to be fixed, when you were busy doing something else of high value.

Responsible people tend to pick the small consequence now over the unknowable distribution of consequences later.

Re:Downfall Attacks by pseudalopex on Tuesday August 08, 2023 @04:18PM (#37054917)
> Vulnerabilities can be fixed

Not always the damage.

Re:Downfall Attacks by jjav on Tuesday August 08, 2023 @05:00PM (#37055379)
> This is an unreasonable position. Vulnerabilities can be fixed

That's a highly optimistic position, to the point of being almost wishful thinking.

The vulnerability being talked about today has been around since 2014 according to the report. Possibly being exploited for unknown number of years since. Sure, maybe we can workaround this one, now.

Other similar ones to be published years into the future are also there today being likely exploited as we speak.

Running untrusted code on the same silicon as sensitive code (data), is unlikely to ever actually be truly safe.

Re:Downfall Attacks by alerighi on Tuesday August 08, 2023 @05:59PM (#37056014)
The real problem here is the x86 architecture. We should stop using it. It's too complex, it's full of stuff made for backward compatibility purposes, it has too many instructions that may have unpredictable results, and for that exact reason it's extremely difficult to get things right. Somewhere in the thousands of instructions that it has you will surely find a bug.

We should move forward. Apple did a great job with the M{1,2} processors. Not only they are fantastic in terms of performance and energy usage, but also (to this moment) they don't seem to suffer from these issues. The reason is that the CPU is simpler, and a simpler thing is easy to design right in the first place.

Re:Downfall Attacks by pseudalopex on Tuesday August 08, 2023 @07:20PM (#37056783)
Meltdown and Spectre affected ARM and POWER CPUs. Apple's included. PACMAN affected M1. The real problem is speculative execution seemingly.
Re:Downfall Attacks by CanaryLayout on Tuesday August 08, 2023 @08:52PM (#37057444)
Performance sorta hinges on it. It could be that the cheaper way the chipmakers deal with it is to phase out the 4core set and push the cores on a die higher, and to do that--incorporate an older core design into dedicated cores for untrusted code.

This would also require changes at the OS-makers to tag thread forks for trusted and untrusted behavior.

Essentially: instead of shutting down SMT for the entire machine, make the customer "prove" the code is safe for elevation or else it gets scheduled as non-SMT.

Re:Downfall Attacks by pseudalopex on Wednesday August 09, 2023 @04:09PM (#37067725)
> Performance sorta hinges on it.

Yes. I did not mean to imply the real problem had a simple solution.

Re:Downfall Attacks by petergeoghegan on Tuesday August 08, 2023 @10:55PM (#37058194)
> The real problem here is the x86 architecture

Even if we could say for sure that x86 has been disproportionately affected by speculative execution bugs (which already seems dubious), that could easily be due to a kind of selection bias. Presumably security researchers as a group more or less focus on the most popular and relevant ISAs/microarchitectures.