Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp8505402imu; Tue, 4 Dec 2018 09:22:10 -0800 (PST) X-Google-Smtp-Source: AFSGD/WspJzy3bw16rsCuk4I18bv8svGz1i4Sqw6KQdC+gk+IyY6h9HMZg7Yst5VLnxbSAr2aPvF X-Received: by 2002:a17:902:b7c7:: with SMTP id v7mr20869510plz.75.1543944130742; Tue, 04 Dec 2018 09:22:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543944130; cv=none; d=google.com; s=arc-20160816; b=jKOSbqa9/Ozm9XkyMoBQwGClmSFYB6fmyOCF66ZEN1pd07nhYJzG+gDD4r1Nl1owW/ 9EgTPV3dTG7D7iyTY++rrHRQQsiXbn0AkCFRcNtv6cLauvYtmJ34mmnot7jiOioIv0q7 sQpDnVNPVy17mUbouu1xnjgpoSFxD6pz26dv6tv9S41oFGZPWaqeFBRmkWqDzOVH3/Y2 hWVPHR3AV8D2NNAENq8s2ggNS3oLXFZaRp/1jKIEd/owD7+fNdFYdH5KGipH0/EITlfr S4EeH2CNDeR8HQbXrKLPi+L5j/F478qcwz5VR347fP8n7Mjxz33b9DHRjdgKnt5Dj/Gu dSfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=frCayHFgjLGgzvQSrHOWPLeGXNjD4qzP/3lgGoFKbUU=; b=yQofWmsBjDS9lQWXhT+bDuEey5XUghqWs+5lEkOY9BoqzZa00N/lXzot00UKuae2Ns RwGuZUH0GBzfMSOMaRqY/3bHi2vKYdEBruwix6ybLowXotNEAoudyDvlXWbOkjSD0uTt X1MGzqTLDuqANJjAa+gb8+y0frPbBRMkF+NCPsxteAFuyPJsErC4iizDql5SiGCwPzPa 82bUpsWeA6KQGM0kiwDke/JnqDlSqHVQ4rHMfMgReqF1wulXKKXFL2AG7nU6Iw7Vz5H8 Qz53sksuqU6yJWi+SG+lt/MTzUkOJaQTyf1tcEDuWcxIq3xFMPwC/spVaIrTSQbQ/T4w EhLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=PTQoG4aT; 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 11si16048206pgy.408.2018.12.04.09.21.54; Tue, 04 Dec 2018 09:22:10 -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=pass header.i=@linux-foundation.org header.s=google header.b=PTQoG4aT; 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 S1727122AbeLDRVO (ORCPT + 99 others); Tue, 4 Dec 2018 12:21:14 -0500 Received: from mail-lf1-f51.google.com ([209.85.167.51]:44719 "EHLO mail-lf1-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726226AbeLDRVN (ORCPT ); Tue, 4 Dec 2018 12:21:13 -0500 Received: by mail-lf1-f51.google.com with SMTP id z13so12534908lfe.11 for ; Tue, 04 Dec 2018 09:21:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=frCayHFgjLGgzvQSrHOWPLeGXNjD4qzP/3lgGoFKbUU=; b=PTQoG4aT5LSo/nLg+JDEihosV9Ua9QcgnHAClv1InF4DwQtU2bzaUzal5aPPE3r7qh O9TuV26L4sH6qd3t7mxmjH248dlSkxWYAiPC2LHe6txs4fHXpmNDbWLZdPfFp45lSesz LH3Ehk5+yJIvhQXTnmOFE2nNYTNl4wZzb88Mo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=frCayHFgjLGgzvQSrHOWPLeGXNjD4qzP/3lgGoFKbUU=; b=ptRmkycaju4mNdYmzsCtZET3t3B6nQX8a4ycMKDCO+mQQxXB9JM1L2aWYaZIogNsWe AesBTlmPTrJBT1PWBWpUh23/seDEF6Gvfq1XcOt0AMNZBJseOlOlWdtX1g/NFI2mmyj9 y1PFlWONbngoQ9l8/hV9nbL+wP7c08PvdPTx+IEQKKG4Tau5vkC6UklboFfpDjSww9cK aYKbtJPapkD4dSBN9DNMPOzOfcnTuw7xe7oAqOk3dGG+sj+cWTwAxjaXkbgEUH4GIh6k ApU7I4C0WB9VhSG7OZT+roTp3+l1VIUaaFXg+came5hI3YJ3cq+xC5ec4Y2NXYTo2AcL eJ/A== X-Gm-Message-State: AA+aEWZUivb5wynHO5vGQ777NXN9G4ti0XQ0bgCFPTYXz1nFVGDmmb0X q7HWa2dggNEwHbmHIV4pJ2Z2mH+akA8= X-Received: by 2002:a19:8f45:: with SMTP id r66mr13310812lfd.9.1543944071130; Tue, 04 Dec 2018 09:21:11 -0800 (PST) Received: from mail-lf1-f46.google.com (mail-lf1-f46.google.com. [209.85.167.46]) by smtp.gmail.com with ESMTPSA id e82sm3100338lfg.34.2018.12.04.09.21.09 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 04 Dec 2018 09:21:09 -0800 (PST) Received: by mail-lf1-f46.google.com with SMTP id p86so12557964lfg.5 for ; Tue, 04 Dec 2018 09:21:09 -0800 (PST) X-Received: by 2002:a19:4287:: with SMTP id p129mr12958203lfa.135.1543944068525; Tue, 04 Dec 2018 09:21:08 -0800 (PST) MIME-Version: 1.0 References: <20181125183328.318175777@linutronix.de> <20181125185006.051663132@linutronix.de> In-Reply-To: From: Linus Torvalds Date: Tue, 4 Dec 2018 09:20:52 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [patch V2 27/28] x86/speculation: Add seccomp Spectre v2 user space protection mode To: Tim Chen Cc: Thomas Gleixner , Linux List Kernel Mailing , "the arch/x86 maintainers" , Peter Zijlstra , Andrew Lutomirski , Jiri Kosina , thomas.lendacky@amd.com, Josh Poimboeuf , Andrea Arcangeli , David Woodhouse , 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 , jason.w.brandt@intel.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Dec 3, 2018 at 5:38 PM Tim Chen wrote: > > To make the usage of STIBP and its working principles clear, > here are some additional explanations of STIBP from our Intel > HW architects. This should also help answer some of the questions > from Thomas and others on STIBP's usages with IBPB and IBRS. > > Thanks. > > Tim > > --- > > STIBP > ^^^^^ > Implementations of STIBP on existing Core-family processors (where STIBP > functionality was added through a microcode update) work by disabling > branch predictors that both: > > 1. Contain indirect branch predictions for both hardware threads, and > 2. Do not contain a dedicated thread ID bit Honestly, it still feels entirely misguided to me. The above is not STIBP. It's just "disable IB". There's nothing "ST" about it. So on processors where there is no thread ID bit (or per-thread predictors), Intel simply SHOULD NOT EXPOSE this at all. As it is, I refuse to call this shit "STIBP", because on current CPU's that's simply a lie. Being "technically correct" is not an excuse. It's just lying. I would really hope that we restrict the lying to politicians, and not do it in technical documentation. Linus