From: Pawan Gupta <pawan.kumar.gupta@linux.intel.com>
To: Breno Leitao <leitao@debian.org>
Cc: bp@alien8.de, x86@kernel.org,
Thomas Gleixner <tglx@linutronix.de>,
Peter Zijlstra <peterz@infradead.org>,
Josh Poimboeuf <jpoimboe@kernel.org>,
Ingo Molnar <mingo@redhat.com>,
Dave Hansen <dave.hansen@linux.intel.com>,
"H. Peter Anvin" <hpa@zytor.com>,
kernel-team@meta.com, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 2/2] x86/bugs: spectre user default must depend on MITIGATION_SPECTRE_V2
Date: Wed, 30 Oct 2024 11:40:53 -0700 [thread overview]
Message-ID: <20241030183920.s4lk33ckvqtkguzm@desk> (raw)
In-Reply-To: <20241029-large-perfect-bulldog-ce53b3@leitao>
On Tue, Oct 29, 2024 at 02:19:12AM -0700, Breno Leitao wrote:
> > If this is the intention it should be
> > clearly documented that enabling kernel mitigation does not enable user
> > mitigation. And an explicit spectre_v2_user= is required to enable user
> > mitigation.
>
> That is fair. I didn't find a place where to document about diferent
> behavior when CONFIG_MITIGATION_X is disabled. What would you suggest?
You could describe the behavior in the commit message and update kernel
parameter documentation.
With that:
Reviewed-by: Pawan Gupta <pawan.kumar.gupta@linux.intel.com>
---
diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin-guide/kernel-parameters.txt
index 1518343bbe22..f8bc02cd10ec 100644
--- a/Documentation/admin-guide/kernel-parameters.txt
+++ b/Documentation/admin-guide/kernel-parameters.txt
@@ -6241,6 +6241,8 @@
Selecting 'on' will also enable the mitigation
against user space to user space task attacks.
+ Selecting specific mitigation does not force enable
+ user mitigations.
Selecting 'off' will disable both the kernel and
the user space protections.
next prev parent reply other threads:[~2024-10-30 18:41 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-15 10:51 [PATCH 0/2] x86/bugs: default spectre_v2_user_cmd depends on Kconfig Breno Leitao
2024-10-15 10:51 ` [PATCH 1/2] x86/bugs: Use cpu_smt_possible helper Breno Leitao
2024-10-28 14:06 ` Pawan Gupta
2024-10-15 10:51 ` [PATCH 2/2] x86/bugs: spectre user default must depend on MITIGATION_SPECTRE_V2 Breno Leitao
2024-10-28 14:34 ` Pawan Gupta
2024-10-29 9:19 ` Breno Leitao
2024-10-30 18:40 ` Pawan Gupta [this message]
2024-10-31 9:42 ` Breno Leitao
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20241030183920.s4lk33ckvqtkguzm@desk \
--to=pawan.kumar.gupta@linux.intel.com \
--cc=bp@alien8.de \
--cc=dave.hansen@linux.intel.com \
--cc=hpa@zytor.com \
--cc=jpoimboe@kernel.org \
--cc=kernel-team@meta.com \
--cc=leitao@debian.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=peterz@infradead.org \
--cc=tglx@linutronix.de \
--cc=x86@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®