Received: by 10.223.176.46 with SMTP id f43csp947367wra; Fri, 26 Jan 2018 09:19:52 -0800 (PST) X-Google-Smtp-Source: AH8x2255DBj53jM6sIUZXNlr10tIwcj/zVEgbJoUEtd5wrTqpN04+hjftzooURavV6qD52GMdTWj X-Received: by 10.101.64.139 with SMTP id t11mr15687414pgp.162.1516987192851; Fri, 26 Jan 2018 09:19:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516987192; cv=none; d=google.com; s=arc-20160816; b=MVK+K5YqNtqdpsSU3tnr8YablDSTxygtFLmNkt5fdetIMyOPUQRmB/g/TUvORj5u1F jjO5ADPRW2AwQfYtp0nahLwfUTO1yE8WTjn6+LZcnLoPmWnYmVsOaf+Frm5WKkHyrxRQ MRgkflK/qoZauAf2xkWRKNCFdPx9DMxfKjE94Dns5BBd26rmNsajct29fkg1+FxqVETO Q+LineSYxrVCNnNWAPodoY2JAbU4sRWMSbk8R8kwbvTFfnvXlRTiV//Mczai2N1Vi1zS 0eNhHJH/r9Nz2DimyrHTqPmeebAO+W04e1hRe3TSypsjjog0IFItArta+PxGrQH0uVxJ GbaQ== 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 :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=HotFzytKH1QmXoDvZYqvACFg7iIX6uR6TgVTsmGHpeg=; b=yKSz9CIVXz8nLloBmOhkLWLakd3g1SxJslbysJM7VAqHVbiEo193cQMNIMVOsw8Lcb 3k5u2zz+qlCl+hZ/HCKdxpHhbxVvLmNWhccBzMEPg1yJFquvevzztg5CpFST4X1bSnlQ K1anW8583mxwUMnN8bLgUM9KcAhX1F5r6uiyBQL9PdvmbneQ80xBcaWfWCJSiVrQCNTU St2d8Pm0KzD9vgvmM2SPX9t013nSGhxSCyQEC5S1+2fy6aLiozaVqt7b08SRm+BcYO/i 5cAUTSPGnU3A7Qcw1p+fHl6dN7zdQNxtQ5IT8qoZW9vKnmYV5fC/oJZ6iorAGAkq6a50 IV6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=U0UOzKIk; 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 q14-v6si3041432pls.355.2018.01.26.09.19.37; Fri, 26 Jan 2018 09:19:52 -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=U0UOzKIk; 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 S1751508AbeAZRTM (ORCPT + 99 others); Fri, 26 Jan 2018 12:19:12 -0500 Received: from mail-it0-f50.google.com ([209.85.214.50]:50240 "EHLO mail-it0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751112AbeAZRTL (ORCPT ); Fri, 26 Jan 2018 12:19:11 -0500 Received: by mail-it0-f50.google.com with SMTP id x128so1334254ite.0; Fri, 26 Jan 2018 09:19:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=HotFzytKH1QmXoDvZYqvACFg7iIX6uR6TgVTsmGHpeg=; b=U0UOzKIkS8aqtd03OSW0AqQ1WtRvybsDZOk3UzwaHsCwEy7SIZRpeuFF9UyNSslDTl 1hIBLbrY4l5eEP9y7yMbmhlBe7dl9JVtWJm2Sj/5X5xDu3jmCY7qNletMEok1T94toew KFaITHzyUKxkKy1HSNMUCSO80+EvzBdDHVv1wIt0VeptPdu27J4+8ATzuixu2NkwSUCv rJy2PXcySTOhqsedxDsiqBZqmqkuddbRJC5eXQJ6wnYgfx0+m7kpkUDMpX6o611/xZgJ /UAEkNWONumdzYfovx/TEIy1tkS2OFU6Jwglet212mR9zrVW24aDtYovx0EvuRF5/Xge iE5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=HotFzytKH1QmXoDvZYqvACFg7iIX6uR6TgVTsmGHpeg=; b=AQ3uj/+JSu67H+7TUYu1jw3mMwCGJPLgELtt1H3KV7nSlC1nwFHXJ5RQO36euRWTxo dYUVqMOOZa93yEDFhX7iTfeFQ391I1lzBbiuug627Yyymrsf3HGi6gTZzk2Anu9AJNkc f9jv6FAWwrpWIHHoFJG99fnGQRdzpU+KhhCl3E+iqDsNdV3HsLjV6M3QSP3GgdVwHVDo H1r634EBoZEO0oSh/LVIu7vMOMS1LrbrAZBZ9kSt1U4NK6NGSVFoGthIA5PNkneaImIO 88RljxxkQ94m+Z2Hhulry51zS4qzkksjwQ3Z8/mbOd5DaNnErxInrnWVy438fsyhIidI Vdow== X-Gm-Message-State: AKwxytfQ+DFLLn+YgHTrcs52NItmFjZPF8f8jhyXgBpPjHEUPn5zqgb7 IaHREF6MTP8C+doFnPHupOJ7GARmt6amUA5xNJY= X-Received: by 10.36.47.5 with SMTP id j5mr16850780itj.123.1516987150084; Fri, 26 Jan 2018 09:19:10 -0800 (PST) MIME-Version: 1.0 Received: by 10.107.59.196 with HTTP; Fri, 26 Jan 2018 09:19:09 -0800 (PST) In-Reply-To: <1516957886.30244.161.camel@infradead.org> References: <7c0b0879-3448-43e4-8380-4708fc787113@default> <50c5d627-8975-184b-b50f-4cc02c5816c5@intel.com> <1516957886.30244.161.camel@infradead.org> From: Linus Torvalds Date: Fri, 26 Jan 2018 09:19:09 -0800 X-Google-Sender-Auth: H0yNY1lbfoain1YWVePKM_JFofg Message-ID: Subject: Re: [RFC 09/10] x86/enter: Create macros to restrict/unrestrict Indirect Branch Speculation To: David Woodhouse Cc: Dave Hansen , Liran Alon , Laura Abbott , Andrew Lutomirski , Janakarajan Natarajan , Borislav Petkov , "Mallick, Asit K" , =?UTF-8?B?UmFkaW0gS3LEjW3DocWZ?= , KarimAllah Ahmed , Peter Anvin , Jun Nakajima , Ingo Molnar , "the arch/x86 maintainers" , Ashok Raj , "Van De Ven, Arjan" , Tim Chen , Paolo Bonzini , Andi Kleen , Linux Kernel Mailing List , Peter Zijlstra , Thomas Gleixner , Greg Kroah-Hartman , Masami Hiramatsu , Arjan van de Ven , Tom Lendacky , Dan Williams , Joerg Roedel , Andrea Arcangeli , KVM list 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 Fri, Jan 26, 2018 at 1:11 AM, David Woodhouse wrote: > > Do we need to look again at the fact that we've disabled the RSB- > stuffing for SMEP? Absolutely. SMEP helps make people a lot less worried about things, but it doesn't fix the "BTB only contains partial addresses" case. But did we do that "disable stuffing with SMEP"? I'm not seeing it. In my tree, it's only conditional on X86_FEATURE_RETPOLINE. Linus