From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751145AbeAOUak (ORCPT + 1 other); Mon, 15 Jan 2018 15:30:40 -0500 Received: from mx1.redhat.com ([209.132.183.28]:53926 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750777AbeAOUag (ORCPT ); Mon, 15 Jan 2018 15:30:36 -0500 Date: Mon, 15 Jan 2018 14:30:32 -0600 From: Josh Poimboeuf To: Peter Zijlstra Cc: Borislav Petkov , David Woodhouse , linux-kernel@vger.kernel.org, Dave Hansen , Ashok Raj , Thomas Gleixner , Tim Chen , Andy Lutomirski , Linus Torvalds , Greg KH , Andrea Arcangeli , Andi Kleen , Arjan Van De Ven , Dan Williams , Paolo Bonzini , Jun Nakajima , Asit Mallick Subject: Re: [PATCH 2/4] objtool: Implement jump_assert for _static_cpu_has() Message-ID: <20180115203032.rykendkdrxtjrtf7@treble> References: <20180115164428.498966552@infradead.org> <20180115164909.836510626@infradead.org> <20180115180405.cdzdgw6tocbsmbrf@treble> <20180115181230.GD2228@hirez.programming.kicks-ass.net> <20180115183417.myyorkvsbte3tnrw@treble> <20180115185937.icl32kzpwov3pu64@pd.tnic> <20180115190819.3pxrnikuqoddxt4b@treble> <20180115191151.zmnuxymdjtp5qkvm@treble> <20180115201545.GO3397@worktop> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20180115201545.GO3397@worktop> User-Agent: Mutt/1.6.0.1 (2016-04-01) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.27]); Mon, 15 Jan 2018 20:30:36 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On Mon, Jan 15, 2018 at 09:15:45PM +0100, Peter Zijlstra wrote: > On Mon, Jan 15, 2018 at 01:11:51PM -0600, Josh Poimboeuf wrote: > > Well, to clarify, it would solve _some_ of the problem. Maybe even most > > of the problem. We'd still need to special-case jump labels in objtool > > (like in 1/4), but that's probably not a big deal. > > > > So, contradicting my previous answer here... yes, it would help. > > OK, saves me from having to argue otherwise. My argument would've been > that jump labels are fully described and don't need further annotation. > > Yes, Boris' proposal would certainly help with the alternative stuff. Fair enough. So either annotating _static_cpu_has() or adding an alt_instr flag works for me. -- Josh