Received: by 10.223.176.46 with SMTP id f43csp2441726wra; Thu, 25 Jan 2018 09:54:25 -0800 (PST) X-Google-Smtp-Source: AH8x226JldglM8OG9skGhXYC9xnaySc0xYxY9kZ86tD1LVrgZoo0aWSUV3vHd2A9uHThDvv56WBB X-Received: by 2002:a17:902:8a89:: with SMTP id p9-v6mr11713888plo.397.1516902865813; Thu, 25 Jan 2018 09:54:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516902865; cv=none; d=google.com; s=arc-20160816; b=zSwCuvetEzcXPIoF9lqMkuCkd1iKFG9YFwq1nOkUI292fNRci+G4LBKyP3G/kuc2a9 OqKczWKFPSMabChbXAGZlDsHXZW8Ewp+TDFeO5JWNYIxAekZu87lZNuoAzdU4VmWwySi jG6uMccCfWpjVWlCvIAB95Q+4PiGWQkqpkxHZhDcfnIbpo/C2rFwkttudk+sTEuzlQTH XI4SzMBaD+nVxQ5fmMz8qJXbhE63hm6AkV/xWr0zLDRWQVSd+3qaNAq0qBJztylZLSWK uNEfjf42LfpjoCqGgfbG+NainspvKUWAHmR1r5TQuWBtkv3jc+W1IhUtUJ0j6CcyG7zZ iOXA== 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=V4gtJSl/u7hCxrLY9HqLhirJwRptiH/LaH6KMfIoDE8=; b=oeKFjAj0M+7FMWkSciFIJ44Do/eJLioXGJDBJuOWVN3dgt+3c4Qm6L06POT/Te2pjK gpZnAN52GpYF2jdDDOUbA0w1GnX/KMDjtLcCUjXmnsQvCorbvsRomtcB0/iJdBUWsUoE 4oibJUJeP/Er1gfgHFEYDwpV/uCDigemzbyDZ7S65V/hclRdkPj1r3seWXdytQERnl6k M3XYU9l7R8oqWQ2PLKYHVLjAdEakhYEZT/aWkRXvt6VCHgLjpOdfmNAiu3PWFUGs0vpu fvTUkbNkH9zaRtvEOuyOjJ0QhtBPTc5lzXra2c/qTHUwuiKHuCq5mWX/ow7gThuqgsKB agng== 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 101-v6si2332830ple.263.2018.01.25.09.54.11; Thu, 25 Jan 2018 09:54:25 -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 S1751204AbeAYRxr (ORCPT + 99 others); Thu, 25 Jan 2018 12:53:47 -0500 Received: from mail.skyhub.de ([5.9.137.197]:50952 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751086AbeAYRxq (ORCPT ); Thu, 25 Jan 2018 12:53:46 -0500 X-Virus-Scanned: Nedap ESD1 at mail.skyhub.de Received: from mail.skyhub.de ([127.0.0.1]) by localhost (blast.alien8.de [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id aysXz-KQUuv0; Thu, 25 Jan 2018 18:53:45 +0100 (CET) Received: from pd.tnic (p200300EC2BD0EE0024194793E6CFFC7A.dip0.t-ipconnect.de [IPv6:2003:ec:2bd0:ee00:2419:4793:e6cf:fc7a]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id CDB1B1EC030F; Thu, 25 Jan 2018 18:53:44 +0100 (CET) Date: Thu, 25 Jan 2018 18:53:34 +0100 From: Borislav Petkov To: David Woodhouse Cc: Josh Poimboeuf , 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: <20180125175334.7wlin4ftnqkq2fil@pd.tnic> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1516899639.30244.145.camel@infradead.org> User-Agent: NeoMutt/20170609 (1.8.3) 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 05:00:39PM +0000, David Woodhouse wrote: > 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... So if it were only because of the KABI, I would never sent a mail on the list but would've done it in our tress and forgotten about it. [ And just to set one thing straight: I'm not the right person to complain to about KABI. ] Now, I happen to think that those macros could be simplified regardless. And I don't see *anything* wrong with that. Like making them more readable, simpler, etc, etc. That's the only reason why I raised the issue here. I mentioned the KABI because I didn't want to leave anything out from the whole picture. 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! -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.