mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2] x86/retbleed: add "stuff" mode admin documentation
@ 2023-01-09 16:08 Randy Dunlap
  2023-01-09 17:19 ` Dave Hansen
  0 siblings, 1 reply; 3+ messages in thread
From: Randy Dunlap @ 2023-01-09 16:08 UTC (permalink / raw)
  To: linux-kernel
  Cc: Randy Dunlap, Thomas Gleixner, Borislav Petkov, Ingo Molnar,
	Dave Hansen, x86, Jonathan Corbet, linux-doc, Ingo Molnar

Add admin documentation for "retbleed=stuff", based on commit
description and source code.

Fixes: d82a0345cf21 ("x86/retbleed: Add call depth tracking mitigation")
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Dave Hansen <dave.hansen@linux.intel.com>
Cc: x86@kernel.org
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: linux-doc@vger.kernel.org
Acked-by: Ingo Molnar <mingo@kernel.org>
---
v2: fix typo "if effect" -> "in effect" (thanks Ingo)

 Documentation/admin-guide/kernel-parameters.txt |    8 ++++++++
 1 file changed, 8 insertions(+)

diff -- a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin-guide/kernel-parameters.txt
--- a/Documentation/admin-guide/kernel-parameters.txt
+++ b/Documentation/admin-guide/kernel-parameters.txt
@@ -5364,6 +5364,14 @@
 				       when STIBP is not available. This is
 				       the alternative for systems which do not
 				       have STIBP.
+			stuff        - Enables "stuffing" mode mitigation,
+				       which uses return thunking and call depth
+				       tracking.  Only in effect if
+				       CONFIG_CALL_DEPTH_TRACKING is set and
+				       Spectre V2 mitigation mode is
+				       "retpoline".
+				       IBRS is fully secure mitigation but is
+				       more costly (slower) than stuffing.
 			unret        - Force enable untrained return thunks,
 				       only effective on AMD f15h-f17h based
 				       systems.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH v2] x86/retbleed: add "stuff" mode admin documentation
  2023-01-09 16:08 [PATCH v2] x86/retbleed: add "stuff" mode admin documentation Randy Dunlap
@ 2023-01-09 17:19 ` Dave Hansen
  2023-01-09 21:08   ` Randy Dunlap
  0 siblings, 1 reply; 3+ messages in thread
From: Dave Hansen @ 2023-01-09 17:19 UTC (permalink / raw)
  To: Randy Dunlap, linux-kernel
  Cc: Thomas Gleixner, Borislav Petkov, Ingo Molnar, Dave Hansen, x86,
	Jonathan Corbet, linux-doc, Ingo Molnar

On 1/9/23 08:08, Randy Dunlap wrote:
> +			stuff        - Enables "stuffing" mode mitigation,
> +				       which uses return thunking and call depth
> +				       tracking.  Only in effect if
> +				       CONFIG_CALL_DEPTH_TRACKING is set and
> +				       Spectre V2 mitigation mode is
> +				       "retpoline".
> +				       IBRS is fully secure mitigation but is
> +				       more costly (slower) than stuffing.

The "fully secure" thing makes me cringe a bit.

I'd suggest saying:

	IBRS is a stronger mitigation
	but is more costly than stuffing
	(slower).



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH v2] x86/retbleed: add "stuff" mode admin documentation
  2023-01-09 17:19 ` Dave Hansen
@ 2023-01-09 21:08   ` Randy Dunlap
  0 siblings, 0 replies; 3+ messages in thread
From: Randy Dunlap @ 2023-01-09 21:08 UTC (permalink / raw)
  To: Dave Hansen, linux-kernel
  Cc: Thomas Gleixner, Borislav Petkov, Ingo Molnar, Dave Hansen, x86,
	Jonathan Corbet, linux-doc, Ingo Molnar



On 1/9/23 09:19, Dave Hansen wrote:
> On 1/9/23 08:08, Randy Dunlap wrote:
>> +			stuff        - Enables "stuffing" mode mitigation,
>> +				       which uses return thunking and call depth
>> +				       tracking.  Only in effect if
>> +				       CONFIG_CALL_DEPTH_TRACKING is set and
>> +				       Spectre V2 mitigation mode is
>> +				       "retpoline".
>> +				       IBRS is fully secure mitigation but is
>> +				       more costly (slower) than stuffing.
> 
> The "fully secure" thing makes me cringe a bit.
> 
> I'd suggest saying:
> 
> 	IBRS is a stronger mitigation
> 	but is more costly than stuffing
> 	(slower).

OK, will do (v3).  :)

Thanks.

-- 
~Randy

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-01-09 21:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-09 16:08 [PATCH v2] x86/retbleed: add "stuff" mode admin documentation Randy Dunlap
2023-01-09 17:19 ` Dave Hansen
2023-01-09 21:08   ` Randy Dunlap

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®