Re: [tip:x86/pti] x86/retpoline: Fill RSB on context switch for affected CPUs
From: David Woodhouse
Date: Mon Jan 15 2018 - 05:13:42 EST
On Sun, 2018-01-14 at 16:05 -0800, Andi Kleen wrote:
> > +ÂÂÂÂÂif ((!boot_cpu_has(X86_FEATURE_PTI) &&
> > +ÂÂÂÂÂÂÂÂÂ !boot_cpu_has(X86_FEATURE_SMEP)) || is_skylake_era()) {
> > +ÂÂÂÂÂÂÂÂÂÂÂÂÂsetup_force_cpu_cap(X86_FEATURE_RSB_CTXSW);
> > +ÂÂÂÂÂÂÂÂÂÂÂÂÂpr_info("Filling RSB on context switch\n");
> > +ÂÂÂÂÂ}
>
> Missing an option to turn this off.
Deliberately so. You can already boot with 'spectre_v2=off' to turn off
the mitigations. We are not intending to permit all the bullshit micro-
management of IBRS=3/IBPB=2/RSB=Ï nonsense.
If you choose retpoline, you get the RSB stuffing which is appropriate
along with that. With IBRS, you get the RSB stuffing which is
appropriate with that. You don't get command line or sysfs tunables to
mess it. You *do* have the source code, if you really want to make
changes. Don't.Attachment:
smime.p7s
Description: S/MIME cryptographic signature