Received: by 10.223.185.116 with SMTP id b49csp3636431wrg; Tue, 13 Feb 2018 05:30:13 -0800 (PST) X-Google-Smtp-Source: AH8x227q4Sl4Jzt/liVMj4PfCeh5in9mQzZ2/MEO2tXecleyWC6fIc8Y3yaolEF2qcixe40d5SvR X-Received: by 10.98.52.194 with SMTP id b185mr1278226pfa.216.1518528613270; Tue, 13 Feb 2018 05:30:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518528613; cv=none; d=google.com; s=arc-20160816; b=ET8xykdnvjZRy+PnLDa5EO8Qdl0k+HWsA9dWhlr9+I3kix74NXTb/6RCcnes7U77YN mLctEJiaVgE4HSFtyAHsbFui2QgGEiTYkk4zYRulqm+J2I8bStkcgB5C8/RDbdeKQOLg biarWQz7wNoMk3Z34IL/VKCpy+f4kdQ0hZ/YdMLcNqwyZYC78Kdf0zhDIwGHe6EWVmI8 JB4P25+ZrHlkhJKdQeIuRvhJGggw2k9P+zoctvwAIz4651RrXgfZRnAEh9fFiGEJJqqI oGGdWetZnJalQ0PTWMPq885gJtE2pAlB+uaZE+jTjznyDIxKn0YsZd1p3IqWBLYZ0+O5 0p3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=wX4AbLEH7bHfRQoyrxa0NF1w5pEQjC+PbCsPhlI34I4=; b=okTAFPcb0dkiMDB4xTpuQu7ZCpdBfc9FYRQVDiZboh0WEoWu96W01uED0Y3HZyCxIb PUTHn+Rh79is+77WcBv7WTijWadfhf21Ys6QgHyCaUfFWeQqMynq5HuwAieW9FNPP/d1 fTQCxOzmKg3KedZGAIHGrvDO5CwzyStbA/iTMFYqjksGHIOpPYf5e5v3lb41HMamc6tY vw54Mv4ltH37X8dWlLlCVXYhUfnX/qQzH0Hu7AsBpX3QdIrTpo3yZt9nktGtSGOs1Efr EGeWseaORmKjBlR3FtzDhkdXVRKNjJiHidzbFpovvX+E/d+cGV7BGm+FkQKw7+EsnbQU O4sw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=rA6ADkmc; 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 m73si1559315pfj.131.2018.02.13.05.29.58; Tue, 13 Feb 2018 05:30:13 -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=fail header.i=@infradead.org header.s=merlin.20170209 header.b=rA6ADkmc; 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 S935319AbeBMN2g (ORCPT + 99 others); Tue, 13 Feb 2018 08:28:36 -0500 Received: from merlin.infradead.org ([205.233.59.134]:60694 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935174AbeBMN2f (ORCPT ); Tue, 13 Feb 2018 08:28:35 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=wX4AbLEH7bHfRQoyrxa0NF1w5pEQjC+PbCsPhlI34I4=; b=rA6ADkmcYi4P5N3cy+idtI5K8 PJPpBlPNNhT+aK/H7O/gmEZ3hpaM1HgLIRhYTwJ+mqnkj1EdjqiLIXU39fIBvFE1zorzPpspcyy0a 7HHM+tmq8KIO9TpWEEQHpefAOr7Or0IbyUJFlAt3ZG/L9sVB1fo/xcaH+kLU7pqjemJgQFPk7Vlvj PNMGYo3fWljTB6VlRr9b3Ly1USyuzLIWv6Z/SDNY/PB3cnY+AlHWbvH6RDWMQ0CKlSPXntxBq2FPi yjOpdVWD6LnQg++/OTHJEzeGX86kjCxvL8/MqW8rMHjkFiAZ5ft6x8CT85qKAA3yzG2UZkKGkqhgQ t8quurEdA==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.89 #1 (Red Hat Linux)) id 1eladA-00018j-R3; Tue, 13 Feb 2018 13:28:21 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 9D53420279154; Tue, 13 Feb 2018 14:28:19 +0100 (CET) Date: Tue, 13 Feb 2018 14:28:19 +0100 From: Peter Zijlstra To: Ingo Molnar Cc: torvalds@linux-foundation.org, dave.hansen@linux.intel.com, bp@alien8.de, tglx@linutronix.de, arjan@linux.intel.com, linux-kernel@vger.kernel.org, dwmw2@infradead.org, hpa@zytor.com, gregkh@linuxfoundation.org, dan.j.williams@intel.com, dwmw@amazon.co.uk, luto@kernel.org, jpoimboe@redhat.com, linux-tip-commits@vger.kernel.org, Joe Konno Subject: Re: [tip:x86/pti] Revert "x86/speculation: Simplify indirect_branch_prediction_barrier()" Message-ID: <20180213132819.GJ25201@hirez.programming.kicks-ass.net> References: <1518305967-31356-3-git-send-email-dwmw@amazon.co.uk> <20180213094132.GF25201@hirez.programming.kicks-ass.net> <20180213112838.v2xu4qdnend5tflv@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180213112838.v2xu4qdnend5tflv@gmail.com> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 13, 2018 at 12:28:38PM +0100, Ingo Molnar wrote: > Separate would be better, it makes sense and is one problem less to worry about? Something like so then? I'm not entirely sure which commit wants to fo in Fixes, I picked the earlier one, but it could equally have been: Fixes: f208820a321f ("Revert "x86/speculation: Simplify indirect_branch_prediction_barrier()"") --- Subject: x86/speculation: Add msr-index.h From: Peter Zijlstra Date: Tue, 13 Feb 2018 10:41:32 +0100 Joe Konno reported a compile failure resulting from using an MSR without inclusion of msr-index.h, and while the current code builds fine (by accident) this needs fixing for future patches. Cc: mingo@kernel.org Cc: dwmw2@infradead.org Cc: torvalds@linux-foundation.org Cc: bp@alien8.de Cc: tglx@linutronix.de Cc: arjan@linux.intel.com Cc: dan.j.williams@intel.com Cc: dave.hansen@linux.intel.com Cc: jpoimboe@redhat.com Cc: hpa@zytor.com Cc: gregkh@linuxfoundation.org Cc: dwmw@amazon.co.uk Cc: luto@kernel.org Fixes: 20ffa1caecca ("x86/speculation: Add basic IBPB (Indirect Branch Prediction Barrier) support") Reported-by: Joe Konno Signed-off-by: Peter Zijlstra (Intel) --- arch/x86/include/asm/nospec-branch.h | 1 + 1 file changed, 1 insertion(+) --- a/arch/x86/include/asm/nospec-branch.h +++ b/arch/x86/include/asm/nospec-branch.h @@ -6,6 +6,7 @@ #include #include #include +#include #ifdef __ASSEMBLY__