Received: by 10.223.176.46 with SMTP id f43csp2486378wra; Thu, 25 Jan 2018 10:33:48 -0800 (PST) X-Google-Smtp-Source: AH8x225w+0H4NVyrINklrFR5gZz4BaPpbj9rEM5oCYO2dk4OZkKrDXg3m8+8HijTuPwvSvT+d+LE X-Received: by 2002:a17:902:678e:: with SMTP id g14-v6mr11763785plk.309.1516905228178; Thu, 25 Jan 2018 10:33:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516905228; cv=none; d=google.com; s=arc-20160816; b=vLcCJvOWrj/h0DHCUpT/SLByzXXdQy32o8tkqHgud65LbeCLm9lmMACgQly36BCsmQ aFRlopt1uMcXOAObDASkuF4s66Fe1zxi3q3CNeV4fgsXmMyHQ2tYb6Dc/k7Ra9eioMi5 pgEeHbVHgk1WPM51vz19F99CrN+ymz1be5OcnZQdCv4xOWWHmjeUL/m63aAONUoKKNeQ //+0RVbaO/lHOQ8JL5N4ZvlWssayIkRjAHA8pjDJXiKGXrj2XmMkKaE1JyugcL6fRICB S3vBVywA+m7SZNoMmeAyOQAVT0qRv4ilJyzAZum5eAAGXJP70M6jaX1Kab74ACnWmKqJ nzag== 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=/KWEUJ3o4UHhu5/bfkiGSca3KQhK6qj/BW9nrdtjAEE=; b=Vwrqhb/SsBV9X+NhvD1CL+btgLCgQRqBq8r2GcsNykAZD3ROvQQWML1AiZ4r4WZbC+ BnikF/Mn8IFA+A9oz/0REo3ulHbZ4nK/19JWD4q75gX6RROUXrNB37WxUDdwLxZPLA4y tC/rYaVx44I4hWvjmcQSxDrlHYtHyqaYVQbEDsx8q2WC7lzDC44ABznBP9RUCJcweT0F zTSnut40ApPGio+siDhGaMSJUwZFOictAEVCDVLZ6/5kWkt4z4A8F2uTcMqTs2RIR3VI 6OxjVLttZE/JWl1xJFY38JP7XzXdL72U/lXjONc8rnkoBp0UespA6xC2XfqCCS20iSDj 9jpA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o3-v6si1856886pld.605.2018.01.25.10.33.33; Thu, 25 Jan 2018 10:33:48 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751224AbeAYSce (ORCPT + 99 others); Thu, 25 Jan 2018 13:32:34 -0500 Received: from mx1.redhat.com ([209.132.183.28]:58390 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750994AbeAYScd (ORCPT ); Thu, 25 Jan 2018 13:32:33 -0500 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 3BDE74B9E; Thu, 25 Jan 2018 18:32:33 +0000 (UTC) Received: from treble (ovpn-124-179.rdu2.redhat.com [10.10.124.179]) by smtp.corp.redhat.com (Postfix) with SMTP id 0C5496046C; Thu, 25 Jan 2018 18:32:28 +0000 (UTC) Date: Thu, 25 Jan 2018 12:32:28 -0600 From: Josh Poimboeuf To: David Woodhouse Cc: Borislav Petkov , tim.c.chen@linux.intel.com, pjt@google.com, jikos@kernel.org, gregkh@linux-foundation.org, dave.hansen@intel.com, mingo@kernel.org, riel@redhat.com, luto@amacapital.net, torvalds@linux-foundation.org, ak@linux.intel.com, keescook@google.com, peterz@infradead.org, tglx@linutronix.de, hpa@zytor.com, linux-kernel@vger.kernel.org, linux-tip-commits@vger.kernel.org Subject: Re: [tip:x86/pti] x86/retpoline: Fill return stack buffer on vmexit Message-ID: <20180125183228.phfhv2klm7nrh7sq@treble> References: <20180125120743.ey32gvl5mjam4r2s@pd.tnic> <1516882849.30244.94.camel@infradead.org> <20180125124554.vdx7rrnfrxrzl2ng@pd.tnic> <20180125151024.bidjr26r667vs7h5@treble> <20180125155110.mw655b7fwgm7qqc7@pd.tnic> <1516896198.30244.133.camel@infradead.org> <20180125165646.ytc4upthpaqtwi45@treble> <1516899639.30244.145.camel@infradead.org> <20180125175334.7wlin4ftnqkq2fil@pd.tnic> <1516903463.30244.148.camel@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1516903463.30244.148.camel@infradead.org> User-Agent: Mutt/1.6.0.1 (2016-04-01) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.27]); Thu, 25 Jan 2018 18:32:33 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 25, 2018 at 06:04:23PM +0000, David Woodhouse wrote: > On Thu, 2018-01-25 at 18:53 +0100, Borislav Petkov wrote: > > > > So forget the KABI angle and think: simpler, cleaner, more readable > > macros. > > > > Oh, and David, if while doing so I manage to add the alignment, then > > *that* is even better. > > > > Win-win-effing-win situation! > > Yep, I'll buy that. But first we need Josh to work out what he's having > for lunch. This is what I've been eating every day: https://www.urbandictionary.com/define.php?term=Shit%20Sandwich :-) > Although just another marker to tell objtool "ignore this whole > function" might be sufficient to allow us to have an out-of-line RSB- > stuffing function. If the function is only in arch/x86/lib/retpoline.S, we can just tell objtool to ignore the entire file for now, as the file has no useful information anyway (until I get around to adding ORC hints to it). Just add OBJECT_FILES_NON_STANDARD_retpoline.o :=y to the Makefile. -- Josh