x86/speculation: Do not match steppings
authorBen Hutchings <benh@debian.org>
Tue, 5 May 2020 01:09:56 +0000 (02:09 +0100)
committerBen Hutchings <benh@debian.org>
Tue, 9 Jun 2020 17:50:00 +0000 (18:50 +0100)
Forwarded: not-needed

Adding the x86_cpu_id::steppings field is an ABI change.  It doesn't
seem worth the trouble of another ABI bump just to be able to report
some potential future CPU steppings as invulnerable.  Until we have
other change that require an ABI bump, match the affected models
regardless of stepping.

Gbp-Pq: Topic debian/abi
Gbp-Pq: Name x86-speculation-do-not-match-steppings.patch

arch/x86/kernel/cpu/common.c

index 0567448124e1f437050005a7651fb13dab0a3c6d..9b747e5f164906c5ce736ea971f8a66296fb995d 100644 (file)
@@ -1075,10 +1075,8 @@ static const __initconst struct x86_cpu_id cpu_vuln_whitelist[] = {
        {}
 };
 
-#define VULNBL_INTEL_STEPPINGS(model, steppings, issues)                  \
-       X86_MATCH_VENDOR_FAM_MODEL_STEPPINGS_FEATURE(INTEL, 6,             \
-                                           INTEL_FAM6_##model, steppings, \
-                                           X86_FEATURE_ANY, issues)
+#define VULNBL_INTEL_STEPPINGS(model, steppings, issues)     \
+       VULNWL_INTEL(model, issues)
 
 #define SRBDS          BIT(0)