Re: [PATCH] x86/speculation: Use Indirect Branch Prediction Barrier in context switch
From: Tim Chen
Date: Tue Jan 30 2018 - 17:27:00 EST
On 01/30/2018 01:57 PM, Borislav Petkov wrote:
> On Tue, Jan 30, 2018 at 01:03:20PM -0800, Tim Chen wrote:
>> So it doesn't seem to be very practical attack if the victim has set
>> itself to be non-dumpable.
>
> Probably, but considering how cheap our fix is, we might just as well
> plug that hole too.
>
If the process has multiple threads running on different cpus,
you will need to set IBPB on all cpus they are running in
order to achieve your purpose. So it is not necessarily cheap.
But I don't think it is really necessary.
Tim