Received: by 10.223.185.116 with SMTP id b49csp753244wrg; Wed, 21 Feb 2018 06:25:47 -0800 (PST) X-Google-Smtp-Source: AH8x22626+03gtUTF9p2KWQYRVi85zvMSgcr946cpDJzX45bTvs76kXDqmZVM56Q8Fc7RVDHwwYe X-Received: by 2002:a17:902:33c2:: with SMTP id b60-v6mr3412978plc.222.1519223147145; Wed, 21 Feb 2018 06:25:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519223147; cv=none; d=google.com; s=arc-20160816; b=kofpYjo5eC//ApviI5vPMSt6MqTmABgeflmrpnA5EI+dWFnfN0Gh+WMrFe2HAn1tGK rLJD+ssUiWntYShCUmneLG5ZBQZU3h0/tGcmxaRehk/kSDUObaiUI+PIg0Gq4FHla36J 8+ni6xd+di0D5cM/1d7li/2TuMPHgDVWed3ag1oTPTLxCY/2M0fXd60/tBzr9MVa6KWM mx3fYL7MzplUDrFh03XjSSw65BLjEkrUhqGcysYga8F3FpvC4nhldqI7wBwmdXCy8FXR xdExn1onpxdA4GqzZbr8Bktzhn6AjQUzsM8wcrxmx+Ztyy38TU1j9qRmhshJC1WW1BE4 s+OQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=xpPMz7Zu3rooys2CZ6B0oLx4R4A3BgAv7o5nrC9Bm0g=; b=0I2u3nSe62dVv1X56km4mqXkyJI1qBxQBXz9RoTxaNHtLMIYu6J7qGrlsKT+Ym5L4S 4mBoY+mnQdhbVX+QTPE1+WJD+m1yjljIC/WKl3IADbSHm4aapRHRIWrmhygfJdzBkGcJ ZVbO8wgPkTbiBnWuAkhgQYTJ+0qZ6sIiiT2qd/GDBsKWx3KfI5IqL0cPcfSDM1YLAjDD LsdYo+tQrM4MpbuI0Ltr101O2dwayAKTuvHtGWoObWXd4HVMFaiEnV0yb0Rzgf4qsSbk EwGqLv4rUl7iYC0iA7XVRdOye/JlvyBgay0d6EyF6AvPnxAkXWUMx0sFfBj6GXqsuNyn CFZQ== 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 x7-v6si1231186plo.351.2018.02.21.06.25.32; Wed, 21 Feb 2018 06:25:47 -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 S934792AbeBUM5w (ORCPT + 99 others); Wed, 21 Feb 2018 07:57:52 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:35934 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934770AbeBUM5s (ORCPT ); Wed, 21 Feb 2018 07:57:48 -0500 Received: from localhost (LFbn-1-12258-90.w90-92.abo.wanadoo.fr [90.92.71.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id DDC42F32; Wed, 21 Feb 2018 12:57:47 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Arjan van de Ven , David Woodhouse , Andy Lutomirski , Arjan van de Ven , Borislav Petkov , Dan Williams , Dave Hansen , David Woodhouse , Josh Poimboeuf , Linus Torvalds , Peter Zijlstra , Thomas Gleixner , dave.hansen@intel.com, kvm@vger.kernel.org, pbonzini@redhat.com, Ingo Molnar Subject: [PATCH 4.9 53/77] x86/speculation: Correct Speculation Control microcode blacklist again Date: Wed, 21 Feb 2018 13:49:02 +0100 Message-Id: <20180221124434.454607702@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180221124432.172390020@linuxfoundation.org> References: <20180221124432.172390020@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.9-stable review patch. If anyone has any objections, please let me know. ------------------ From: David Woodhouse commit d37fc6d360a404b208547ba112e7dabb6533c7fc upstream. 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 Signed-off-by: Greg Kroah-Hartman --- arch/x86/kernel/cpu/intel.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) --- a/arch/x86/kernel/cpu/intel.c +++ b/arch/x86/kernel/cpu/intel.c @@ -75,13 +75,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 },