Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp336812yba; Fri, 5 Apr 2019 07:40:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqxCK82/TYh6tkQyJQJsnbyjUY/PO3SI5Z6s0KFiWMzO+3wPUMFuzwvNtF9spYeYj8G9SlzK X-Received: by 2002:a63:c84c:: with SMTP id l12mr12478300pgi.287.1554475244216; Fri, 05 Apr 2019 07:40:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554475244; cv=none; d=google.com; s=arc-20160816; b=Ibqv53lmhe2did6lDxJwhYOoukltU2gKNlNQ+U4ArhVEWK60waGrzpUkx/aAnKsglm 0tSnSANkcS/MXECyE6IfkTMSA5rqBtLPV+b4mBPsHYryqxyPhKCgWp2jhnyv/mSimabh 6h2My4Kc2gMxwWv7BlyQ7kuoyVV+iVSKHkSSqnR4VOWiWMZ/TsqdKOKI+Xv6ormCLYE7 saVH2gDDWfrv/u9PtZMcqivqnckRlzsp1QOy+x23/RPx0RiPhn/hoNkcHbvd2orNbMG5 p4MvkABjh1cLS+b6Etl1AxquAWmNr6Jz7nxt/S0T1axmCaPBhwH+vEiwn1GQOG4nFqp8 PyQg== 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=WLLQXmwnwakc5HwyFH4fkP+XU85cGHjyEbwrcilIxlI=; b=nbU0Ol5isR+8WAal/VK2w22h7vh0HBiP7UcET9ywAqr/dMBw8ow9ljgkJXdIbFYtOC 4nsTAhsygEZ7HwW79MymXEAcFMUM3yLoqDgsnKVcGUojFuwSilv/qbRFfmyX87W2RXww BkFqK2+3GjnOXpoa3GIi/Ghs0rfCqYPWP8PiyBO1A6uaxTDay2FTCX4nbqtzRo7c6bjH XtH2fRInT+x2jgWxjEF3PdolMb/TfAh3IwmnFTs9hL+ibYvMtfr7w3+NbIeUpvhikudA 20OfM39Ef0sK8B29p79+zfhv98ulxzyjq7MekhJOB/b5I55pJS87zJwlxnCnUt5CXUkM kGHA== 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 j17si18724737pgk.114.2019.04.05.07.40.28; Fri, 05 Apr 2019 07:40:44 -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 S1731407AbfDEOj3 (ORCPT + 99 others); Fri, 5 Apr 2019 10:39:29 -0400 Received: from mx1.redhat.com ([209.132.183.28]:48092 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729641AbfDEOj3 (ORCPT ); Fri, 5 Apr 2019 10:39:29 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 1378AC1306E5; Fri, 5 Apr 2019 14:39:29 +0000 (UTC) Received: from treble (ovpn-123-87.rdu2.redhat.com [10.10.123.87]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 6DB835D9C4; Fri, 5 Apr 2019 14:39:28 +0000 (UTC) Date: Fri, 5 Apr 2019 09:39:26 -0500 From: Josh Poimboeuf To: Luis Ressel Cc: Peter Zijlstra , open list , stable@vger.kernel.org Subject: Re: [PATCH] objtool: Don't use -Werror Message-ID: <20190405143926.wmrkjsazlheeg6qs@treble> References: <20190405110151.2461-1-aranea@aixah.de> <20190405123909.tupbgueie4czg2dd@treble> <20190405142443.rgpwbgyym76xizad@vega.skynet.aixah.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20190405142443.rgpwbgyym76xizad@vega.skynet.aixah.de> User-Agent: NeoMutt/20180716 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]); Fri, 05 Apr 2019 14:39:29 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 05, 2019 at 04:24:43PM +0200, Luis Ressel wrote: > On Fri, Apr 05, 2019 at 07:39:09AM -0500, Josh Poimboeuf wrote: > > What version of libelf are you using? AFAIK, the non-elfutils version > > of libelf is buggy and has been unmaintained for 10 years. > > I'm using libelf 0.8.13, which is indeed 10y old, abandoned and rather > suboptimal (elfutils OTOH is nonportable, and I haven't gotten around > yet to fixing its incompatibilities with the musl libc). If you can't use the elfutils version, I'd recommend just disabling all the features which rely on objtool. Because some of the libelf-related bugs I've seen are pretty bad, and we rely on objtool for some pretty fundamental things like ORC oops stack traces and live patching. In fact I think we probably need a patch to fail the build if the 10-year-old libelf is used, as I've gotten several bug reports there and the answer is always the same ("don't use old libelf"). > I can accept that you might not be interested in fixing issues related > to libelf, but using -Werror is a more general problem which just > happens to be triggered by my particular setup. Hm, I would actually argue the reverse. Warnings are generally bad and -Werror is useful for ensuring that we don't have any. For warnings that don't provide value, we just disable those individual warnings. -- Josh