Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp9345643ybl; Fri, 17 Jan 2020 10:21:22 -0800 (PST) X-Google-Smtp-Source: APXvYqwr8IstR9vmc0CSFMc/2ToHh2RhGrMElDkwRoF0AY8UBQTQz7daO12SYB3iabryxI4rAgcJ X-Received: by 2002:a05:6808:191:: with SMTP id w17mr4254249oic.29.1579285282886; Fri, 17 Jan 2020 10:21:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579285282; cv=none; d=google.com; s=arc-20160816; b=CwUY1JtNn+vSulG/SoRgImgHNjeOaabUh63JYgosiLQp2692Jx/4S8wwb+abdKP/37 X3PInli54QkJ+SRolSQYfL7yXPXIcdUBiFmCh4808181zhjH0Drfjrt8sq+SxGELlp46 zSRKpTSomXeXW8aNxDG49o2irg632cgfpZsDVbjfTITDrB0Lct0y5D4/8lHlekzRTjx2 oGHJxhr5dic77EgZ42E+tgHi+y8VoVP4KOZG+1ANsu9F+v1xRX56VJB3S8d5WXWPjeLJ r3msYb4QTqRU+qcmngO46ogvnwQb/T/cqSr3MazAYBoUvNzRWwPcY4YQsjZNXmU6eCnd pTVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :robot-unsubscribe:robot-id:message-id:mime-version:references :in-reply-to:cc:subject:to:reply-to:from:date; bh=uQybavvCMM0uZOh4ev23OV2d/rtNghJrJmzqeKqROW8=; b=hXoHc8RbzZKEhSfZwUhK0thY713mM1ZWrI9iNjZO7K6/9+MVO7qHSD5p/Z5VryL4bU hyxsSOOrY0qja3OYRFdcY4fDNVCcY3oZ+xkjmvNbZD2EOLD+5TI4vFfgdkn8oPgiqE5I VsllHb/SB2L1kfw/JSX1q8K3twhEOEfNp7UWhzETUYHCI6mlqG8rKaHuwwrk3IzJaAy1 xKxCkQGU8a8HqcnmIDgLC8FR8l5YUMEN3AMHIlsO+iZrlg5N7oapBh5GUmHyknesUKo9 0rrI2AUA+tUY9b780p79zUt34gc7sX7TwLhX5GZfq+MBQxYjj21r2YrdbIWk4gTBUpI9 xztg== 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 d2si14555785oth.267.2020.01.17.10.21.10; Fri, 17 Jan 2020 10:21:22 -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 S1729126AbgAQSTO (ORCPT + 99 others); Fri, 17 Jan 2020 13:19:14 -0500 Received: from Galois.linutronix.de ([193.142.43.55]:57223 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726970AbgAQSTO (ORCPT ); Fri, 17 Jan 2020 13:19:14 -0500 Received: from [5.158.153.53] (helo=tip-bot2.lab.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1isWD8-00068M-Go; Fri, 17 Jan 2020 19:19:10 +0100 Received: from [127.0.1.1] (localhost [IPv6:::1]) by tip-bot2.lab.linutronix.de (Postfix) with ESMTP id 134441C19EF; Fri, 17 Jan 2020 19:19:10 +0100 (CET) Date: Fri, 17 Jan 2020 18:19:09 -0000 From: "tip-bot2 for Tony W Wang-oc" Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/pti] x86/speculation/swapgs: Exclude Zhaoxin CPUs from SWAPGS vulnerability Cc: "Tony W Wang-oc" , Thomas Gleixner , x86 , LKML In-Reply-To: <1579227872-26972-3-git-send-email-TonyWWang-oc@zhaoxin.com> References: <1579227872-26972-3-git-send-email-TonyWWang-oc@zhaoxin.com> MIME-Version: 1.0 Message-ID: <157928514982.396.3134965085356599913.tip-bot2@tip-bot2> X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the x86/pti branch of tip: Commit-ID: a84de2fa962c1b0551653fe245d6cb5f6129179c Gitweb: https://git.kernel.org/tip/a84de2fa962c1b0551653fe245d6cb5f6129179c Author: Tony W Wang-oc AuthorDate: Fri, 17 Jan 2020 10:24:32 +08:00 Committer: Thomas Gleixner CommitterDate: Fri, 17 Jan 2020 19:13:47 +01:00 x86/speculation/swapgs: Exclude Zhaoxin CPUs from SWAPGS vulnerability New Zhaoxin family 7 CPUs are not affected by the SWAPGS vulnerability. So mark these CPUs in the cpu vulnerability whitelist accordingly. Signed-off-by: Tony W Wang-oc Signed-off-by: Thomas Gleixner Link: https://lore.kernel.org/r/1579227872-26972-3-git-send-email-TonyWWang-oc@zhaoxin.com --- 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 6048bd3..ca4a0d2 100644 --- a/arch/x86/kernel/cpu/common.c +++ b/arch/x86/kernel/cpu/common.c @@ -1087,8 +1087,8 @@ static const __initconst struct x86_cpu_id cpu_vuln_whitelist[] = { 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_SPECTRE_V2), - VULNWL(ZHAOXIN, 7, X86_MODEL_ANY, NO_SPECTRE_V2), + VULNWL(CENTAUR, 7, X86_MODEL_ANY, NO_SPECTRE_V2 | NO_SWAPGS), + VULNWL(ZHAOXIN, 7, X86_MODEL_ANY, NO_SPECTRE_V2 | NO_SWAPGS), {} };