Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp415410pxb; Thu, 9 Sep 2021 04:03:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxNQRA7bdsyjXzquS22L1nYoi4Zzs3ZLzm5BLfCy91Ur5fefBW0QYN15BpLBOYgXQ6yLMUV X-Received: by 2002:a05:6402:2801:: with SMTP id h1mr2556240ede.209.1631185402817; Thu, 09 Sep 2021 04:03:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631185402; cv=none; d=google.com; s=arc-20160816; b=aT77gj5szgtdMCFrg8hahgcHGbVq/BTIartex6Mb2zDRZw6zg6V44SUXSiyMgV8MrJ KUnl5elpRh2U88PHGDqR7gD9sEpShNa+BR8DqASthAjptVW+yabQpbtj04U+OJKmVseV 5nr4L74+HvroV7FVQ3pTq6cyk0yBOF1qqExwxPNs5g8Tnpcfv8AmqitMAlB5dL6+6fbH F7mlShYRmuZqKJXp4WZqWrb7waoqH4qLzc5GsiiTQp2DOb93O5b8XOFL3p8VHhFl2UJ+ 7rFFllMWyjrlStA4wfu/Fl7kHVfaigHYvo7fwnB39yqvJwPzLTeqZOSh0G1gZFR7GPFu qkZg== 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=OUWNlhiomjRaxpm6dcsZUbGnapcx4zxDdMNWiMgFVoc=; b=RLVjWmPEa+bvqU75Ez9J3bcMy6gji4ibQ6+eNRQePxNrcyLw10RtGqhXhy7jLjYnfh KwSwEpl6soo/dKQxCXf5oDgd7O4tp2f2Ca6PMqVZX+ci3mzfvVs1dGtLiDjlUoPC4WH1 5noMtb681/eKcAcStvjuXkoRyHjTeK0u4M8x141kBZqypddQGmm/6D7cTDRtTAkmapub a+t5g1SfDvmFKhAuQyCwji+7k1nn8sznjBE2YOF1SjVePN/t8fQYUflq9Mofc3QY+NLO NC25IWbFXCKdqGpSHKmvcm0YBDRuyNQPbuMEPgyVpKft9ozbxHYTdN9FfhqcyhCU3HBM CTAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hHJKoNgk; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b3si1396466ejb.219.2021.09.09.04.02.24; Thu, 09 Sep 2021 04:03:22 -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=@kernel.org header.s=k20201202 header.b=hHJKoNgk; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234484AbhIILBx (ORCPT + 99 others); Thu, 9 Sep 2021 07:01:53 -0400 Received: from mail.kernel.org ([198.145.29.99]:34248 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234349AbhIILBw (ORCPT ); Thu, 9 Sep 2021 07:01:52 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 55ED561167 for ; Thu, 9 Sep 2021 11:00:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1631185243; bh=q0jaemKaNpxivtuHJVN3sxGi68MjVqL99mYlZXXeAZI=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=hHJKoNgkH8/igA8mIRS3lIuUeTLXcTZC+1DSY6sOpt50Cc3WpwUTvTnh/1FPRRi8r 0Vs7f5vHfPoSG+fzyOuQDSrOnhcMNDF8ii4p0MHgdNIXgvwypuYO5MY8dXdOhWgNJO l41W2CHOYhIN7rTDJmhNdndV8iDc0k+71EnPXb4Hkxztk3ElYZlZZxS90P/9j7eX1A MTYrG7IPALgtwsZEPstcM/v9XSp1C68Dl2rC+4P4ZfEIaVaRPKNHRQHlovAPeodguH xTNQKbeXBfcqmwbLhkZj73EII8d3PTV+SM+lRFKaQxWFUDb4OD+t6maZjm1zDAHEBj FX9aW8KR4x/wA== Received: by mail-wm1-f49.google.com with SMTP id i3so1045093wmq.3 for ; Thu, 09 Sep 2021 04:00:43 -0700 (PDT) X-Gm-Message-State: AOAM5316EIB/ZjuEfIfWmpRJfFgVOj52tlNP1WFPbd139WzW7N1H8VNy Blj4bbH1VrZ26eY3Og5xjEfyDwIVYDf+2uEdDjA= X-Received: by 2002:a1c:4c14:: with SMTP id z20mr2344349wmf.82.1631185241984; Thu, 09 Sep 2021 04:00:41 -0700 (PDT) MIME-Version: 1.0 References: <20210906142615.GA1917503@roeck-us.net> <75a10e8b-9f11-64c4-460b-9f3ac09965e2@roeck-us.net> In-Reply-To: From: Arnd Bergmann Date: Thu, 9 Sep 2021 13:00:25 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] Enable '-Werror' by default for all kernel builds To: Marco Elver Cc: Christoph Hellwig , Guenter Roeck , Nathan Chancellor , Linus Torvalds , Linux Kernel Mailing List , llvm@lists.linux.dev, Nick Desaulniers , Paul Walmsley , Palmer Dabbelt , Albert Ou , linux-riscv , Andrey Ryabinin , Alexander Potapenko , Dmitry Vyukov , Andrey Konovalov , kasan-dev , =?UTF-8?Q?Christian_K=C3=B6nig?= , "Pan, Xinhui" , amd-gfx list Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 9, 2021 at 12:54 PM Marco Elver wrote: > On Thu, 9 Sept 2021 at 07:59, Christoph Hellwig wrote: > > On Wed, Sep 08, 2021 at 11:58:56PM +0200, Marco Elver wrote: > > > It'd be good to avoid. It has helped uncover build issues with KASAN in > > > the past. Or at least make it dependent on the problematic architecture. > > > For example if arm is a problem, something like this: > > > > I'm also seeing quite a few stack size warnings with KASAN on x86_64 > > without COMPILT_TEST using gcc 10.2.1 from Debian. In fact there are a > > few warnings without KASAN, but with KASAN there are a lot more. > > I'll try to find some time to dig into them. > > Right, this reminded me that we actually at least double the real > stack size for KASAN builds, because it inherently requires more stack > space. I think we need Wframe-larger-than to match that, otherwise > we'll just keep having this problem: > > https://lkml.kernel.org/r/20210909104925.809674-1-elver@google.com The problem with this is that it completely defeats the point of the stack size warnings in allmodconfig kernels when they have KASAN enabled and end up missing obvious code bugs in drivers that put large structures on the stack. Let's not go there. Arnd