Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5806504imu; Mon, 26 Nov 2018 05:32:40 -0800 (PST) X-Google-Smtp-Source: AFSGD/WpXu7Nz1yKdzfIhG3Kw3nRVQki1wNXxC2p+JKjRKT9839t/n618+sr+gEP+hAeJCtODcJC X-Received: by 2002:a63:1321:: with SMTP id i33mr25287142pgl.380.1543239160481; Mon, 26 Nov 2018 05:32:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543239160; cv=none; d=google.com; s=arc-20160816; b=KJ3c+Iy/G0C+inoUnyCfNZMFZAsxBK/qb/04FgtxfyjQrTvRQ6ONJYbgXdEbKDMUYs Pko+5pkvNTIcr2koUu0w2W0UlyQADCQoMBxZqeYwdScLYIkxRMBlvS/WLzFwwOs3ELnA hPCN3P6m1nzk/18J8tC1gCduUUM3FrdQQDz6W+gOnQR4RHttuGqj8Z8sead3RaxFNWA1 PTOaVhlssrT664ibTH69Z6aRVD6Ix1JHRMhimjvnMnGLnFGy19R7D2NHvwKdd7MT2RM4 PjtwuSt4zfR+6eaK/BJT/19Lu7bq6Ide62kw90v4+nH8T+JVbYYyNOGIvMqpQc6qSjr3 zq7Q== 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; bh=a3pwXUAdXwdR7kd+Opke3gS4I74otyMDz3C1+gtm+9s=; b=OFdTxOTF+VLnWPhrOecmJHh2SfXLPyQHaKCjbhZu1UOCz6gvCzxnbDJWmiHTwVBRwL wcGWRkulWF1NEb6bVA0GCCIH8Sb11c/8Z0Ze5qamYoPKh5zVXSIvpMXQx+WLpoJbOm3k JytygcT/xTvAeqLS68Pm8tNdmUafy07bLoFNjiZ6zjLMSDfqypIlGfVxw+Oc86LOk/s7 /i/VQHwtAv+I7+U0MVwg5yOPfm+qmGjW/mEDeUPKntYf43GsDA6x4tBqlZK2CEuZ2oh4 zLkrNyL3ZBDCu3xqYuVWB5lHXMO6Ddb+sjKj0XZXAakf/cSzqEPVG8gtnQsgkC1igeyI KQ6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=YirTg33k; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l6si285155pgg.592.2018.11.26.05.31.55; Mon, 26 Nov 2018 05:32:40 -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=@gmail.com header.s=20161025 header.b=YirTg33k; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726260AbeK0AY5 (ORCPT + 99 others); Mon, 26 Nov 2018 19:24:57 -0500 Received: from mail-wr1-f51.google.com ([209.85.221.51]:33918 "EHLO mail-wr1-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726176AbeK0AY5 (ORCPT ); Mon, 26 Nov 2018 19:24:57 -0500 Received: by mail-wr1-f51.google.com with SMTP id j2so18939416wrw.1 for ; Mon, 26 Nov 2018 05:30:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=a3pwXUAdXwdR7kd+Opke3gS4I74otyMDz3C1+gtm+9s=; b=YirTg33kSmi5ULNsjIqVGjIi0dtXm6hR6xo50Bm3l1Tk5/mo1ehOyVXAuaVboIVhHL s5VyxC6fqKVUUUxJPzKUfkXCa4vMm7Y0YAHGacG2DuPzwaPJ/vmRlmmSJkbQTHqq1usu AxfVZ0u3kcRKYg/99eDabDzlBZ6rH1Lz17yWWsNzP9FNq5CcXaVwjT1cw1/LXSpCm6CS QACP8dJmoZJTXuaXBdmwp7VL/Hnf2uYoIQaYi/en0MSbU2IaLzl0Zk1rHesoA93YTpCA bW9aeYhHYHU1tfHi/+2mQbNpXclVtXvGna4oOiBDCi9QOPjq4HiIepM9bdMyiWEAoQLO FUYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=a3pwXUAdXwdR7kd+Opke3gS4I74otyMDz3C1+gtm+9s=; b=hBJmIe8yo+4fRg14VcdtuHAyXR70resHnDpmD/BHLBKhxV4Oc9KhSoG87JbPrUxRbJ zgPncCqFp1yhdwCmVe1T1QJ+ZW78M+dbwIo7FbOuafc71Yer3q6iVJ0sGKv74OoJR5yz 5OXkb8vn2ty0oDJkr/UIVOOPme6dB5QyWWTVn1/gck3Stbhb1Q53EDYVd6FRdmkvVM1O 1P7jHAHj4N9tpUWt5p7NYNuavdvK5SbgN9wen5i2f4BCG+aGwyCDP4PCb25kG6f7QINi UkbmkALYsmTxjYF8YJ9xDgSLLu9NmuSwS9FnkmT7efO1eI01sqj26wpCOY57x817YXz7 OEtA== X-Gm-Message-State: AA+aEWagJb0FO/+w3fyqaUCcxEMxPz3bX9X2YKIEWn8cNjPae1N8j6NH AX89xYtCUSsWKR/hNWVRrpA= X-Received: by 2002:adf:e08c:: with SMTP id c12mr22370047wri.199.1543239046924; Mon, 26 Nov 2018 05:30:46 -0800 (PST) Received: from gmail.com (2E8B0CD5.catv.pool.telekom.hu. [46.139.12.213]) by smtp.gmail.com with ESMTPSA id e16sm354312wrn.72.2018.11.26.05.30.45 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 26 Nov 2018 05:30:46 -0800 (PST) Date: Mon, 26 Nov 2018 14:30:43 +0100 From: Ingo Molnar To: Thomas Gleixner Cc: Linus Torvalds , Linux List Kernel Mailing , the arch/x86 maintainers , Peter Zijlstra , Andrew Lutomirski , Jiri Kosina , thomas.lendacky@amd.com, Josh Poimboeuf , Andrea Arcangeli , David Woodhouse , Tim Chen , Andi Kleen , dave.hansen@intel.com, Casey Schaufler , "Mallick, Asit K" , "Van De Ven, Arjan" , jcm@redhat.com, longman9394@gmail.com, Greg KH , david.c.stewart@intel.com, Kees Cook Subject: Re: [patch V2 27/28] x86/speculation: Add seccomp Spectre v2 user space protection mode Message-ID: <20181126133043.GA108014@gmail.com> References: <20181125183328.318175777@linutronix.de> <20181125185006.051663132@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Thomas Gleixner wrote: > On Sun, 25 Nov 2018, Linus Torvalds wrote: > > > [ You forgot to fix your quilt setup.. ] > > Duh. Should have pinned that package. > > > On Sun, 25 Nov 2018, Thomas Gleixner wrote: > > > > > > The mitigation guide documents how STIPB works: > > > > > > Setting bit 1 (STIBP) of the IA32_SPEC_CTRL MSR on a logical processor > > > prevents the predicted targets of indirect branches on any logical > > > processor of that core from being controlled by software that executes > > > (or executed previously) on another logical processor of the same core. > > > > Can we please just fix this stupid lie? > > Well, it's not a lie. The above is correct, it just does not tell WHY this > works. Well, it's a "technically correct but misleading" phrase, which has much more of the effects of an actual "lie" than that of a true description of it. I.e. in terms of what effects it's likely going to have on readers not aware of the underlying mechanics it's much more correct to call it a "lie" than to call it "truth" - which I think is at the core of Linus's argument. > > Yes, Intel calls it "STIBP" and tries to make it out to be about the > > indirect branch predictor being per-SMT thread. > > > > But the reason it is unacceptable is apparently because in reality it > > just disables indirect branch prediction entirely. So yes, > > *technically* it's true that that limits indirect branch prediction > > to just a single SMT core, but in reality it is just a "go really > > slow" mode. > > Indeed. Just checked the documentation again, it's also not clear > whether IBPB is required if STIPB is in use. So I think we should clarify all this. Thanks, Ingo