Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4994284imu; Sun, 25 Nov 2018 14:29:56 -0800 (PST) X-Google-Smtp-Source: AFSGD/WIoww6d2/OgTuwMBBuoejwAlAteR51/0691dzlAbThfrnVlwWHdrubfGfzypq0rIH9xRS4 X-Received: by 2002:a17:902:2cc1:: with SMTP id n59-v6mr25242646plb.26.1543184995950; Sun, 25 Nov 2018 14:29:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543184995; cv=none; d=google.com; s=arc-20160816; b=HUvOibpvTVECzo/dl0K3pwLf73h1DCcbR18mAPIvhBX05vkWzSZol0ojin+WN0GEpA F66n7tOQY7zAtC4XGhT5CDd+ENhIJ0MMkPCz50GaBJDVyexnOcwYUmMmOwh8/rHxd7Qy rPdN/cR8ojRQL/h9OHrSoYtWnaX/txqoCMqNbk79gwflEW6p1fInhx08F3gFSInT6oPQ wYGuNFbXu1Ly/6uUneu1QMEEf89DJ1IEQpiu4GkncXbbb8NpzKT+RlfaI35CkugOc0WJ WE9OLAzGVZRUyYsZmmCpcye0IKAASwDbA0ahohN0P0csgyggB35kFibjDLO8cOfRZnnR Lkxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=xs53mGP6mIfWWUMkCP5q1okhsB4OAjjBwgjN4HBiJzI=; b=jJO6nCUNY+E6KwnRXaGHehP93eTFN0iDoCWk4haCNHovAmQbXMbtq4GbKZEnuGtzZQ wApmXPC1MM6Xqd0lM+yseN7mHHPsETsR6T43ppGwXUTDBWfyNO9nahCAPyu3G3nm/HqC PxLF7xbuQBrTS9WhFu+P/8ryHmgaScC3q7LhZ/dSbEbVdBmKH8HQkPGoQWS+cqNcugc8 sDI65+7InEAzMNPOAh1kirKNWuRoShW1dPYeCKXRZmPJdyGgpykJEEFDyjJ1tv4Ksia/ jzXTFt+bPtI9MhFSZ3SnMCWJhJ92Y6VYIiUwb4IKKFy0Hn2jwbkiZ8a5FG8Cr+w0hBZ3 n1tw== 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 n3si60585949pgf.374.2018.11.25.14.29.40; Sun, 25 Nov 2018 14:29:55 -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 S1726079AbeKZJVN (ORCPT + 99 others); Mon, 26 Nov 2018 04:21:13 -0500 Received: from Galois.linutronix.de ([146.0.238.70]:53308 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726021AbeKZJVN (ORCPT ); Mon, 26 Nov 2018 04:21:13 -0500 Received: from p4fea46ac.dip0.t-ipconnect.de ([79.234.70.172] helo=nanos) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1gR2tg-0005hD-D5; Sun, 25 Nov 2018 23:29:00 +0100 Date: Sun, 25 Nov 2018 23:28:59 +0100 (CET) From: Thomas Gleixner To: Linus Torvalds cc: 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 In-Reply-To: Message-ID: References: <20181125183328.318175777@linutronix.de> <20181125185006.051663132@linutronix.de> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. > 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. Thanks, tglx