Skip to content

Commit 45b8433

Browse files
danieljordan10jfvogel
authored andcommitted
x86/bugs: spectre_v2_heuristics_setup should check for ssbd, not rds
3b29a60 ("x86/bugs: Rename _RDS to _SSBD") missed two updates, both in spectre_v2_heuristics_setup, so that if spectre_v2_heuristics=ssbd=off were passed as documented in kernel-parameters.txt, it would be ignored. Fix it. Orabug: 28362348 Fixes: 3b29a60 ("x86/bugs: Rename _RDS to _SSBD") Signed-off-by: Daniel Jordan <[email protected]> Reviewed-by: Boris Ostrovsky <[email protected]> Reviewed-by: Alexandre Chartre <[email protected]>
1 parent 043c121 commit 45b8433

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/x86/kernel/cpu/bugs.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ int __init spectre_v2_heuristics_setup(char *p)
8282
if (!strncmp(p, "off", 3))
8383
use_ibrs_on_skylake = false;
8484
}
85-
len = strlen("rds");
86-
if (!strncmp(p, "rds", len)) {
85+
len = strlen("ssbd");
86+
if (!strncmp(p, "ssbd", len)) {
8787
p += len;
8888
if (*p == '=')
8989
++p;

0 commit comments

Comments
 (0)