Received: by 10.223.176.46 with SMTP id f43csp988777wra; Fri, 26 Jan 2018 09:59:51 -0800 (PST) X-Google-Smtp-Source: AH8x227GOYLTHEbayqabausK5mo7jx5aGtAWTgRK322+wP/j8oabgUjC61c7DX2kHyBKodStUU+g X-Received: by 10.99.150.25 with SMTP id c25mr13536558pge.136.1516989591489; Fri, 26 Jan 2018 09:59:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516989591; cv=none; d=google.com; s=arc-20160816; b=UEa8dSjhFc5hOru2QSj4iVv4RUxBP1c3xA4WVfvzPh1/agIhKaDtcrsIQr9AV0Afg9 xEbHG4lsJyMzCogoimF0Pb1kS0b3aWzJoXu+03Pw3vXbXlaGNI7wFh8qhCU8vbFaStzl eI8Glw+ii5hjUz1flqOhXhjs6Nusf5rQUP6WtLn9kpLWcOjhdWmXmmFOnRovDxOr6sgo fF8d79g/sbpqFLqFFr3o4Mv4PmIYEmZldnUExWKeisOemVOQjQKk85FjVyknmfNl/Kdf e7zPvuaG3TLUDhXRQyuAWR4TlDnI6H1mOek7wv5KykVrYbRnN/nMXionmudU2YjsiLH7 NnXw== 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:arc-authentication-results; bh=7hXr9Y62FdgpuznM55OkLVWUmDsLki4A9crw6G/cQJY=; b=vKcA6mjQ4+GGvsV5CaZLVvGCOL6hXDNgtbMfg9eP1eZkxmbi8xl7CPiiktODGOkRgs LOhs62XITXKQrV4wACOF6I4mV9SgYs2dkuK6tvyT4+LTCRffufRwvAp8wr1zkS77ab3i /rJ1p0lNd5CPWkW0xEFE4hgMJ/59Bcs5FfLI1E3q6yCEQ0GtnNI7rRetRUqRxKS4sItc bSitL0Rm/AWu3x/KtaeM+jytrmiyvloNS0/N3l3RuZFkMLMBQTUp3l/cuhIRLeM4LNY+ QpkwEj3Yxn5WFd/Udrlipq4QUTCus950lndIuYZCNaleqlaxUIytqQM4yau5bxJY8Duu pBqA== 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 91-v6si4020499plf.541.2018.01.26.09.59.36; Fri, 26 Jan 2018 09:59:51 -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 S1751812AbeAZR7M (ORCPT + 99 others); Fri, 26 Jan 2018 12:59:12 -0500 Received: from mga01.intel.com ([192.55.52.88]:7108 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750864AbeAZR7L (ORCPT ); Fri, 26 Jan 2018 12:59:11 -0500 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 Jan 2018 09:59:10 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,417,1511856000"; d="scan'208";a="13388641" Received: from tassilo.jf.intel.com (HELO tassilo.localdomain) ([10.7.201.35]) by fmsmga008.fm.intel.com with ESMTP; 26 Jan 2018 09:59:10 -0800 Received: by tassilo.localdomain (Postfix, from userid 1000) id 2A605300D7A; Fri, 26 Jan 2018 09:59:01 -0800 (PST) Date: Fri, 26 Jan 2018 09:59:01 -0800 From: Andi Kleen To: Linus Torvalds Cc: David Woodhouse , Dave Hansen , Liran Alon , Laura Abbott , Andrew Lutomirski , Janakarajan Natarajan , Borislav Petkov , "Mallick, Asit K" , Radim =?utf-8?B?S3LEjW3DocWZ?= , KarimAllah Ahmed , Peter Anvin , Jun Nakajima , Ingo Molnar , the arch/x86 maintainers , Ashok Raj , "Van De Ven, Arjan" , Tim Chen , Paolo Bonzini , 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 Subject: Re: [RFC 09/10] x86/enter: Create macros to restrict/unrestrict Indirect Branch Speculation Message-ID: <20180126175901.GL26209@tassilo.jf.intel.com> References: <7c0b0879-3448-43e4-8380-4708fc787113@default> <50c5d627-8975-184b-b50f-4cc02c5816c5@intel.com> <1516957886.30244.161.camel@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.1 (2017-09-22) 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 09:19:09AM -0800, Linus Torvalds wrote: > 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. For Skylake we need RSB stuffing even with SMEP to avoid falling back to the BTB on underflow. It's also always needed with virtualization. -Andi