Received: by 10.223.176.5 with SMTP id f5csp4408873wra; Tue, 30 Jan 2018 06:57:12 -0800 (PST) X-Google-Smtp-Source: AH8x226hOsRCt1T7MnDrv5/l3lX3wpgHk51mm30U2qOsx/LxcuWu4+RWQ5JvxLI0KzJ/ILT4dk/E X-Received: by 2002:a17:902:7b85:: with SMTP id w5-v6mr5198648pll.195.1517324232379; Tue, 30 Jan 2018 06:57:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517324232; cv=none; d=google.com; s=arc-20160816; b=L/PQ4vCYs0aV6/RXJ5rYGz3FANNCfPcPaBY90jT0G3a5UMr53URK4cP1iM2izb5TtT 8k3+Syh0kIJQScvMf92tXLoIE3WMeTZLvxofTtZWCF18Us8echLwbxCAsgS0HKyIZuWs mvf9iZQ9IZjU+z4iNvcqhhkXRXXxLXZDIY72WRqo67DoR8HXBd/bzBu7wwqu7CIKOaYF iwh5du8Zj6XauIrr84dyPKljEYutn2yi2pcdKQ1hUl/knaFdtAdfFg5sg6cSZ9URdEUO a2Kfquf9e8EMbp6dqydk4r0refUghCljBQQKyETgYjU30D27bH/SvZprjaUHwS056Ujf y9Jw== 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:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:arc-authentication-results; bh=6dGlxwEuS/X4jYotFbs8zqy+XKfJydHg1Qbzii+m+Hc=; b=u2DI/5CiXuiY+Ls9u0q68Y+vHbosFfKHGD5xFxQQGr0BL1NS4XL1CcI4gwHevwjtsZ FWRCpWMA9OJFsZrdg6veRYUB0mV/7z2hDMdAkYpz8FrypOXJCxDjjZynyLlIY0pGohSN PPRNL8bxnAo+ALjQ2QPeyxt5arprQy/gZnUcpcF2tDe3XGAy7CZyMPxXEjrgTRKqELpT 3cb354l7CYHwlXogKaYRX8M5ZRWriBMMZAxfno0T85+d5kjlkG7vWkLsvoVd73pAh0lF RFS4gtzUF8vaD4Y98dpST2sljjXrVlF2YJGDy8Da3dC1x0VM0adxiBP9EeOoZSAQcrq+ 8A7g== 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 b91-v6si2214271plb.819.2018.01.30.06.56.58; Tue, 30 Jan 2018 06:57:12 -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 S1751586AbeA3OzI (ORCPT + 99 others); Tue, 30 Jan 2018 09:55:08 -0500 Received: from www.llwyncelyn.cymru ([82.70.14.225]:35528 "EHLO fuzix.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751377AbeA3Oyy (ORCPT ); Tue, 30 Jan 2018 09:54:54 -0500 Received: from alans-desktop (82-70-14-226.dsl.in-addr.zen.co.uk [82.70.14.226]) by fuzix.org (8.15.2/8.15.2) with ESMTP id w0UEsHjC002506; Tue, 30 Jan 2018 14:54:17 GMT Date: Tue, 30 Jan 2018 14:54:17 +0000 From: Alan Cox To: Arjan van de Ven Cc: Borislav Petkov , Thomas Gleixner , David Woodhouse , karahmed@amazon.de, x86@kernel.org, linux-kernel@vger.kernel.org, tim.c.chen@linux.intel.com, peterz@infradead.org, pbonzini@redhat.com, ak@linux.intel.com, torvalds@linux-foundation.org, gregkh@linux-foundation.org Subject: Re: [PATCH] x86/cpuid: Fix up "virtual" IBRS/IBPB/STIBP feature bits on Intel Message-ID: <20180130145417.71b0c859@alans-desktop> In-Reply-To: <37c4e2a7-6e35-d736-dfaf-83fbe4895401@linux.intel.com> References: <1517269773-16750-1-git-send-email-dwmw@amazon.co.uk> <20180130105814.m5zd43dyx2o2ius2@pd.tnic> <1517310230.18619.86.camel@infradead.org> <20180130111848.zjv2dngfzcz35lyt@pd.tnic> <1517311693.18619.102.camel@infradead.org> <1517314193.18619.115.camel@infradead.org> <20180130131122.s3bs6lbs43go73gj@pd.tnic> <37c4e2a7-6e35-d736-dfaf-83fbe4895401@linux.intel.com> Organization: Intel Corporation X-Mailer: Claws Mail 3.15.1-dirty (GTK+ 2.24.31; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 30 Jan 2018 06:01:43 -0800 Arjan van de Ven wrote: > On 1/30/2018 5:11 AM, Borislav Petkov wrote: > > On Tue, Jan 30, 2018 at 01:57:21PM +0100, Thomas Gleixner wrote: > >> So much for the theory. That's not going to work. If the boot cpu has the > >> feature then the alternatives will have been applied. So even if the flag > >> mismatch can be observed when a secondary CPU comes up the outcome will be > >> access to a non existing MSR and #GP. > > > > Yes, with mismatched microcode we're f*cked. > > I think in the super early days of SMP there was an occasional broken BIOS. > (and when Linux then did the ucode update it was sane again) > > Not since a long time though (I think the various certification suites check for it now) The only case I can think of where you'd get a non boot processor that didn't have the same microcode loaded as the rest on entry to the OS would be in a system where it was possibly to phyically hot plug processors post boot. There are not many such systems and it may be that all of them do sufficient deeply unmentionable things in their firmware to cover this. Alan