[tip: x86/cpu] x86/bugs: Replace RFDS model checks with VFM ones
From: tip-bot2 for Sohil Mehta
Date: Wed Nov 25 2026 - 05:03:35 EST
The following commit has been merged into the x86/cpu branch of tip:
Commit-ID: bbb389a04a410f49a2976125997217ea8747661a
Gitweb: https://git.kernel.org/tip/bbb389a04a410f49a2976125997217ea8747661a
Author: Sohil Mehta <sohil.mehta@xxxxxxxxx>
AuthorDate: Mon, 02 Nov 2026 04:31:25
Committer: Ingo Molnar <mingo@xxxxxxxxxx>
CommitterDate: Wed, 25 Nov 2026 10:56:38 +01:00
x86/bugs: Replace RFDS model checks with VFM ones
x86/bugs: Replace RFDS model checks with VFM ones
The RFDS vulnerability check uses raw model numbers to identify Alder
Lake and Raptor Lake. Most Intel-specific code has already moved away
from x86_model checks, but this one got added recently.
Replace the x86_model checks with VFM ones to make them more readable.
Signed-off-by: Sohil Mehta <sohil.mehta@xxxxxxxxx>
Signed-off-by: Borislav Petkov (AMD) <bp@xxxxxxxxx>
Signed-off-by: Dave Hansen <dave.hansen@xxxxxxxxxxxxxxx>
Signed-off-by: Ingo Molnar <mingo@xxxxxxxxxx>
Reviewed-by: Pawan Gupta <pawan.kumar.gupta@xxxxxxxxxxxxxxx>
Link: https://patch.msgid.link/20261030195214.1284995-1-sohil.mehta@xxxxxxxxx
Link: https://patch.msgid.link/179359388559.1009794.13162832200073973480.tip-bot2@tip-bot2
---
arch/x86/kernel/cpu/common.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/x86/kernel/cpu/common.c b/arch/x86/kernel/cpu/common.c
index 7e4eb70..0374746 100644
--- a/arch/x86/kernel/cpu/common.c
+++ b/arch/x86/kernel/cpu/common.c
@@ -1391,8 +1391,8 @@ static bool __init vulnerable_to_rfds(u64 x86_arch_cap_msr)
* both Core and Atom CPUs. Mark unaffected when Atom CPUs are not
* present.
*/
- if ((boot_cpu_data.x86_model == 0x97 ||
- boot_cpu_data.x86_model == 0xB7) &&
+ if ((boot_cpu_data.x86_vfm == INTEL_ALDERLAKE ||
+ boot_cpu_data.x86_vfm == INTEL_RAPTORLAKE) &&
boot_cpu_data.topo.intel_type != INTEL_CPU_TYPE_ATOM &&
!boot_cpu_has(X86_FEATURE_HYBRID_CPU))
return false;