Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp77185ybv; Wed, 19 Feb 2020 16:44:39 -0800 (PST) X-Google-Smtp-Source: APXvYqxbC9vAzgx27qDH5rHbbCTcbcddTJ6T1beYJodyNrxQolTG73qunWvN6pcudKYlrTkB1XyF X-Received: by 2002:a9d:4c8e:: with SMTP id m14mr20469088otf.245.1582159479406; Wed, 19 Feb 2020 16:44:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582159479; cv=none; d=google.com; s=arc-20160816; b=bdcGYSOqryScZZHEDWB/4z/kdCFN1KwnzZepYo9wUH6pfmOpsmpzcU/AWOWepy4T7W 8b/jD4g8Eu5DYTHYmXrZr5K92pSS4A+dcapE/2ruJcVC1dDhgfdrNmb2uoD5NuZazfVK 7R1KvSqWQS8phRtkNXi68R2fZnS+1+ZyQ1LjUuDXM466AuzDPDRyjcmroVgKAxrgL4a8 ilBVg1IskcLWwv2crEF9h10ZF0poQwMF2e9KQSWGOpzo8VLZnlRE12xEh/aw1/9xFda4 WmPSvulKb3OvdUf7e2pxPMVS4+F/3anFdIonW3Vc4xZHF8ChE4DsDERbRNWFy+3YMmx5 MVlQ== 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=fLDrWw8w62tjIcTNGZvq5o1541z3iAwwUQIQ+g0HAuk=; b=x1hXoRc8tYO35Jp3m5A4yLLdJNdh9nK9YqUpY6AwhF/TGOfq/P8INKHAiIjXnSAfWu vTIbtdD961X5V+nO5RmjdFnZs3nDq+pP0W7OcjS55LhRLK6DHvhqeqSMcT5Fx1aSGZjw FGRyCYi2tRljFt01xWDdUxm9iNoUq+ZZ1KMwTih8f3I7DguTIS0ni0ItqA95ada4mbao nToHd25qxXIAzeaFcGb6lebwCnO/Oy3mp9SqpmYqmQY+f8CQbu0NVa3GdHTT5/H26jXZ NyMq/JwY2LTMr7mqGcdpzQh+ot0/dxTzvfI+vMiJTCnHQYifF84xKDjf5sRlzursC426 S7Lw== 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 73si9724982oii.60.2020.02.19.16.44.27; Wed, 19 Feb 2020 16:44:39 -0800 (PST) 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727086AbgBTAoS (ORCPT + 99 others); Wed, 19 Feb 2020 19:44:18 -0500 Received: from mga17.intel.com ([192.55.52.151]:34913 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726949AbgBTAoS (ORCPT ); Wed, 19 Feb 2020 19:44:18 -0500 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 19 Feb 2020 16:44:17 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,462,1574150400"; d="scan'208";a="382975586" Received: from pl-dbox.sh.intel.com (HELO intel.com) ([10.239.159.39]) by orsmga004.jf.intel.com with ESMTP; 19 Feb 2020 16:44:14 -0800 Date: Thu, 20 Feb 2020 08:44:34 +0800 From: Philip Li To: Nick Desaulniers Cc: Chen Rong , Thomas Gleixner , tip-bot2 for Josh Poimboeuf , linux-tip-commits@vger.kernel.org, Borislav Petkov , Julien Thierry , x86 , LKML , Josh Poimboeuf Subject: Re: [tip: core/objtool] objtool: Fail the kernel build on fatal errors Message-ID: <20200220004434.GA5687@intel.com> References: <158142525822.411.5401976987070210798.tip-bot2@tip-bot2> <20200213221100.odwg5gan3dwcpk6g@treble> <87sgjeghal.fsf@nanos.tec.linutronix.de> <20200214175758.s34rdwmwgiq6qwq7@treble> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 19, 2020 at 02:43:39PM -0800, Nick Desaulniers wrote: > On Fri, Feb 14, 2020 at 9:58 AM Josh Poimboeuf wrote: > > > > On Fri, Feb 14, 2020 at 01:10:26AM +0100, Thomas Gleixner wrote: > > > Josh Poimboeuf writes: > > > > On Tue, Feb 11, 2020 at 12:47:38PM -0000, tip-bot2 for Josh Poimboeuf wrote: > > > >> The following commit has been merged into the core/objtool branch of tip: > > > >> > > > >> Commit-ID: 644592d328370af4b3e027b7b1ae9f81613782d8 > > > >> Gitweb: https://git.kernel.org/tip/644592d328370af4b3e027b7b1ae9f81613782d8 > > > >> Author: Josh Poimboeuf > > > >> AuthorDate: Mon, 10 Feb 2020 12:32:38 -06:00 > > > >> Committer: Borislav Petkov > > > >> CommitterDate: Tue, 11 Feb 2020 13:27:03 +01:00 > > > >> > > > >> objtool: Fail the kernel build on fatal errors > > > >> > > > >> When objtool encounters a fatal error, it usually means the binary is > > > >> corrupt or otherwise broken in some way. Up until now, such errors were > > > >> just treated as warnings which didn't fail the kernel build. > > > >> > > > >> However, objtool is now stable enough that if a fatal error is > > > >> discovered, it most likely means something is seriously wrong and it > > > >> should fail the kernel build. > > > >> > > > >> Note that this doesn't apply to "normal" objtool warnings; only fatal > > > >> ones. > > > > > > > > Clang still has some toolchain issues which need to be sorted out, so > > > > upgrading the fatal errors is causing their CI to fail. > > > > > > Good. Last time we made it fail they just fixed their stuff. > > > > > > > So I think we need to drop this one for now. > > > > > > Why? It's our decision to define which level of toolchain brokeness is > > > tolerable. > > > > > > > Boris, are you able to just drop it or should I send a revert? > > > > > > I really want to see a revert which has a proper justification why the > > > issues of clang are tolerable along with a clear statement when this > > > fatal error will come back. And 'when' means a date, not 'when clang is > > > fixed'. > > > > Fair enough. The root cause was actually a bug in binutils which gets > > triggered by a new clang feature. So instead of reverting the above > > patch, I think I've figured out a way to work around the binutils bug, > > while also improving objtool at the same time (win-win). > > > > The binutils bug will be fixed in binutils 2.35. > > > > BTW, to be fair, this was less "Clang has issues" and more "Josh is > > lazy". I didn't test the patch with Clang -- I tend to rely on 0-day > > bot reports because I don't have the bandwidth to test the > > kernel/config/toolchain combinations. Nick tells me Clang will soon be > > integrated with the 0-day bot, which should help prevent this type of > > thing in the future. > > Hi Rong, Philip, > Do you have any status updates on turning on the 0day bot emails to > the patch authors in production? It's been quite handy in helping us > find issues, for the private mails we've been triaging daily. Hi Nick, this is on our schedule in a new 2-3 weeks, sorry not to update your in another mail loop earlier. What I plan to do is to cc you for the clang reports when 0-day ci sends to kernel patch author. If you notice something may be related to clang (since we always integrate newer clang version), you can help filter it out. How do you think? > -- > Thanks, > ~Nick Desaulniers