Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp592467pxb; Sat, 20 Feb 2021 14:35:34 -0800 (PST) X-Google-Smtp-Source: ABdhPJzIdHs+WT+r0RRTQ9zv5ecxSu1+8jhg5JYgw+1jWbX5yy89k2U7jBkhvenEoxzOcgPNGxLh X-Received: by 2002:aa7:ca57:: with SMTP id j23mr15900439edt.293.1613860533950; Sat, 20 Feb 2021 14:35:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613860533; cv=none; d=google.com; s=arc-20160816; b=LVDmNCQfhUqUA/KLkc7Ry+Xkl5l5Aauz/KLy3n1/S7Bao9eoNrZ4V4dPToFF/6z4cf 6bSU53DBnbHACru1F2GHK87WoHuwslykXWectmcqg5U0b0wG34OvDG+2OqcTG/cxC3ET /hj3qmOsoRNnd35Vynq1gEyrEqs/fzQEsx0n+Bdp2ybeAma+1l7AXgMMuWW68Ewss7d5 9BJH/Za+ebL2UegDFOA26+1h/NxZQfdjHOh1p5dR3wy/j8whwZp/UBQvHJJng91/YYtd eggFr00GewGMSoa69KMPxbfaOjMfd3kBb6F7XY83Ma0hlWXMc4l8VwUXXJCU/Fk8iK17 oiNQ== 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=HMTI1GJYGD0GJRodu4+13cndPWkJlvKX4R4GkQYGjaw=; b=Li3xZHxm+nFulqUudcaJaD0CuJZ9RjEIesU/aCIgZmKP48qRgyW8crEmFskbs6WttC BtSr+/hDVG7Uk/MtnYcabkyXlrfFV5P1ZHKXzOJH5fyFlHGro3XqsCl1omidNQj+AbdN je6NJnVTCDS9QnBfEgT+ZH5C5wTxo1NHjc5k5LREz+6U/qMybs4dcCvFaSt9Bcfk3i/R IxmiWUDmndlfy/9b0huV1dYiD6uJ7UdwQBr1VbtXa3fKUIoanpnplF5xJwx1r25mYIcl V64uDnlIKSPl/CVoatpfJzEEHIsuLC1CMAnVF0KyoSdSPnM+Tv1FvV9uU5+kI6/UJHNK bOWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=merlin.20170209 header.b=uq7APCrA; 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 ga14si8503723ejc.249.2021.02.20.14.35.10; Sat, 20 Feb 2021 14:35:33 -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=merlin.20170209 header.b=uq7APCrA; 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 S229844AbhBTWdK (ORCPT + 99 others); Sat, 20 Feb 2021 17:33:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57248 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229675AbhBTWdJ (ORCPT ); Sat, 20 Feb 2021 17:33:09 -0500 Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6DE5BC061574 for ; Sat, 20 Feb 2021 14:32:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.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=HMTI1GJYGD0GJRodu4+13cndPWkJlvKX4R4GkQYGjaw=; b=uq7APCrAhHeXdpKZ2TAgEC0VzG a+dMX/XgXT/muyHioBjKB4J5wJyxP5eoH4tNyX0FIEGAS+5xJaeRNac7UGh5I4KMWq3aIMnpveTYh KyzouLvJg7ekNWw0/VnM39eL4oqhAzyYErDy1NPEFlAHtTI+1rPCSPxA7fB5Jm5c1N3yN2dDdzkE0 S03DOwO3YpfnddI7NxaOPZ2HI3F5ttZSxJzGLYAqJgm7ozSGUg6w2XeWmdtcBeeZK+Mmc9jlrfXzD QCq+hVCSdGEHMTH8mAoOscOUKxnPhpgbz9T2SKiaUgyvdy2ucROEkUkflzo45rdmJhKfy7gIVvQMo 3QIEh3Zw==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=worktop.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1lDanX-0002Cx-9Z; Sat, 20 Feb 2021 22:32:23 +0000 Received: by worktop.programming.kicks-ass.net (Postfix, from userid 1000) id 6A25F9864D6; Sat, 20 Feb 2021 23:32:21 +0100 (CET) Date: Sat, 20 Feb 2021 23:32:21 +0100 From: Peter Zijlstra To: Borislav Petkov Cc: Josh Poimboeuf , 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: <20210220223221.GB4746@worktop.programming.kicks-ass.net> References: <20210219204300.749932493@infradead.org> <20210219210535.492733466@infradead.org> <20210219215530.ivzzv3oavhuip6un@treble> <20210219220158.GD59023@worktop.programming.kicks-ass.net> <20210220003920.GG26778@zn.tnic> <20210220174101.GA29905@zn.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210220174101.GA29905@zn.tnic> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Feb 20, 2021 at 06:41:01PM +0100, Borislav Petkov wrote: > > - if we had negative alternatives objtool doesn't need to actually > > rewrite code in this case. It could simply emit alternative entries > > and call it a day. > > I don't mind the negative alt per se - I mind the implementation I saw. > I'm sure we can come up with something nicer, like, for example, struct > alt_instr.flags to denote that this feature is a NOT feature. So you don't like the ~ or - on cpuid? ISTR we talked about alt_instr::flags before, but Google isn't playing ball today so I can't seem to find it. I can certainly look at adding the flags thing.