Received: by 10.223.185.116 with SMTP id b49csp3369185wrg; Tue, 13 Feb 2018 01:17:04 -0800 (PST) X-Google-Smtp-Source: AH8x224EYjtcMV7M7jBf4fUtfB2VRr9j1eL/K8ryVntUq9vxtT5H0ZZGNOtqte0qgIQuzQT82lX3 X-Received: by 10.98.141.208 with SMTP id p77mr583509pfk.5.1518513424346; Tue, 13 Feb 2018 01:17:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518513424; cv=none; d=google.com; s=arc-20160816; b=1CjbP4qqNQozCptfltWhyQewqzB/Ug3IPyaQ+Yi0+dG/xyDovFJkEzQCJSmc6550L+ lAKTMjc58drUFodgvGZKp4R70eSS7201zYrg3K8JP1CfhGqUcQLCLyFbtC4IYRH9Xhyc wiln89c2HkDcEZmYmR42u9VcuVLI2M1MJvAPmss/sp/kO2+4n1MjKTNBrPu2W/tvd3fe Tat0aTaL7ojVxXpNjO4uAx9uAz0BWKNQorhEHkUsBELxR6yYWz8ZhXQ3PNkZmiM7qWAY bMawQSKEg/tuR8vIKNWn6vUN+BIsv2UcEeUSn0Y5HvyKzvpQcuOT9XSUswEiSWrqRpuh EdbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:robot-unsubscribe:robot-id :git-commit-id:subject:to:references:in-reply-to:reply-to:cc :message-id:from:date:arc-authentication-results; bh=y5mbxZOYQQ4AVEZvDUFI0Uga/HGVLkXVYf5c87V96KM=; b=JNHY1IkMLQjnTgiePx8q828cXn1Xz7BgKVy3F/bWWdCNIBxYklzpGh5/tM9as7k0QX 2tUpmP0xD+OfsLB121VRSc8oAqSOSRkUbbMoEp/Doq3uco4P4NQNmSmQbm/ebWZDFCQB F9dWYzeO0z7haYU4YzyPHzEaUUlzPxXdTQimD110C8Q4G1yntGAHqdZt4yvqYNKoYYf2 OCzOjpMXh4/AWrfmnvCJDboNBzZ4PjHXILvAYSBTMx0oETlw9fmB025MuxvdMNmjgxUU 6GD2+KmhVmCqk4P19xnPu0qX67vAxWF6iNFVUisQk2fv983bWFAr4eFGlQ16CcIkLEUh JR4g== 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 j76si984647pfj.146.2018.02.13.01.16.50; Tue, 13 Feb 2018 01:17:04 -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 S934582AbeBMJOx (ORCPT + 99 others); Tue, 13 Feb 2018 04:14:53 -0500 Received: from terminus.zytor.com ([198.137.202.136]:45095 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934204AbeBMJOT (ORCPT ); Tue, 13 Feb 2018 04:14:19 -0500 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTP id w1D8vtSd023900; Tue, 13 Feb 2018 00:57:55 -0800 Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id w1D8vtC6023897; Tue, 13 Feb 2018 00:57:55 -0800 Date: Tue, 13 Feb 2018 00:57:55 -0800 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for David Woodhouse Message-ID: Cc: linux-kernel@vger.kernel.org, dwmw2@infradead.org, gregkh@linuxfoundation.org, hpa@zytor.com, luto@kernel.org, peterz@infradead.org, dave.hansen@linux.intel.com, dwmw@amazon.co.uk, bp@alien8.de, jpoimboe@redhat.com, arjan.van.de.ven@intel.com, dan.j.williams@intel.com, mingo@kernel.org, torvalds@linux-foundation.org, arjan@linux.intel.com, tglx@linutronix.de Reply-To: hpa@zytor.com, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, dwmw2@infradead.org, luto@kernel.org, dwmw@amazon.co.uk, bp@alien8.de, dave.hansen@linux.intel.com, peterz@infradead.org, torvalds@linux-foundation.org, tglx@linutronix.de, arjan@linux.intel.com, arjan.van.de.ven@intel.com, dan.j.williams@intel.com, mingo@kernel.org, jpoimboe@redhat.com In-Reply-To: <1518449255-2182-1-git-send-email-dwmw@amazon.co.uk> References: <1518449255-2182-1-git-send-email-dwmw@amazon.co.uk> To: linux-tip-commits@vger.kernel.org Subject: [tip:x86/pti] x86/speculation: Correct Speculation Control microcode blacklist again Git-Commit-ID: d37fc6d360a404b208547ba112e7dabb6533c7fc X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on terminus.zytor.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: d37fc6d360a404b208547ba112e7dabb6533c7fc Gitweb: https://git.kernel.org/tip/d37fc6d360a404b208547ba112e7dabb6533c7fc Author: David Woodhouse AuthorDate: Mon, 12 Feb 2018 15:27:34 +0000 Committer: Ingo Molnar CommitDate: Tue, 13 Feb 2018 08:58:59 +0100 x86/speculation: Correct Speculation Control microcode blacklist again Arjan points out that the Intel document only clears the 0xc2 microcode on *some* parts with CPUID 506E3 (INTEL_FAM6_SKYLAKE_DESKTOP stepping 3). For the Skylake H/S platform it's OK but for Skylake E3 which has the same CPUID it isn't (yet) cleared. So removing it from the blacklist was premature. Put it back for now. Also, Arjan assures me that the 0x84 microcode for Kaby Lake which was featured in one of the early revisions of the Intel document was never released to the public, and won't be until/unless it is also validated as safe. So those can change to 0x80 which is what all *other* versions of the doc have identified. Once the retrospective testing of existing public microcodes is done, we should be back into a mode where new microcodes are only released in batches and we shouldn't even need to update the blacklist for those anyway, so this tweaking of the list isn't expected to be a thing which keeps happening. Requested-by: Arjan van de Ven Signed-off-by: David Woodhouse Cc: Andy Lutomirski Cc: Arjan van de Ven Cc: Borislav Petkov Cc: Dan Williams Cc: Dave Hansen Cc: David Woodhouse Cc: Greg Kroah-Hartman Cc: Josh Poimboeuf Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: arjan.van.de.ven@intel.com Cc: dave.hansen@intel.com Cc: kvm@vger.kernel.org Cc: pbonzini@redhat.com Link: http://lkml.kernel.org/r/1518449255-2182-1-git-send-email-dwmw@amazon.co.uk Signed-off-by: Ingo Molnar --- arch/x86/kernel/cpu/intel.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/arch/x86/kernel/cpu/intel.c b/arch/x86/kernel/cpu/intel.c index f73b814..ef796f1 100644 --- a/arch/x86/kernel/cpu/intel.c +++ b/arch/x86/kernel/cpu/intel.c @@ -116,13 +116,14 @@ struct sku_microcode { u32 microcode; }; static const struct sku_microcode spectre_bad_microcodes[] = { - { INTEL_FAM6_KABYLAKE_DESKTOP, 0x0B, 0x84 }, - { INTEL_FAM6_KABYLAKE_DESKTOP, 0x0A, 0x84 }, - { INTEL_FAM6_KABYLAKE_DESKTOP, 0x09, 0x84 }, - { INTEL_FAM6_KABYLAKE_MOBILE, 0x0A, 0x84 }, - { INTEL_FAM6_KABYLAKE_MOBILE, 0x09, 0x84 }, + { INTEL_FAM6_KABYLAKE_DESKTOP, 0x0B, 0x80 }, + { INTEL_FAM6_KABYLAKE_DESKTOP, 0x0A, 0x80 }, + { INTEL_FAM6_KABYLAKE_DESKTOP, 0x09, 0x80 }, + { INTEL_FAM6_KABYLAKE_MOBILE, 0x0A, 0x80 }, + { INTEL_FAM6_KABYLAKE_MOBILE, 0x09, 0x80 }, { INTEL_FAM6_SKYLAKE_X, 0x03, 0x0100013e }, { INTEL_FAM6_SKYLAKE_X, 0x04, 0x0200003c }, + { INTEL_FAM6_SKYLAKE_DESKTOP, 0x03, 0xc2 }, { INTEL_FAM6_BROADWELL_CORE, 0x04, 0x28 }, { INTEL_FAM6_BROADWELL_GT3E, 0x01, 0x1b }, { INTEL_FAM6_BROADWELL_XEON_D, 0x02, 0x14 },