Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754376AbeAJNqn (ORCPT + 1 other); Wed, 10 Jan 2018 08:46:43 -0500 Received: from Galois.linutronix.de ([146.0.238.70]:55831 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751221AbeAJNqm (ORCPT ); Wed, 10 Jan 2018 08:46:42 -0500 Date: Wed, 10 Jan 2018 14:46:22 +0100 (CET) From: Thomas Gleixner To: David Woodhouse cc: Andrea Arcangeli , Jiri Kosina , "asit.k.mallick" , "Van De Ven, Arjan" , Peter Zijlstra , Dave Hansen , LKML , Linus Torvalds , x86@kernel.org, Borislav Petkov , Tim Chen , Andi Kleen , Greg KH , Andy Lutomirski Subject: Re: [patch RFC 5/5] x86/speculation: Add basic speculation control code In-Reply-To: <1515589641.22302.145.camel@infradead.org> Message-ID: References: <20180110092234.GY29822@worktop.programming.kicks-ass.net> <1515576479.22302.81.camel@infradead.org> <20180110115419.GA9706@redhat.com> <1515585534.22302.122.camel@infradead.org> <20180110120158.GB9706@redhat.com> <1515586174.22302.126.camel@infradead.org> <20180110121755.GD9706@redhat.com> <1515587384.22302.132.camel@infradead.org> <20180110124119.GG9706@redhat.com> <20180110125710.GH9706@redhat.com> <1515589641.22302.145.camel@infradead.org> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On Wed, 10 Jan 2018, David Woodhouse wrote: > Andrea, what you're saying is directly contradicting what I've heard > from Intel. > > The documentation already distinguishes between IBRS on current > hardware, and IBRS_ATT on future hardware. If it was the case that IBRS > on current hardware is a set-and-forget option and completely disables > branch prediction, then they would say that. Rather than explicitly > saying the *opposite*, specifically for the case of current hardware, > as they do. > > Rather than continuing to debate it, perhaps it's best just to wake for > the US to wake up, and Intel to give a definitive answer. So here is the simple list of questions all to be answered with YES or NO. I don't want to see any of the 'but, though ...'. We all know by now that it's CPU dependent and slow and whatever and that IBRS_ATT will be in future CPUs. So get your act together and tell a clear YES or NO. 1) Does IBRS=1 when set once act as a set-and-forget option ? 1a) If the answer to #1 is yes, is it more secure than toggling it? 1b) If the answer to #1 is yes, is retpoline required ? 1c) If the answer to #1 is yes, is RSB stuffing required ? 2) Does toggle mode of IBRS require retpoline ? 3) Does toggle mode of IBRS require RSB stuffing ? 4) Exist CPUs which require IBRS to be selected automatically ? 4b) If yes, provide the list as a separate answer please Thanks, tglx