Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp8354281pxb; Fri, 19 Feb 2021 14:08:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJxvXWnXQm/hT3ww9gq2uq+uEDQdR7DUjQFcBMlOHSOPxxp44pdJcOY0F29rsYWf4IEqJqBd X-Received: by 2002:a17:906:718a:: with SMTP id h10mr7770876ejk.237.1613772524193; Fri, 19 Feb 2021 14:08:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613772524; cv=none; d=google.com; s=arc-20160816; b=RzmOkAt+sjkYf30wQ2EObHJv5uJMYjnnarCEgMGcD6rcnSBw7wI0NCPTc/D2RqFhdt +EFiCxmnva1q7G3tA+8yCaqRHZHmz6AgRsE2S8K2fAIZ7SfBIS74hyHr6glQePzc/C0+ C0adnRsytoj31fFDF29Gryq1yFrf8VlWMg59WVrK3IUq41b/gvP857SJ6Li/QvkjZvd3 q4wpTCWBvHpLlEFzGIZMJnrbAi01luSO57ffuwPTlp5pWTfRrFwa18DggYvi2VYr3dpq HzF3kNZJ4mllffET4Ny3Ap8YPKl/3pbSaQEWmrmmLLkSUV5ekAQSIoHID2vXhBvNZkG3 E9+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=g0Jvmf6LJ034kDLDkJfT+bSPIXgjmaXr0o0s3eOCRhM=; b=n2tfCM4xz76Js+GYf4FgJCeW2jL3twMKyFfIdZD1NWR48LLHHmrtz/g1LJlgmbQHvI MRDfPKKnREPYQOSaX+/2QsTcv2EXcjBh4HPfPifiDs77VSaEhL6TVMult0HKE1DFL0Tg 3/afCJcvGTYGZV55GZzF5VWeHudm+evAshJgjRfpDP/ACXu21CPTkf3ft4ZZEz+3Aqau tN7UCjOwkXhKYdRAiGmL0Xpts9pkQADh6+cSN3IDyXW3fqZyUXGk/XqjP5N4O5pLbsRG qZZLo5BeGRceAwLIXMxdXUQpfGJ7ygua28wuc79covUyXWvEYVaxAFBD0nFGUhfyYLNz t/Ag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=RCVbswE4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q3si7726654ejb.681.2021.02.19.14.08.19; Fri, 19 Feb 2021 14:08:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=RCVbswE4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230142AbhBSWHq (ORCPT + 99 others); Fri, 19 Feb 2021 17:07:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56536 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229983AbhBSWHk (ORCPT ); Fri, 19 Feb 2021 17:07:40 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E20CEC061574 for ; Fri, 19 Feb 2021 14:06:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=g0Jvmf6LJ034kDLDkJfT+bSPIXgjmaXr0o0s3eOCRhM=; b=RCVbswE43uXOxQNX1MtLJ8xQTA MwkwjHxE2f/5OQVocPJPX6ACr108oIgP/H4OIFeDRzLYzuAeKo8z38qKFsTNQ0CYR9dLbrqqXcSlE EoYiju2x5JkMneW7OrBjcKe+1iUfB2Zmii4GbM0cplWPFrR0oUbqJfV54v9au+T1mfwh59Vn8hJ8x SVBLPRAJCDCYRMJeWoHh6Q2DSwK5ven2cLs0Rrg8FqTwo7ZR7pLC5CqA/iZPEohzKqgBiAxTEyHxr IvyMiYjv6uyXrWxH0YkB6tfSM36dGsHaQ+vNWL7YZjFzMBSZDqkhkRpzIztNg0q9A6OY3zfb0yQ4S t/u6gvSA==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=worktop.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94 #2 (Red Hat Linux)) id 1lDDqZ-003K80-MB; Fri, 19 Feb 2021 22:03:21 +0000 Received: by worktop.programming.kicks-ass.net (Postfix, from userid 1000) id DD4BD9864D6; Fri, 19 Feb 2021 23:01:58 +0100 (CET) Date: Fri, 19 Feb 2021 23:01:58 +0100 From: Peter Zijlstra To: Josh Poimboeuf Cc: x86@kernel.org, pjt@google.com, mbenes@suze.cz, jgross@suse.com, linux-kernel@vger.kernel.org Subject: Re: [RFC][PATCH 6/6] objtool,x86: Rewrite retpoline thunk calls Message-ID: <20210219220158.GD59023@worktop.programming.kicks-ass.net> References: <20210219204300.749932493@infradead.org> <20210219210535.492733466@infradead.org> <20210219215530.ivzzv3oavhuip6un@treble> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210219215530.ivzzv3oavhuip6un@treble> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 19, 2021 at 03:55:30PM -0600, Josh Poimboeuf wrote: > On Fri, Feb 19, 2021 at 09:43:06PM +0100, Peter Zijlstra wrote: > > Arguably it would be simpler to do the other way around, but > > unfortunately alternatives don't work that way, we cannot say: > > > > ALTERNATIVE "call __x86_indirect_thunk_\reg", > > "call *%reg", ~X86_FEATURE_RETPOLINE > > > > That is, there is no negative form of alternatives. > > X86_FEATURE_NO_RETPOLINE? We could, but it so happens Joerg is also wanting negative features. So I was thikning that perhaps we can convince Boris they're not really all that aweful after all :-)