Re: [patch V2 27/28] x86/speculation: Add seccomp Spectre v2 user space protection mode
From: Linus Torvalds
Date: Tue Dec 04 2018 - 12:21:15 EST
On Mon, Dec 3, 2018 at 5:38 PM Tim Chen <tim.c.chen@xxxxxxxxxxxxxxx> wrote:
>
> To make the usage of STIBP and its working principles clear,
> here are some additional explanations of STIBP from our Intel
> HW architects. This should also help answer some of the questions
> from Thomas and others on STIBP's usages with IBPB and IBRS.
>
> Thanks.
>
> Tim
>
> ---
>
> STIBP
> ^^^^^
> Implementations of STIBP on existing Core-family processors (where STIBP
> functionality was added through a microcode update) work by disabling
> branch predictors that both:
>
> 1. Contain indirect branch predictions for both hardware threads, and
> 2. Do not contain a dedicated thread ID bit
Honestly, it still feels entirely misguided to me.
The above is not STIBP. It's just "disable IB". There's nothing "ST" about it.
So on processors where there is no thread ID bit (or per-thread
predictors), Intel simply SHOULD NOT EXPOSE this at all.
As it is, I refuse to call this shit "STIBP", because on current CPU's
that's simply a lie.
Being "technically correct" is not an excuse. It's just lying. I would
really hope that we restrict the lying to politicians, and not do it
in technical documentation.
Linus