Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2843207yba; Mon, 8 Apr 2019 06:03:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqzABZSdZR5d/CVRTJUjsNjgvvWLvtgII6UMeHFFPaowfFD4Qps1EWcagMKKQZAvCnYbz2Hs X-Received: by 2002:a63:2bc8:: with SMTP id r191mr28640174pgr.72.1554728625640; Mon, 08 Apr 2019 06:03:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554728625; cv=none; d=google.com; s=arc-20160816; b=EHt0ewscyj8qLiQYESnzrraXqD13s9+l52Ii50kjS03AGOZ0sTIZbJuChqie6QXv1s vqITK8xyMjQWoIUsHPXH0Yj8AU5U9QvVtsDvwJrxIJFd7INI6fbH4TMh8O8Ptvy+3Yiz XuHsiZA5sU/BBJSkXCrlR4NRVbV4tAKKaSgKYP3cRqGL3PcugKGWKGPNY7igXMe9BqdH BKG1QdfY1aOcDcoFZrl8Hbkiz0GbJj56ZhX8to4IAvU8CAV8IGGtSzM9QBvRk0YVZ6xe KVuiNSZxU3kBX4bNFs0Sh3URzD0U+JlzsDotvO0lEIf9MoCG4na8VOGXCzXC0aFHqEJy 4uvg== 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; bh=3PSi8OJLYvUsnP1SeJWB3qg7Um6HMPz9G0fDz/tPjs4=; b=TG3uI0iFKZrIRfqcBJrZ5NLjN9Gic/vobnTOgPhUGC+7Qftn48Qex2XcIxO/glq/pv E/qzs2oJfO9NLMrsoI1tpbnrWjNUtRAtNyvf1g2rn6sY1Y+A05gfplBxO3wYSBG4ZP3U zdblQBRcouVdDyLdJh3wtUBmnHiN9hqe3Zd8v2qL3IFf3MaIxFmEyVTvln/NYx5Q1RYv AgMvpEYpfsvoptrUJPt8RA0jVLoICFWor2zlnJHLMMMp/iNL7a7L5KYeXeeECscxM+tl 4dDgZ4c73SX77gv8hKYZdn3tg/2FS0SyW0JqqXiqYIAflSC9Ccp83ljpQdikH+zSqpOK V0ZQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a3si26461456pgg.127.2019.04.08.06.03.29; Mon, 08 Apr 2019 06:03:45 -0700 (PDT) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726592AbfDHNCn (ORCPT + 99 others); Mon, 8 Apr 2019 09:02:43 -0400 Received: from mx1.redhat.com ([209.132.183.28]:55688 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725933AbfDHNCm (ORCPT ); Mon, 8 Apr 2019 09:02:42 -0400 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 4D17530BA340; Mon, 8 Apr 2019 13:02:42 +0000 (UTC) Received: from treble (ovpn-120-231.rdu2.redhat.com [10.10.120.231]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 0544C60FC3; Mon, 8 Apr 2019 13:02:39 +0000 (UTC) Date: Mon, 8 Apr 2019 08:02:35 -0500 From: Josh Poimboeuf To: David Laight Cc: 'Luis Ressel' , Peter Zijlstra , open list , "stable@vger.kernel.org" Subject: Re: [PATCH] objtool: Don't use -Werror Message-ID: <20190408130235.hmpmr6dtc2prywzu@treble> References: <20190405142443.rgpwbgyym76xizad@vega.skynet.aixah.de> <20190405143926.wmrkjsazlheeg6qs@treble> <20190405160550.62arkmvj67zm6oc2@vega.skynet.aixah.de> <20190405162109.4hv6lqpd6manzjju@treble> <20190405171207.jmi7zehu37ksg5a4@treble> <20190405172235.pgsjnyb62hqkfwcl@treble> <4dcc5b4ce124408495a440511acfc4c4@AcuMS.aculab.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <4dcc5b4ce124408495a440511acfc4c4@AcuMS.aculab.com> User-Agent: NeoMutt/20180716 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.49]); Mon, 08 Apr 2019 13:02:42 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 08, 2019 at 09:20:50AM +0000, David Laight wrote: > From: Josh Poimboeuf > > Sent: 05 April 2019 18:23 > > On Fri, Apr 05, 2019 at 05:17:15PM +0000, David Laight wrote: > > > > Hm, I don't see that in cmd_objtool, or any commits from you in > > > > scripts/Makefile.build. > > > > > > Not sure I remember actually committing them. > > > Maybe 'git diff' isn't doing what I expect :-) > > > I hate git. > > > > Do you see it here? > > > > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/scripts/Makefile.build > > No, I must have had to tell git to apply the change locally. > I can't see how to get git to diff against the 'real' head. > Anyway a 'random' number of ^ after HEAD gave me: > > diff --git a/scripts/Makefile.build b/scripts/Makefile.build > index e7889f4..a2f7abe 100644 > --- a/scripts/Makefile.build > +++ b/scripts/Makefile.build > @@ -193,7 +193,9 @@ else > cmd_cc_o_c = $(CC) $(c_flags) -c -o $(@D)/.tmp_$(@F) $< > > cmd_modversions_c = \ > - if $(OBJDUMP) -h $(@D)/.tmp_$(@F) | grep -q __ksymtab; then \ > + if ! obj_headers=$$($(OBJDUMP) -h $(@D)/.tmp_$(@F)); then \ > + false; \ > + elif echo "$$obj_headers" | grep -q __ksymtab; then \ > $(call cmd_gensymtypes_c,$(KBUILD_SYMTYPES),$(@:.o=.symtypes)) \ > > $(@D)/.tmp_$(@F:.o=.ver); \ > \ > @@ -277,7 +279,14 @@ endif > # 'OBJECT_FILES_NON_STANDARD_foo.o := 'n': override directory skip for a file > cmd_objtool = $(if $(patsubst y%,, \ > $(OBJECT_FILES_NON_STANDARD_$(basetarget).o)$(OBJECT_FILES_NON_STANDARD)n), \ > - $(__objtool_obj) $(objtool_args) "$(objtool_o)";) > + $(__objtool_obj) $(objtool_args) "$(objtool_o)" && { \ > + $(OBJDUMP) -h "$(objtool_o)" >/dev/null 2>&1 || { \ > + echo >&2 "******* objtool generated the invalid file $(objtool_o)"; \ > + echo >&2 "******* Update libelf.so or disable the ORC unwinder"; \ > + /bin/false; \ > + }; \ > + };) > + > objtool_obj = $(if $(patsubst y%,, \ > $(OBJECT_FILES_NON_STANDARD_$(basetarget).o)$(OBJECT_FILES_NON_STANDARD)n), \ > $(__objtool_obj)) > > Do you want a formal patch? Hm, I wonder if there's a way for objtool itself to detect it's producing a bad file. That would be a bit cleaner. -- Josh