[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.DEB.2.21.1811191423140.1537@nanos.tec.linutronix.de>
Date: Mon, 19 Nov 2018 14:32:48 +0100 (CET)
From: Thomas Gleixner <tglx@...utronix.de>
To: Tim Chen <tim.c.chen@...ux.intel.com>
cc: Jiri Kosina <jikos@...nel.org>,
Tom Lendacky <thomas.lendacky@....com>,
Ingo Molnar <mingo@...hat.com>,
Peter Zijlstra <peterz@...radead.org>,
Josh Poimboeuf <jpoimboe@...hat.com>,
Andrea Arcangeli <aarcange@...hat.com>,
David Woodhouse <dwmw@...zon.co.uk>,
Andi Kleen <ak@...ux.intel.com>,
Dave Hansen <dave.hansen@...el.com>,
Casey Schaufler <casey.schaufler@...el.com>,
Asit Mallick <asit.k.mallick@...el.com>,
Arjan van de Ven <arjan@...ux.intel.com>,
Jon Masters <jcm@...hat.com>,
Waiman Long <longman9394@...il.com>,
linux-kernel@...r.kernel.org, x86@...nel.org
Subject: Re: [Patch v5 11/16] x86/speculation: Add Spectre v2 app to app
protection modes
Tim,
On Fri, 16 Nov 2018, Tim Chen wrote:
> Add new protection modes for Spectre v2 mitigations against
> Spectre v2 attacks on user processes. There are three modes:
>
> strict mode:
> In this mode, IBPB and STIBP are deployed full
> time to protect all processes.
>
> lite mode:
> In this mode, IBPB and STIBP are only deployed on
> processes marked with TIF_STIBP flag.
>
> none mode:
> In this mode, no mitigations are deployed.
>
> The protection mode can be specified by the spectre_v2_app2app
> boot parameter with the following semantics:
>
> spectre_v2_app2app=
> off - Turn off mitigation
> lite - Protect processes which are marked non-dumpable
> strict - Protect all processes
> auto - Kernel selects the mode
Is there any reason why we need yet another naming convention?
pti= on, off, auto
spectre_v2= on, off, auto
spec_store_bypass_disable = on, off, auto, prctl, seccomp
> Not specifying this option is equivalent to
> spectre_v2_app2app=auto.
For better understanding it's nowhere documented what auto does.
> + spectre_v2_app2app=
> + [X86] Control mitigation of Spectre variant 2
> + application to application (indirect branch speculation)
> + vulnerability.
> +
> + off - Unconditionally disable mitigations
> + lite - Protect tasks which have requested restricted
> + indirect branch speculation via the
> + PR_SET_SPECULATION_CTRL prctl().
> + strict - Protect all processes
> + auto - Kernel selects the mode
> +
> + Not specifying this option is equivalent to
> + spectre_v2_app2app=auto.
> +
> + Setting spectre_v2=off will also turn off this mitigation.
> +
> + Setting spectre_v2=on implies unconditionally enabling
> + this mitigation.
Can we please have a full documentation for all the spectre_v2 stuff
similar to l1tf?
Thanks,
tglx
Powered by blists - more mailing lists