Received: by 10.223.185.116 with SMTP id b49csp2295469wrg; Mon, 12 Feb 2018 07:29:54 -0800 (PST) X-Google-Smtp-Source: AH8x225pg+mwcGLTj2SEnIvtOs1Jmi9l1p0IyRg8BhD4B5eZnufp+LVVLUYNGJQ/gEsO+qj288u0 X-Received: by 2002:a17:902:2884:: with SMTP id f4-v6mr10996883plb.35.1518449394706; Mon, 12 Feb 2018 07:29:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518449394; cv=none; d=google.com; s=arc-20160816; b=JQxwck72S0vWKTVm0waLVwPZFzkFmoKLMzitOvRYqp3cZYVG+MEJYB0OqWsWXJl6Yy LxvmXU6KxsZ9l62y+qELTHq9/+LM1U4XRSFOeReyPPHtcSsqFRn6d86ovvS/iYKaA6pX S12JuJYyblCMnVaaB1xpeJzgoXtUL0Y0Ktmna1d4XHHXWBTkIv3Ko8FUchoY8bVDDmTn jVIm2nqmte0lEQeguLLelSmIl17MgfGztoGs5TcCirGFJABzuPndyhWFxiulUqlWcAgN 9Pcz+Wv4xS8opNKaNGw1yKicHue8CDQ9JyX6gcvZN1hYJxroyStQohcBT8nKDeHlAV4o NQBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:to:from :dkim-signature:arc-authentication-results; bh=u8/soGZjUbNPQydpbi2aTZcSzi3DG92kduf215YWUWo=; b=RnVvT2e1Dddm2WpxA1YDKBc+UUKwRSIM9cFLk0U5QjtUUoytzNZWL45vURTI55cwsl A0dYn5t86K5b7EKdycMFcCopk4oWqFGOebrKbin0WXBE5LnjeIE6ckAqAHq0TGGhOnm9 Q5ojcJJHti7dxjIP5AN+LWq1t8BtoJbEPvSma5XULFkwQwqlq+KW1ZXeGGQUBPJz24yo fScSR8XqzvT3JR5GftzbiJDuKKhlq+583wzBPwCGu3gDhz9RafttzREf4WrwdGIhX/+j prBt99HZsuLo08rUVGctpKxgjzs4L3q1kzG2qVRrWcJ/OVWdbjZdXqhDabKPJtovVVEi ZiEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.co.uk header.s=amazon201209 header.b=K/ZwRM3T; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.co.uk Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f84si825059pfh.363.2018.02.12.07.29.40; Mon, 12 Feb 2018 07:29:54 -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; dkim=pass header.i=@amazon.co.uk header.s=amazon201209 header.b=K/ZwRM3T; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.co.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753404AbeBLP1t (ORCPT + 99 others); Mon, 12 Feb 2018 10:27:49 -0500 Received: from smtp-fw-9101.amazon.com ([207.171.184.25]:20334 "EHLO smtp-fw-9101.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753044AbeBLP1r (ORCPT ); Mon, 12 Feb 2018 10:27:47 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.co.uk; i=@amazon.co.uk; q=dns/txt; s=amazon201209; t=1518449267; x=1549985267; h=from:to:subject:date:message-id; bh=u8/soGZjUbNPQydpbi2aTZcSzi3DG92kduf215YWUWo=; b=K/ZwRM3TY6Y8wiZVg+OMFPDSJa3INVCPbH2ohLGOWzh09tnjOYJviTrm 4RzNak9BpRWUZvyPxMslkq4RuGPm/JLYhIGkkxR4ZQbTrSrX1ZhHnFv8J PCJHBsdIwasxtPk381oglJDArWF9xvifxn1r41GbM91lNAmsh3MXWecwC I=; X-IronPort-AV: E=Sophos;i="5.46,501,1511827200"; d="scan'208";a="722228732" Received: from sea3-co-svc-lb6-vlan3.sea.amazon.com (HELO email-inbound-relay-1e-303d0b0e.us-east-1.amazon.com) ([10.47.22.38]) by smtp-border-fw-out-9101.sea19.amazon.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 12 Feb 2018 15:27:44 +0000 Received: from uc8d3ff76b9bc5848a9cc.ant.amazon.com (iad1-ws-svc-lb91-vlan3.amazon.com [10.0.103.150]) by email-inbound-relay-1e-303d0b0e.us-east-1.amazon.com (8.14.7/8.14.7) with ESMTP id w1CFRdcv063330 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 12 Feb 2018 15:27:41 GMT Received: from uc8d3ff76b9bc5848a9cc.ant.amazon.com (localhost [127.0.0.1]) by uc8d3ff76b9bc5848a9cc.ant.amazon.com (8.15.2/8.15.2/Debian-3) with ESMTP id w1CFRcIH002264; Mon, 12 Feb 2018 15:27:38 GMT Received: (from dwmw@localhost) by uc8d3ff76b9bc5848a9cc.ant.amazon.com (8.15.2/8.15.2/Submit) id w1CFRbmx002260; Mon, 12 Feb 2018 15:27:37 GMT From: David Woodhouse To: tglx@linutronix.de, x86@kernel.org, kvm@vger.kernel.org, torvalds@linux-foundation.org, pbonzini@redhat.com, linux-kernel@vger.kernel.org, arjan.van.de.ven@intel.com, dave.hansen@intel.com Subject: [PATCH 1/2] x86/speculation: Correct Speculation Control microcode blacklist again Date: Mon, 12 Feb 2018 15:27:34 +0000 Message-Id: <1518449255-2182-1-git-send-email-dwmw@amazon.co.uk> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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 }, -- 2.7.4