Skip to content

Commit dd5f2ef

Browse files
committed
x86: fix backwards merge of GDS/SRSO bit
Stable-tree-only change. Due to the way the GDS and SRSO patches flowed into the stable tree, it was a 50% chance that the merge of the which value GDS and SRSO should be. Of course, I lost that bet, and chose the opposite of what Linus chose in commit 64094e7 ("Merge tag 'gds-for-linus-2023-08-01' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip") Fix this up by switching the values to match what is now in Linus's tree as that is the correct value to mirror. Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent fa5b932 commit dd5f2ef

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

arch/x86/kernel/cpu/common.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1244,10 +1244,10 @@ static const __initconst struct x86_cpu_id cpu_vuln_whitelist[] = {
12441244
#define RETBLEED BIT(3)
12451245
/* CPU is affected by SMT (cross-thread) return predictions */
12461246
#define SMT_RSB BIT(4)
1247-
/* CPU is affected by GDS */
1248-
#define GDS BIT(5)
12491247
/* CPU is affected by SRSO */
1250-
#define SRSO BIT(6)
1248+
#define SRSO BIT(5)
1249+
/* CPU is affected by GDS */
1250+
#define GDS BIT(6)
12511251

12521252
static const struct x86_cpu_id cpu_vuln_blacklist[] __initconst = {
12531253
VULNBL_INTEL_STEPPINGS(IVYBRIDGE, X86_STEPPING_ANY, SRBDS),

0 commit comments

Comments
 (0)