lkml.org 
[lkml]   [2018]   [Jul]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH] x86/bugs: protect against userspace-userspace spectreRSB
On Tue, Jul 24, 2018 at 12:53 PM Jiri Kosina <jikos@kernel.org> wrote:
>
> Mitigate userspace-userspace attacks by always unconditionally filling RSB on
> context switch when generic spectrev2 mitigation has been enabled.

Shouldn't this also do something like

x86_spec_ctrl_base |= x86_spec_ctrl_mask & SPEC_CTRL_STIBP;

if we have HT enabled?

Linus

\
 
 \ /
  Last update: 2018-07-25 19:29    [W:0.110 / U:0.112 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site