projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
02428d0
)
x86/srso: Fix SBPB enablement for spec_rstack_overflow=off
author
Josh Poimboeuf
<jpoimboe@kernel.org>
Tue, 5 Sep 2023 05:04:48 +0000
(22:04 -0700)
committer
Borislav Petkov (AMD)
<bp@alien8.de>
Tue, 19 Sep 2023 08:54:39 +0000
(10:54 +0200)
If the user has requested no SRSO mitigation, other mitigations can use
the lighter-weight SBPB instead of IBPB.
Fixes: fb3bd914b3ec ("x86/srso: Add a Speculative RAS Overflow mitigation")
Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Acked-by: Borislav Petkov (AMD) <bp@alien8.de>
Link:
https://lore.kernel.org/r/b20820c3cfd1003171135ec8d762a0b957348497.1693889988.git.jpoimboe@kernel.org
arch/x86/kernel/cpu/bugs.c
patch
|
blob
|
history
diff --git
a/arch/x86/kernel/cpu/bugs.c
b/arch/x86/kernel/cpu/bugs.c
index b0ae985aa6a4a0eaa4d8fd1cf8314b1bc6be163c..10499bcd4e39624827e9641df81eda074bc3cfdc 100644
(file)
--- a/
arch/x86/kernel/cpu/bugs.c
+++ b/
arch/x86/kernel/cpu/bugs.c
@@
-2433,7
+2433,7
@@
static void __init srso_select_mitigation(void)
switch (srso_cmd) {
case SRSO_CMD_OFF:
-
return
;
+
goto pred_cmd
;
case SRSO_CMD_MICROCODE:
if (has_microcode) {