Re:Branch Privilege Injection: Exploiting branch predictor r...
by bloppe on Tuesday May 13, 2025 @01:27PM
(#43975431)
It's not tiny. Speculative execution usually makes code run 10-50% faster, depending on how many branches there are
[ Parent
| on HN ]
Re:Branch Privilege Injection: Exploiting branch predictor r...
by bee_rider on Tuesday May 13, 2025 @01:40PM
(#43975576)
Yeah… folks who think this is just some easy to avoid thing should go look around and find the processor without branch prediction that they want to use.
On the bright side, they will get to enjoy a much better music scene, because they’ll be visiting the 90’s.
Re:Branch Privilege Injection: Exploiting branch predictor r...
by wbl on Tuesday May 13, 2025 @10:59PM
(#43980279)
IBM Stretch had branch prediction. Pentium in the early 1990s had it. It's a huge win with any pipelining.
Re:Branch Privilege Injection: Exploiting branch predictor r...
by yencabulator on Wednesday May 14, 2025 @10:29AM
(#43984984)
> Does Branch Privilege Injection affect non-Intel CPUs?
> No. Our analysis has not found any issues on the evaluated AMD and ARM systems.
Re:Branch Privilege Injection: Exploiting branch predictor r...
by titzer on Tuesday May 13, 2025 @04:52PM
(#43977596)
That's a vast underestimate. Putting in lfence before every branch is on the order of 10X slowdown.
Re:Branch Privilege Injection: Exploiting branch predictor r...
by grumbelbart2 on Wednesday May 14, 2025 @03:56AM
(#43982052)
There is of course a slight chicken-egg-thing here: If there was no (dynamic) branch prediction, we (as in compilers) would emit different code that is faster for non-predicting CPUs (and presumably slower for predicting CPUs). That would mitigate a bit of that 10x.
Re:Branch Privilege Injection: Exploiting branch predictor r...
by anyfoo on Wednesday May 14, 2025 @06:12PM
(#43989729)
A bit. I think we've shown time and time again that letting the compiler do what the CPU is doing doesn't work out, most recently with Itanium.
Re:Branch Privilege Injection: Exploiting branch predictor r...
by thesz on Wednesday May 14, 2025 @12:29PM
(#43986446)
The issue is with indirect branches. Most branches are direct ones.
Re:Branch Privilege Injection: Exploiting branch predictor r...
by autoexec on Tuesday May 13, 2025 @07:08PM
(#43978830)
How much improvement would there still be if we weren't so lazy when it comes to writing software. If we were working to get as much performance out of the machines as possible and avoiding useless bloat instead of just counting on the hardware to be "good enough" to handle the slowness with some grace.
Re:Branch Privilege Injection: Exploiting branch predictor r...
by cenamus on Wednesday May 14, 2025 @01:20PM
(#43987020)
Of course I know that.
But if the fix for this bug (how many security holes have ther been now in Intel CPUs? 10?) brings only a couple % performance loss, like most of the them so far, how can you even justify that at all? Isn't there a fundamental issue in there?