Re:GhostRace: Exploiting and Mitigating Speculative Race Con...
by dataflow on Friday March 15, 2024 @07:13PM
(#39721659)
What does "speculative race condition" mean?
[ Parent
| on HN ]
Re:GhostRace: Exploiting and Mitigating Speculative Race Con...
by sweatypalmer on Friday March 15, 2024 @07:35PM
(#39721802)
I encourage you to research the rabbit hole that is speculative executive and 'spectre' attacks.
Re:GhostRace: Exploiting and Mitigating Speculative Race Con...
by Jerrrry on Friday March 15, 2024 @09:28PM
(#39722509)
"Speculative Execution" is gonna be my boat name.
I'll tell people it's a punny triple entendre, leading people to believe I am a wall street hacking guru hit-man.
Re:GhostRace: Exploiting and Mitigating Speculative Race Con...
by dataflow on Friday March 15, 2024 @09:41PM
(#39722582)
I know what speculative execution is and have some understanding of spectre already. What I don't get is what it means to exploit a speculative race condition.
Re:GhostRace: Exploiting and Mitigating Speculative Race Con...
by saagarjha on Saturday March 16, 2024 @04:05AM
(#39724137)
So the thing with speculative attacks is that you can use an invariant that is broken speculatively to leak things. In this case they use a speculative race condition to gain speculative code execution, much like you can use a normal race condition to gain real code execution. Arbitrary speculative code execution can be used to leak data which can be picked up via side channels.
Re:GhostRace: Exploiting and Mitigating Speculative Race Con...
by sweetjuly on Friday March 15, 2024 @09:38PM
(#39722564)
This is described pretty well in the paper, but briefly: the "race condition" which they exploit happens because the CPU speculatively (and incorrectly) thinks it acquired a lock. Multiple threads being in a critical section can be exploitable and lead to arbitrary read/write and malicious code execution (one case demonstrated in the paper is some random NFC function). The researchers abuse the fact that the critical section can be entered speculatively to gain speculative malicious code execution, which they then use to construct a gadget which leaks arbitrary kernel memory into side channels.