Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp4030630pxb; Tue, 7 Sep 2021 13:04:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzFkUVZJ0IPUoZ8MWjVMY/mjJVe9dC12mE7Os07D6Ay5kK7yXuNPhAxb2XwJ5LDNNcKQ3Gj X-Received: by 2002:a92:d1c6:: with SMTP id u6mr12699182ilg.263.1631045068390; Tue, 07 Sep 2021 13:04:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631045068; cv=none; d=google.com; s=arc-20160816; b=LlMz2p1JlJkTCT/HsvUMLcRiBrwHOo7mdYosk8c0UcXU6Dmxxj0c04SGWLV/efClk2 pGk+iX/GLrM9tZMcZghbMsx2S/7r06lQGN76sXTZKxugJNWuKFX2S1U0lGHnLLrwQJln Hqz8vzu7tpJewtSZo2RxCn3lj9LIGtjrLGt+Wr2+FWruUB2K0d0ch4GB8PRlwOS0YjSz MFex7wUIEkVdxwpuRoJNY88Za21aKy6w+70AaTa5aCjxSuc8XpGOvHeTxrRUD12bKnM9 p6nDiyDGjxP+bPhHvZaLYgQrb2sTD69HqQ3w/VLJMon2GKAef+9Op8TvcUEDGExIeD/k UFpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=1fpdy3b2qMHUETeuDFTFbKg8FYwDRtrIQO5YjCA4iis=; b=d/Z4N7GkY894hd5vfaE4mJkJeP/TZwO14qO/+bRLYzh34DuQPjtY5nlGOiTGz3XkZr Y6QFRRvLR1fpAdeirHiYCqGp5ahSB2vFCVG3qNxOco3HtpGPcxfC8G0kxd8TEKKKP8yx InxvccMs8+XdXLp7w9ktNhBBLT/fpKBKjD4qRNUA4mLZj4x1eP+snVgdT1axNB4hTxz2 RjT9xAKFxSfWJqMOtdemMlr5R8wUYvUjlBnnUWu6gFbgqWmkZ3O3Kow8Yzbb8SjGb6fz GYkLQI1yL/qgdvmPt6CeUyrVw+21LNgVt6/6C6kdmIVbjXKfF4Pc/WtZ1x7OAYbwWPMx 3lgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=gvtqQqQ0; 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 q22si10361874jae.93.2021.09.07.13.04.16; Tue, 07 Sep 2021 13:04:28 -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=pass header.i=@linux-foundation.org header.s=google header.b=gvtqQqQ0; 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 S1346028AbhIGTRu (ORCPT + 99 others); Tue, 7 Sep 2021 15:17:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53210 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345371AbhIGTRs (ORCPT ); Tue, 7 Sep 2021 15:17:48 -0400 Received: from mail-lj1-x231.google.com (mail-lj1-x231.google.com [IPv6:2a00:1450:4864:20::231]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9EA51C061575 for ; Tue, 7 Sep 2021 12:16:41 -0700 (PDT) Received: by mail-lj1-x231.google.com with SMTP id j12so222879ljg.10 for ; Tue, 07 Sep 2021 12:16:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=1fpdy3b2qMHUETeuDFTFbKg8FYwDRtrIQO5YjCA4iis=; b=gvtqQqQ0P76l17nNx5gKAZmX9q0gXmkKiJplZ5GrV0Rp5D/GmeTFvutVYxXDmohdU0 Rg7GZWtGpo79LRFlloX9NBLbD7hga1UGVHT5sYVxcyx+e++dSBWbGFVZEFJrEiiMD80f lT+vaaeWPC4g7dOg7Pm63HBqJdzPD3ESYM7uY= 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=1fpdy3b2qMHUETeuDFTFbKg8FYwDRtrIQO5YjCA4iis=; b=o3A6TKkh0FTz8r/MUKxKKXx6oaKPxam82mjo2We8RDMNNjRLpWtIBnC6A6gihPJLz8 pKDLUIy/3uxt3PhOyUijXRQWDN+4FdpuabIlhJRRhCvVSfoWnwU6ljvXMakc8gtxTmmO zkBMbW7YuwnkrVRXKfS5VXyKcExoKJd6P6l6hVB0EppwUowCdJF/agr1ANuJssMbSQkZ 7+mjuGehLFgKXwUO41R9QPN2Tl0G5elw7U+EiINblLIQLir8kZvIbMZ8bfCRxeGpIQ40 E6cDSTnQhNqSRHNsEOZY//tplw9ld7U5/zHHnDFA4mkhlgSSRzGRXzj20asO+mhI8S9V Quuw== X-Gm-Message-State: AOAM532LFKzq7MmZ8DkeQURIOnBgFWZ4MOgiYqZRr/o56dl7JziP4WMQ 6G6ibN4FBN+ctkE8RVOPd8S/MfRcIbYgsmm6Zz4= X-Received: by 2002:a2e:7603:: with SMTP id r3mr15607854ljc.98.1631042199452; Tue, 07 Sep 2021 12:16:39 -0700 (PDT) Received: from mail-lf1-f42.google.com (mail-lf1-f42.google.com. [209.85.167.42]) by smtp.gmail.com with ESMTPSA id x8sm216200lfq.183.2021.09.07.12.16.38 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 07 Sep 2021 12:16:38 -0700 (PDT) Received: by mail-lf1-f42.google.com with SMTP id l10so72403lfg.4 for ; Tue, 07 Sep 2021 12:16:38 -0700 (PDT) X-Received: by 2002:a05:6512:3da5:: with SMTP id k37mr14175340lfv.655.1631042198154; Tue, 07 Sep 2021 12:16:38 -0700 (PDT) MIME-Version: 1.0 References: <20210907183843.33028-1-ndesaulniers@google.com> In-Reply-To: <20210907183843.33028-1-ndesaulniers@google.com> From: Linus Torvalds Date: Tue, 7 Sep 2021 12:16:22 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] Revert "Enable '-Werror' by default for all kernel builds" To: Nick Desaulniers Cc: llvm@lists.linux.dev, LSM List , linux-toolchains@vger.kernel.org, Arnd Bergmann , Greg Kroah-Hartman , Guenter Roeck , Kees Cook , Mark Brown , Masahiro Yamada , Nathan Chancellor , Michal Marek , Andrew Morton , Vipin Sharma , Chris Down , Rasmus Villemoes , Daniel Borkmann , Vlastimil Babka , Linux Kbuild mailing list , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 7, 2021 at 11:39 AM Nick Desaulniers wrote: > > The above commit seems as though it was merged in response to > https://lore.kernel.org/linux-hardening/CAHk-=wj4EG=kCOaqyPEq5VXa97kyUHsBpBn3DWwE91qcnDytOQ@mail.gmail.com/. No. It was merged in response of _years_ of pain, with the last one just being the final drop. I'm not going to revert that change. I probably will have to limit it (by making that WERROR option depend on certain expectations), but basically any maintainer who has code that causes warnings should expect that they will have to fix those warnings. If it's clang that generates bogus warnings, then we'll have to start disable clang warnings. The clang people tend to be proud of thir fewer false positives, but so far looking at things, I am not convinced. And I'm most definitely not convinced when the "let's finally enable -Werror after years of talking about it", people end up going "but but but I have thousands of warnings". That's the POINT of that commit. That "but but but I have thousands of warnings" is not acceptable. I spent hours yesterday getting rid of some warnings. It shouldn't be on me fixing peoples code. It shouldn't be on me noticing that people send me crap that warns. And it really shouldn't be "Linus cares about warnings, so configurations that Linus doesn't test can continue for years to have them". My "no warnings" policy isn't exactly new, and people shouldn't be shocked when I then say "time to clean up *YOUR* house too". Linus