Received: by 10.223.176.46 with SMTP id f43csp2395118wra; Thu, 25 Jan 2018 09:11:23 -0800 (PST) X-Google-Smtp-Source: AH8x2268GVc+TShhrA7TvdvJCnxcjbKizVVVhGUACvegTPnQ/ReWSwLFnbwZehgdOMICubRpmwQa X-Received: by 2002:a17:902:40a:: with SMTP id 10-v6mr11743061ple.88.1516900283607; Thu, 25 Jan 2018 09:11:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516900283; cv=none; d=google.com; s=arc-20160816; b=YcastiVu4xwbPGPyCGr3RMuCprSeZB/LgOVqEc3YSfWjp7XvTcnp/cYnUVE6/4wHLU cPGuAy0vCMm/1azBo86SspbNZSwSaFLks+3tdM+jcLW90sZ7dWzSvPlUZlUyGv+lOkFa LF8LqYm4b18mAfCULgSEORzbvCGnKkEiWXsixXxkGIh2zlNp0FvboqUmqPpztP/XjDYy FlQBMgscRkleFkKULzeEpdV+47XSNegkU+tejUIjoiP9ve+3S2/Q3hxrC94NWPYC+jsr Cj52ftCF79UAhbfrL8JKAgNxhegYb53X4gKqVg7RMU+l52kptNFvs2IhcOvncDCTpflU yXfw== 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 :arc-authentication-results; bh=JVQ4WE+nudv7p8XpRgPHdP0Mena384JP8gCoB0DRTb8=; b=dZ2pFFfztgSM3XH/Ei6R1TOcIagj7BBW/NV+7wD+nAIOKYoeh/JBh9Cg3l2mAOvL4t ImAPARjOSlYAwTSTdtDIQdbaTWutaBFziBJcY4AMCEWjPcKD1hzgQgBe3q12nocWM9T4 gTaQyk6OTsAgz2ee3vZnOBMB1Ab8GDLFnkQoMop7dIJzgZkH29M5HgjnXtoLPGBeKxio QcaYsdZi/KvBdN50dlyykIcLsxutEm3Pf+wA9dYUB4Q8QsBn+gxfJWwJJCLEfY821d9o fMvs8LcbnXmOKhDT1qDhyrdOs/zKVTdmE0GMARYlcJyF9/tnNqNJT8ELgDdfU4G84ORj 26vw== 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 e64si4841687pfg.409.2018.01.25.09.11.09; Thu, 25 Jan 2018 09:11:23 -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 S1751342AbeAYRKp (ORCPT + 99 others); Thu, 25 Jan 2018 12:10:45 -0500 Received: from Galois.linutronix.de ([146.0.238.70]:35718 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750994AbeAYRKn (ORCPT ); Thu, 25 Jan 2018 12:10:43 -0500 Received: from hsi-kbw-5-158-153-52.hsi19.kabel-badenwuerttemberg.de ([5.158.153.52] helo=nanos) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1eekzy-0004gm-TT; Thu, 25 Jan 2018 18:07:39 +0100 Date: Thu, 25 Jan 2018 18:10:20 +0100 (CET) From: Thomas Gleixner To: David Woodhouse cc: Josh Poimboeuf , 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, 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 In-Reply-To: <1516899639.30244.145.camel@infradead.org> Message-ID: References: <1515755487-8524-1-git-send-email-dwmw@amazon.co.uk> <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> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: multipart/mixed; BOUNDARY="8323329-292357867-1516900220=:2020" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323329-292357867-1516900220=:2020 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT On Thu, 25 Jan 2018, David Woodhouse wrote: > On Thu, 2018-01-25 at 10:56 -0600, Josh Poimboeuf wrote: > > On Thu, Jan 25, 2018 at 04:03:18PM +0000, David Woodhouse wrote: > > > On Thu, 2018-01-25 at 16:51 +0100, Borislav Petkov wrote: > > > >  > > > > > And the seg fault is objtool's way of telling you you need a > > > > > ANNOTATE_NOSPEC_ALTERNATIVE above the alternative ;-) > > > >  > > > > Except that it blew up when I did this which doesn't have ALTERNATIVE > > > > (it's the diff I saved :-)) > > >  > > > Yeah, ANNOTATE_NOSPEC_ALTERNATIVE just tells objtool "don't look at the > > > alternative; you're not going to like it". > > >  > > > If you start putting a __fill_rsb() function out of line somewhere and > > > only *calling* it from alternatives, then objtool is going to shit > > > itself when it sees that function, regardless. > > > > Right, if you *really* want it always inline, the short term solution is > > to just patch it in with X86_FEATURE_ALWAYS. > > And the whole problem here is that patching it in with alternatives is > painful on kernels < 4.1 because back then, we didn't cope with > oldinstr and altinstr being different lengths. > > And they don't want to fix *that* because kABI... > > I just stopped caring. Rightfully so. KABI has often enough proven to be complete garbage. If people still insist on it, it's _their_ problem not ours. Thanks, tglx --8323329-292357867-1516900220=:2020--