Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp866191pxb; Wed, 8 Sep 2021 14:26:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyDGD41vEYzdAFzmxvam5iy7I3t7S6nFb395NfEN34WPF2dZ7IvdbHR0GC5viPp0YNbBQZs X-Received: by 2002:a6b:8f4e:: with SMTP id r75mr280080iod.172.1631136397161; Wed, 08 Sep 2021 14:26:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631136397; cv=none; d=google.com; s=arc-20160816; b=LDTZ/t+qYM7ctHk8fAS0eTGQXndXN9/N0uE1lXE6A13B2WLH4suWi3yLYR6CcfwdRc k1+Lcogw8QTpV4dSglhnV6m5lRQ9x0mvdFj7khnNEXPUajfchKAo8n0i0tmy5BuERCpn XeApGpzBpIXRtaqu1X716uEJfglBCiNM9PdxEX8X0rQwJft6ngxGrZ3CNjJlTiSPZrUG EFiyJthjlPTSRFZjcHGNE4wG7jmTdZP4UWR3nBYzAMBCh8RZZrbvaYhuQ9G6OM3lFKiL DPLng3vDws9vQN1f/CPPQ57sua3G4J+nbXaSFSgSVVjYSbG/GXcIni7pBgf26pTckXXH MDQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:sender:dkim-signature; bh=TPlAlW9m0l3/305TAZdOn8PajEjpurMWCxqwt3GbkS4=; b=FWF00c5eL4vJ6YgLpvfaXg3K7Xcl/hHBneDRC7HMnSMCzJdtYGLtmAmd5DurG8G0jX k78zFfaBxwj2e17rW0tkn4dPYtD+CwuPaqBs4ZZys46SzNOe67LwO3qoEvLFh48PmiNw u7sghsCioV/u8/mbBFipNZXWNPWhgSCPvBD1JJTR+TAqTLf8Kod2jrbXVRLGoa3oNkkS jfTCiRN/X6HXGqZQ6MK4tylVyIcQgEy2gxl5F4dPCF2Ry7aH001y2W5ChBJjTUVCErem MsF0QyDvjp7voj0QuZGkGGSfILk5kmhetcufiBc6pT6zPz9KZIVNjj8zerlavZn+R6qo XFTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=k5Abv4lP; 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 x8si356477iom.11.2021.09.08.14.26.00; Wed, 08 Sep 2021 14:26:37 -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=@gmail.com header.s=20210112 header.b=k5Abv4lP; 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 S1350588AbhIHVSn (ORCPT + 99 others); Wed, 8 Sep 2021 17:18:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39920 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231956AbhIHVSm (ORCPT ); Wed, 8 Sep 2021 17:18:42 -0400 Received: from mail-ot1-x32a.google.com (mail-ot1-x32a.google.com [IPv6:2607:f8b0:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EBAD9C061575 for ; Wed, 8 Sep 2021 14:17:33 -0700 (PDT) Received: by mail-ot1-x32a.google.com with SMTP id l16-20020a9d6a90000000b0053b71f7dc83so4726664otq.7 for ; Wed, 08 Sep 2021 14:17:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=TPlAlW9m0l3/305TAZdOn8PajEjpurMWCxqwt3GbkS4=; b=k5Abv4lPU09XKV+T9DT6mwM4nvhzpbp8w1z70/OHtY75Ynul9pQ6hYn5bXFmBFeMrW O0+919A9pdjrK0y3dcJvzhZin3ZKvXoUiyDt23xQHj/SSnlPAAi9VRQzz8a1I4ubHeF0 4nYBDLB8Lz6QbbDkoFiuCJHvyWUVUa3EzltHvqTW/L4+AUCf7EQWCKr68+2A7LB0C3ZB q4oXu0fljrYBN40kLy/hL1DYa7IAkakc0Yf4BDFQNlOFsl5vyYVrUyyUyf3OAkf0Gq/o aDrKuO+c9bQIEHnV0CzehyjBRrbMdQCVCf6U1wUNm2OTmqSD0tlRXzMVuymIfnAuoQV+ izxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=TPlAlW9m0l3/305TAZdOn8PajEjpurMWCxqwt3GbkS4=; b=cEMZdUstUlrJPRFqGjaAcplGE107cwP8SAC8nrZFK9CDIXwHwE3xxpfaR0UBEp4RQN gm4LtjGEqIdAulp+shl2SZCW3QO7mSXQJH6rIjQ9aKB8dAvCjEZX7Dzuv/IBto/8PLId /jDoFbXREG3k7VIAG8jE6VUGjm25HHD61454y86Jfj3wujB0wn6hJ30KO7Vwi5CEFw25 R66Fsf2c6OpF8bG9GJeiG4toDdqRvq/en0AhvYbON8zNCx5SjcULtXRPP/eUGAJrqXP1 ax2LPfLvg4MHSSV9xBUTXphHQM55iD3os22HSjWb8FIQAGySu9GMgEfk7Pfdcp9mbIIL eYWg== X-Gm-Message-State: AOAM5330Wic2y+wSM95rsy1Z/cf/j5/Xs0ezQK13mXYNlf7h5RO7ngca U+v2QPE1oDoLFbg+xFZ2DG0= X-Received: by 2002:a9d:7f07:: with SMTP id j7mr181524otq.84.1631135853295; Wed, 08 Sep 2021 14:17:33 -0700 (PDT) Received: from server.roeck-us.net ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id j8sm39523ooc.21.2021.09.08.14.16.32 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 08 Sep 2021 14:17:03 -0700 (PDT) Sender: Guenter Roeck Subject: Re: [PATCH] Enable '-Werror' by default for all kernel builds To: Nathan Chancellor , Arnd Bergmann Cc: Linus Torvalds , Linux Kernel Mailing List , llvm@lists.linux.dev, Nick Desaulniers , Paul Walmsley , Palmer Dabbelt , Albert Ou , linux-riscv@lists.infradead.org, Andrey Ryabinin , Alexander Potapenko , Dmitry Vyukov , Andrey Konovalov , kasan-dev@googlegroups.com References: <20210906142615.GA1917503@roeck-us.net> From: Guenter Roeck Message-ID: <75a10e8b-9f11-64c4-460b-9f3ac09965e2@roeck-us.net> Date: Wed, 8 Sep 2021 14:16:28 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/8/21 1:55 PM, Nathan Chancellor wrote: > Hi Arnd, > > On Tue, Sep 07, 2021 at 11:11:17AM +0200, Arnd Bergmann wrote: >> On Tue, Sep 7, 2021 at 4:32 AM Nathan Chancellor wrote: >>> >>> arm32-allmodconfig.log: crypto/wp512.c:782:13: error: stack frame size (1176) exceeds limit (1024) in function 'wp512_process_buffer' [-Werror,-Wframe-larger-than] >>> arm32-allmodconfig.log: drivers/firmware/tegra/bpmp-debugfs.c:294:12: error: stack frame size (1256) exceeds limit (1024) in function 'bpmp_debug_show' [-Werror,-Wframe-larger-than] >>> arm32-allmodconfig.log: drivers/firmware/tegra/bpmp-debugfs.c:357:16: error: stack frame size (1264) exceeds limit (1024) in function 'bpmp_debug_store' [-Werror,-Wframe-larger-than] >>> arm32-allmodconfig.log: drivers/gpu/drm/amd/amdgpu/../display/dc/calcs/dce_calcs.c:3043:6: error: stack frame size (1384) exceeds limit (1024) in function 'bw_calcs' [-Werror,-Wframe-larger-than] >>> arm32-allmodconfig.log: drivers/gpu/drm/amd/amdgpu/../display/dc/calcs/dce_calcs.c:77:13: error: stack frame size (5560) exceeds limit (1024) in function 'calculate_bandwidth' [-Werror,-Wframe-larger-than] >>> arm32-allmodconfig.log: drivers/mtd/chips/cfi_cmdset_0001.c:1872:12: error: stack frame size (1064) exceeds limit (1024) in function 'cfi_intelext_writev' [-Werror,-Wframe-larger-than] >>> arm32-allmodconfig.log: drivers/ntb/hw/idt/ntb_hw_idt.c:1041:27: error: stack frame size (1032) exceeds limit (1024) in function 'idt_scan_mws' [-Werror,-Wframe-larger-than] >>> arm32-allmodconfig.log: drivers/staging/fbtft/fbtft-core.c:902:12: error: stack frame size (1072) exceeds limit (1024) in function 'fbtft_init_display_from_property' [-Werror,-Wframe-larger-than] >>> arm32-allmodconfig.log: drivers/staging/fbtft/fbtft-core.c:992:5: error: stack frame size (1064) exceeds limit (1024) in function 'fbtft_init_display' [-Werror,-Wframe-larger-than] >>> arm32-allmodconfig.log: drivers/staging/rtl8723bs/core/rtw_security.c:1288:5: error: stack frame size (1040) exceeds limit (1024) in function 'rtw_aes_decrypt' [-Werror,-Wframe-larger-than] >>> arm32-fedora.log: drivers/gpu/drm/amd/amdgpu/../display/dc/calcs/dce_calcs.c:3043:6: error: stack frame size (1376) exceeds limit (1024) in function 'bw_calcs' [-Werror,-Wframe-larger-than] >>> arm32-fedora.log: drivers/gpu/drm/amd/amdgpu/../display/dc/calcs/dce_calcs.c:77:13: error: stack frame size (5384) exceeds limit (1024) in function 'calculate_bandwidth' [-Werror,-Wframe-larger-than] >>> >>> Aside from the dce_calcs.c warnings, these do not seem too bad. I >>> believe allmodconfig turns on UBSAN but it could also be aggressive >>> inlining by clang. I intend to look at all -Wframe-large-than warnings >>> closely later. >> >> I've had them close to zero in the past, but a couple of new ones came in. >> >> The amdgpu ones are probably not fixable unless they stop using 64-bit >> floats in the kernel for >> random calculations. The crypto/* ones tend to be compiler bugs, but hard to fix > > I have started taking a look at these. Most of the allmodconfig ones > appear to be related to CONFIG_KASAN, which is now supported for > CONFIG_ARM. > Would it make sense to make KASAN depend on !COMPILE_TEST ? After all, the point of KASAN is runtime testing, not build testing. Guenter