Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp6204212ybl; Wed, 15 Jan 2020 00:12:19 -0800 (PST) X-Google-Smtp-Source: APXvYqzg93ovTGVE39gj9w2XcTJJSCAuI0tQtRnFP/q7L+5zg4hxN/P2TPazHNyn8b0SPmH/01j5 X-Received: by 2002:a9d:7501:: with SMTP id r1mr1961030otk.196.1579075939689; Wed, 15 Jan 2020 00:12:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579075939; cv=none; d=google.com; s=arc-20160816; b=yjJ6p5bwTDjpZdYw26hApmqs4Bh6iIO9RIXWRo7TVTiwJkWx4FyIBBqLsWcjpUU+t8 NTZOCKm/lWjtD8pdJiKc+WzA3Rx+9Tc0O0poN1Pnrf/+8Iemo8fCbIEJspS+D21RdWoW tWzuE/Tk7rQ8Pz6wILfawHNUVsSId5N5SKCozSXo/qwOBKVHUPPEsIcoPUOOfk9q9w3c LvgGo0+PHeYJmCE8oMI5Nzc6aSngxaJLM179NjwxYOM1hAjUrZHsht6WW/cKXHHl+shy a77txZSV44a1SGQb+lmwbFdaAirMKn8RO9zAY7XY1ybbXpb4NBhiYWFytllgUq0nM3QE /9AA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=sN6Ke93DRSWgUooP3vKDaxIdY1it1ZO0uT+EQGIEdmY=; b=zYkYqoaXMr1Fl5q1ujFzd35cBOliiEQKxr2K42LUBaaUA591iK1fMRwbNN5ovEjsBo p+TsnLqAJPU8VkKujj5gGfek4Z6oEjbcdpJrwUQyqC2R2JE+f62f7k0ep8qCFAVrS4vQ EL48OMpH9/YbD2YVW4p7kd+r22dHnlSCaJjRjzgUR6ne47ezQgb36PH+w4MwV8XwhZZq z5VBpGWtSmYL8mdwfDDaLIExJpyWkhlM4mvlt6zvPASNWLBkI+TyK0xFwMoxclaKW8B5 ngFaTpjqbEk9Gyt+zCPOHwNWmBoFyR5Nlf6+t0D9mnEIc2S+ndAMUI/SA/4Sx7oVzC0n Kp3g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v23si9931619otk.321.2020.01.15.00.12.05; Wed, 15 Jan 2020 00:12:19 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726310AbgAOIK6 (ORCPT + 99 others); Wed, 15 Jan 2020 03:10:58 -0500 Received: from ZXSHCAS1.zhaoxin.com ([203.148.12.81]:29677 "EHLO ZXSHCAS1.zhaoxin.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726100AbgAOIK6 (ORCPT ); Wed, 15 Jan 2020 03:10:58 -0500 X-Greylist: delayed 623 seconds by postgrey-1.27 at vger.kernel.org; Wed, 15 Jan 2020 03:10:58 EST Received: from zxbjmbx1.zhaoxin.com (10.29.252.163) by ZXSHCAS1.zhaoxin.com (10.28.252.161) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1261.35; Wed, 15 Jan 2020 16:10:55 +0800 Received: from tony-HX002EA.zhaoxin.com (10.32.64.11) by zxbjmbx1.zhaoxin.com (10.29.252.163) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1261.35; Wed, 15 Jan 2020 16:10:53 +0800 From: Tony W Wang-oc To: , , , , , , , , , , CC: , , , Subject: [PATCH] x86/cpu: Add Zhaoxin CPUs to the cpu vulnerability whitelist Date: Wed, 15 Jan 2020 16:11:22 +0800 Message-ID: <1579075882-7162-1-git-send-email-TonyWWang-oc@zhaoxin.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.32.64.11] X-ClientProxiedBy: zxbjmbx1.zhaoxin.com (10.29.252.163) To zxbjmbx1.zhaoxin.com (10.29.252.163) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org New Zhaoxin family 7 CPUs are not affected by SWAPGS, add these CPUs to the cpu vulnerability whitelist. Signed-off-by: Tony W Wang-oc --- arch/x86/kernel/cpu/common.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/x86/kernel/cpu/common.c b/arch/x86/kernel/cpu/common.c index 2e4d902..3488507 100644 --- a/arch/x86/kernel/cpu/common.c +++ b/arch/x86/kernel/cpu/common.c @@ -1084,6 +1084,10 @@ static const __initconst struct x86_cpu_id cpu_vuln_whitelist[] = { /* FAMILY_ANY must be last, otherwise 0x0f - 0x12 matches won't work */ VULNWL_AMD(X86_FAMILY_ANY, NO_MELTDOWN | NO_L1TF | NO_MDS | NO_SWAPGS | NO_ITLB_MULTIHIT), VULNWL_HYGON(X86_FAMILY_ANY, NO_MELTDOWN | NO_L1TF | NO_MDS | NO_SWAPGS | NO_ITLB_MULTIHIT), + + /* Zhaoxin Family 7 */ + VULNWL(CENTAUR, 7, X86_MODEL_ANY, NO_SWAPGS), + VULNWL(ZHAOXIN, 7, X86_MODEL_ANY, NO_SWAPGS), {} }; -- 2.7.4