Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1042577ybv; Wed, 19 Feb 2020 14:45:56 -0800 (PST) X-Google-Smtp-Source: APXvYqyMM8zvq1Xh/+QAEPhHYdexQ0ti8sjcJWeVC0jEHTwreyjuBOIVymx3J2nEUSzVi6efn/0q X-Received: by 2002:a05:6830:140b:: with SMTP id v11mr21330144otp.340.1582152356700; Wed, 19 Feb 2020 14:45:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582152356; cv=none; d=google.com; s=arc-20160816; b=Vxmhupug0cVSrQarWdD45Dg5UDSSLeMhTHJAymf/lR/RQtMhkafn/Cq4lcfp0JhKrV GHl0qRRKVdbNeuxfNs94D882q9QWT4TQfSUAUXSB5/xoc6WfQ8/axFIZqFiVoACms4yg RHFfXz5gpNP/Oid8bNaqGWgQPS6VkFqI5U5d3qvUCTdEvyZHhxC41HRbtaWVeK4Dz/VY vJEefFaLfGfd0vM5M2UdHjy2dUsp7dLVhp1bUX4fYMggpQWmE02lsCyFn9JWa+nAq01u 4hwKtPLbTm1hztFkunR3Pr4xZ0eAfJYpnFuftvEkTqc0gnmY8KA5ji6JRlYD16Q6ZLWP REdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=DarAl82PcxJAMUan8osRqiWJP5zrzBNFn2my/A9LRV0=; b=c/ZuxeSm90AoSyz2zTZU5nM1SYh6HvVv2utNsQjuFplt2yxh6biqCEOO1IQ/+JVw7w Ka3xYWNamVXWV7myIcJEyVbT1wCkMyUSvHrNHqqfQ4QR2XRipxHSJbEzeX7xSFBxRYmN Vg1T7BzkDkGs2w5oKz16kjNNy92gKnL4aS5XOwNlV1Fy59J0c2qbCdgC2ZU85QcmQwa8 +ohuQe87BBcUJtMZX+PLQGsLBvr0UVbNToO2xjXvD44xwk1pKzfL0VekyBjvVZit+2ow wOZpCAFXdNhZA5AA6A0ryqUBvFBn45mUgDrS+PkPxDFbAe8oZcfY60wT4nT6/HJ9gI+M iC+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=SI2uasgQ; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z199si9492066oia.192.2020.02.19.14.45.43; Wed, 19 Feb 2020 14:45:56 -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; dkim=pass header.i=@google.com header.s=20161025 header.b=SI2uasgQ; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727755AbgBSWnv (ORCPT + 99 others); Wed, 19 Feb 2020 17:43:51 -0500 Received: from mail-pf1-f196.google.com ([209.85.210.196]:40777 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727232AbgBSWnv (ORCPT ); Wed, 19 Feb 2020 17:43:51 -0500 Received: by mail-pf1-f196.google.com with SMTP id b185so822464pfb.7 for ; Wed, 19 Feb 2020 14:43:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=DarAl82PcxJAMUan8osRqiWJP5zrzBNFn2my/A9LRV0=; b=SI2uasgQc9FMfi5L8cj/jMw5i/igTpq5jC76d8Ym788Dg4qfgnAUOue0gF1t/Q//25 CuR3r/WGfAOahQVIpbSGoeK53gfYTf6gBU6A+NGdEbBkR6qgO3pEjsY/wulM9RBIXpkb lfZ3o+uAQLoYpJKeEHu+KySxpiicUAPB7ek0vQX+MF2S2SqgG03zrU6fc7s6lWDC6Vjc F7tdFfJ5Rq1FOUk2FKQqFq+okBgPsCEEB9chHVPLm9iDwZ1hz+VnIxib6yUAW6BtmKwR u6vFhBzCyzsLm5snKXcTsbkh/i9rk8FFZVVUAbtsHXJf85L5lkyWQSY3nSTuF7zXr8R8 sU3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=DarAl82PcxJAMUan8osRqiWJP5zrzBNFn2my/A9LRV0=; b=HoVPkf9MCLNTwc0vcIKzJhO6hE141AB2oJpr9HtwkeVYQXHpRz1a79XCqZOs8HswA6 Sk7V9AL86Sr/yS99i00PG7sLK9qQGRU36B9XEkGtupU57KRJ9Hn7pm3f3YJNO6sMRo8o 64yCcB5EPId2sSvqdIWiNXmefaJvme+7daM/zXus391Z5/Y8ijKFK8qIg4B5tlafNtIF WFFSW61tkGOck+x9qZtpMSsJvJqpQWsNiZGpj9msDfclOvallc7DM5N2/Hjz1ZHhk2ck aBIR5EI9zziW/8f4FsZU0PUNdmGWqQw00iiccAJtNr0mOXaNGm+K/EC5SPE7y/qGuYzR /U7Q== X-Gm-Message-State: APjAAAVPiTfMD83WlxJnZpA2LqyIUS4Hor6krtqJTvOb+oy4u/yvsVtA 4KCMI9CLMPslRUabZ41lFgd9u2YUEjbj4dSaIRQlLQ== X-Received: by 2002:a63:f24b:: with SMTP id d11mr29148152pgk.381.1582152230079; Wed, 19 Feb 2020 14:43:50 -0800 (PST) MIME-Version: 1.0 References: <158142525822.411.5401976987070210798.tip-bot2@tip-bot2> <20200213221100.odwg5gan3dwcpk6g@treble> <87sgjeghal.fsf@nanos.tec.linutronix.de> <20200214175758.s34rdwmwgiq6qwq7@treble> In-Reply-To: <20200214175758.s34rdwmwgiq6qwq7@treble> From: Nick Desaulniers Date: Wed, 19 Feb 2020 14:43:39 -0800 Message-ID: Subject: Re: [tip: core/objtool] objtool: Fail the kernel build on fatal errors To: Chen Rong , Philip Li Cc: Thomas Gleixner , tip-bot2 for Josh Poimboeuf , linux-tip-commits@vger.kernel.org, Borislav Petkov , Julien Thierry , x86 , LKML , Josh Poimboeuf Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. -- Thanks, ~Nick Desaulniers