Re: [PATCH v6 11/10] x86/retpoline: Avoid return buffer underflows on context switch
From: Linus Torvalds
Date: Mon Jan 08 2018 - 19:35:37 EST
On Mon, Jan 8, 2018 at 3:58 PM, Woodhouse, David <dwmw@xxxxxxxxxxxx> wrote:
>>
>> Is there really nothing more clever we can do?
>
> You get this part in the IBRS/microcode solution too. The IBRS MSR
> doesn't catch everything; you still need to stuff the RSB in very
> similar places (and/or use the IBPB MSR in some).
So I was really hoping that in places like context switching etc, we'd
be able to instead effectively kill off any exploits by clearing
registers.
That should make it pretty damn hard to then find a matching "gadget"
that actually does anything interesting/powerful.
Together with Spectre already being pretty hard to take advantage of,
and the eBPF people making those user-proivided gadgets inaccessible,
it really should be a pretty powerful fix.
Hmm?
Linus