Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp698293ybj; Thu, 7 May 2020 05:41:31 -0700 (PDT) X-Google-Smtp-Source: APiQypI4/p6PsX+MaGYf85eup5+IkHDU+VVCgikroE6buux0NGk+9uJ08Ait+A/yNnVvm0fswXBq X-Received: by 2002:a17:906:5e50:: with SMTP id b16mr12282283eju.331.1588855290939; Thu, 07 May 2020 05:41:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588855290; cv=none; d=google.com; s=arc-20160816; b=JvewDa/rGLAh+nOhwFwDvJqfJGOJ5DGu1q+Yi8vu/vSH0IOsoEDFfnK9ciu8PUZd8z nZY+TvIpM03VYaWU23MKJHGyk/ADPfszmg/S3SHe/uY9DGa0WETIRFuWb5w7S2KW5VqM SnO60BaEreTV2AbPaT27sSRLCmlwkAR3LCOkCtMv2gLFNKd626I6ohVKxnQb6O4qRj4n uX0HBDyPw16z/pgjotpobFGJ76vCfg2FZRATqsg8DPu+HPf89BYeeV4aHMAzXz5huRgY fpZR3tMn03hWw1zwsFQFfvrI/XriWv5AdvYm2rCsbHfgm1htVkBvViZfVeMdh/9ylZ/I gGGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=x7a5h9WTqM4yCISP3EIHuRz1Lfgk3lAikosybsy34bY=; b=yru+Z6bLm49B1MCPueODEJbh1iPJiYz7JLJBm0/01ye5jDh8/VJnxAO00UFqQdbMde pf+MziTWGzf0epp8+FrxBeANVVY8/kQ0tww0ojHnC60Z3cA9QUuhIVfCzGXFjpRfyf3G 6vIwaMtn+3/0OGcAqn3nF3EE+GmOT1IvCdp7Xhas9Xu+q0XZBO1FF++0Ykzq7cAvSoik 8JmBPyV3r8/6UPLMNpNjeVyO3E8gM2cRTuOgXobBPZPUvziZQ0zoD8QDATwOXm1LCIwe ZPIE1yAC14gRLmWHy9rPUbilss1ywZrxYAen/t1Pny051d3dl45aS+I8lWsyk5LobpqK Jh+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=KCXMH0Xm; 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 f26si3000558edj.20.2020.05.07.05.41.03; Thu, 07 May 2020 05:41:30 -0700 (PDT) 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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=KCXMH0Xm; 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 S1726470AbgEGMi7 (ORCPT + 99 others); Thu, 7 May 2020 08:38:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60152 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725857AbgEGMi7 (ORCPT ); Thu, 7 May 2020 08:38:59 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 53CE4C05BD43; Thu, 7 May 2020 05:38:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.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=x7a5h9WTqM4yCISP3EIHuRz1Lfgk3lAikosybsy34bY=; b=KCXMH0XmVUixlNhtZMZxdwknCs ML6pWmj7ff8v0hRpx8nT+Cb1Tvu/mo14l44obO31K1Nl3zqMHdLGz/K2DNmIzkZLMO7o9rGtQ/naq R+IGa3V8jLe2OPthTdKVtf/qv/cU67vk9MoQqtAxjfLF/dkdXYdMf/3sLEjzp2JYwPhqdC95d+JP9 tsSnP2ucjFM4N/+UmVmR9NPlI5P3tSKDd5hzkolU6Tnj0WhoRnBJBfVvaTDstQOIpkRBFIYK34H8A V6ZWE+fBG0fjbNZvbnqlrqWpoW2RFYWLWgotJShKI5wQFj9qCQDJagxxpP2qv4JGS7CqXueYe8I2J 0QRAAmYw==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1jWfnj-0004CD-Uu; Thu, 07 May 2020 12:38:56 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id E57C53012DC; Thu, 7 May 2020 14:38:52 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id C7C982013428F; Thu, 7 May 2020 14:38:52 +0200 (CEST) Date: Thu, 7 May 2020 14:38:52 +0200 From: Peter Zijlstra To: linux-kernel@vger.kernel.org Cc: linux-tip-commits@vger.kernel.org, Julien Thierry , Miroslav Benes , Josh Poimboeuf , x86 Subject: Re: [tip: objtool/core] objtool: Make handle_insn_ops() unconditional Message-ID: <20200507123852.GB3762@hirez.programming.kicks-ass.net> References: <20200428191659.795115188@infradead.org> <158835734130.8414.1839500420306776239.tip-bot2@tip-bot2> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <158835734130.8414.1839500420306776239.tip-bot2@tip-bot2> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 01, 2020 at 06:22:21PM -0000, tip-bot2 for Peter Zijlstra wrote: > diff --git a/tools/objtool/check.c b/tools/objtool/check.c > index 068897d..6591c2d 100644 > --- a/tools/objtool/check.c > +++ b/tools/objtool/check.c > @@ -2259,6 +2259,9 @@ static int validate_branch(struct objtool_file *file, struct symbol *func, > return 0; > } > > + if (handle_insn_ops(insn, &state)) > + return 1; > + > switch (insn->type) { > > case INSN_RETURN: Fun question; when an instruction has both a hint and ops, who should win? I'm currently in that situation and I'd like the hint to win, but is that 'right' ?