From: Pawan Gupta Date: Mon, 4 Nov 2019 11:22:01 +0000 (+0100) Subject: x86/cpu: Add Tremont to the cpu vulnerability whitelist X-Git-Tag: archive/raspbian/5.7.6-1+rpi1^2^2^2^2^2^2^2^2^2^2^2~49 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=3a69c081c09a81d5e54c5e3c73e9890367411c2a;p=linux.git x86/cpu: Add Tremont to the cpu vulnerability whitelist Add the new cpu family ATOM_TREMONT_D to the cpu vunerability whitelist. ATOM_TREMONT_D is not affected by X86_BUG_ITLB_MULTIHIT. ATOM_TREMONT_D might have mitigations against other issues as well, but only the ITLB multihit mitigation is confirmed at this point. Signed-off-by: Pawan Gupta Signed-off-by: Paolo Bonzini Signed-off-by: Thomas Gleixner [Salvatore Bonaccorso: Backport to 5.3.7: Rename ATOM_TREMONT_D back to ATOM_TREMONT_X as the stable series do not contain 5ebb34edbefa ("x86/intel: Aggregate microserver naming") which uniforms the name for big and small microservers] Gbp-Pq: Topic bugfix/x86/itlb_multihit Gbp-Pq: Name 0002-x86-cpu-Add-Tremont-to-the-cpu-vulnerability-whiteli.patch --- diff --git a/arch/x86/kernel/cpu/common.c b/arch/x86/kernel/cpu/common.c index 23e31493c67..663b27bdea8 100644 --- a/arch/x86/kernel/cpu/common.c +++ b/arch/x86/kernel/cpu/common.c @@ -1073,6 +1073,8 @@ static const __initconst struct x86_cpu_id cpu_vuln_whitelist[] = { * good enough for our purposes. */ + VULNWL_INTEL(ATOM_TREMONT_X, NO_ITLB_MULTIHIT), + /* AMD Family 0xf - 0x12 */ VULNWL_AMD(0x0f, NO_MELTDOWN | NO_SSB | NO_L1TF | NO_MDS | NO_SWAPGS | NO_ITLB_MULTIHIT), VULNWL_AMD(0x10, NO_MELTDOWN | NO_SSB | NO_L1TF | NO_MDS | NO_SWAPGS | NO_ITLB_MULTIHIT),