Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2589131rwb; Mon, 15 Aug 2022 07:57:10 -0700 (PDT) X-Google-Smtp-Source: AA6agR4m+XYShF1M8dpFY61hfhSbH00vTVfUQkqJZdhJRDobpSJINXDbVbdgB3AvdPt/RG8mI/XO X-Received: by 2002:a17:90b:1907:b0:1f3:d6:985c with SMTP id mp7-20020a17090b190700b001f300d6985cmr19381508pjb.46.1660575430702; Mon, 15 Aug 2022 07:57:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660575430; cv=none; d=google.com; s=arc-20160816; b=h8/phlT/EdntQyZo61HXO2DerCQTEevpC7vazQ4f4z4ajn/6xxk/GIvK+pCSQqBF5h 2s2RKjZ2mU8Me+4NsFS+BkuwRh065lTsZg6bsHWWtfO4ImJdW9pApQ+PGQWX5FUHDUPA MMJwwWe6InD1DaAJmzirWTGokGBkdA+EQu96Gp8hinzdvRDpDSxMJX40SMYoERhIXbmP ubx+IzhHVLwrShhfQpsdPsI452AUejP29YTeCfTVn1WxJuIZJ/Llqt15ntDPrerXnbjx UBm9OxuNvc6plkl6/QlV5aTvQZwhfusRT5E4eKxFXV6pxxxZVvUT1tX4XZTrKiiwDt7d 5Vfw== 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=CqpMsx9/VjPKV7adIw8rdmZsp8IKr72b5rLF2Ymq8F0=; b=LRhalfoCZuYkEfxfeO7Qjb8rR5BUg4rFk6bRU+XmfX/9bZAedV7DiaVIQgEVNzhLFI WodqOvBtO/RQoEXmecZoGCyYejMERZFXP1B8fLJnJTC/zuaEKFtgg6DmIX7IxQqKFod6 JtnN9AVJ8lzc8TFMkJM97nhX3NnYPGEtCVcUVlTLNWm+KmaDoLHjKQqJS+Xrq66csGcW AFfG5iyaQCRZ06boYUVp3u4fV1N6NYD69yqiD7+s7lVLCMsZ2jiQ9Tk50/qbXFgqyxzE Vntgft2RVmS0UzV9MmM+xqi+ine/OQM8pblBS3rsxwWBEATs3oK9Y0zBMXbKLI4F/JvV QQpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=A2XJYEhj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o15-20020a635a0f000000b0041bb35b5dcasi10552903pgb.576.2022.08.15.07.56.59; Mon, 15 Aug 2022 07:57:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=A2XJYEhj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S240924AbiHOOha (ORCPT + 99 others); Mon, 15 Aug 2022 10:37:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49594 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232690AbiHOOh2 (ORCPT ); Mon, 15 Aug 2022 10:37:28 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 08A5ADA5 for ; Mon, 15 Aug 2022 07:37:27 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 8E91160FC4 for ; Mon, 15 Aug 2022 14:37:27 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E3B50C433D6 for ; Mon, 15 Aug 2022 14:37:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1660574246; bh=jfrvV04fo3CiDMoOZUz//YjuoPU5jqF0lo7fGVNmS6U=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=A2XJYEhjb1OmKn7pmq5fKHWcm5pecKHe2CBlG5qzk6RoDqh3Myw5F2B09cZPOluD6 qb2l2UoYFaO9d+a7SHvlhWQnJ67aQ0KZOJp3tXrb1HcxNaCX5FuxV0pRLBk1j8k14W oo4dvfLyJm6gq2kzWmn0Zc0pg1o03qcqsn+gl4J5uUv/k/SKtzp4Z1NrV38sRw3cl0 TQlOytNKeQJEi4GTetQX2oVCL4dEqtk9aeUeCcg8NpGNZAFwTJp1ED0urtpeo1fcvZ lCv1iBK7FgX6D0vHx7SXUoc7kL6PYfnylEpSqKrLpQvAmZc5PxN2W06twH7IZx03rB +pzpH6BwrDw5w== Received: by mail-ej1-f53.google.com with SMTP id i14so13845454ejg.6 for ; Mon, 15 Aug 2022 07:37:26 -0700 (PDT) X-Gm-Message-State: ACgBeo1yWjJekEREDaEK+YxoE/wLF961w1XOb0XZC9APA/bugoGPPPLO mIrY/3sQI+Du5x2bl87ZYAv79tx3qaXJ0tsbOoA= X-Received: by 2002:a17:907:960f:b0:731:1e3:b198 with SMTP id gb15-20020a170907960f00b0073101e3b198mr10726558ejc.470.1660574245159; Mon, 15 Aug 2022 07:37:25 -0700 (PDT) MIME-Version: 1.0 References: <202208140835.W6F1j6Da-lkp@intel.com> In-Reply-To: From: Arnd Bergmann Date: Mon, 15 Aug 2022 16:37:09 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: fs/ntfs/aops.c:378:12: warning: stack frame size (2216) exceeds limit (1024) in 'ntfs_read_folio' To: Matthew Wilcox Cc: kernel test robot , llvm@lists.linux.dev, kbuild-all@lists.01.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 15, 2022 at 3:48 PM Arnd Bergmann wrote: > I have no problems with a patch removing support for 256KB pages if that > helps, as Hexagon is the only architecture to support this and there are close > to zero Linux users anway. This would leave only three warnings for 64KB > pages in allmodconfig: > > fs/mpage.c:131:20: error: stack frame size (1128) exceeds limit (1024) > in 'do_mpage_readpage' [-Werror,-Wframe-larger-than] > fs/mpage.c:447:12: error: stack frame size (1264) exceeds limit (1024) > in '__mpage_writepage' [-Werror,-Wframe-larger-than] > fs/ext4/readpage.c:223:5: error: stack frame size (1208) exceeds limit > (1024) in 'ext4_mpage_readpages' [-Werror,-Wframe-larger-than] I looked into these a bit more and found that these are arrays of sector_t, which could be either 32-bit or 64-bit wide before 72deb455b5ec ("block: remove CONFIG_LBDAF"), but is now always 64-bit, so having an array of 128 of these (65536/512) adds a 1KB to the stack and will cause a warning. It's only slightly over the limit, and there are very few 32-bit systems that allow 64KB pages to trigger that warning. I see now that ppc440 also supports 256KB pages and has the same problem as hexagon, but also has been broken since the start of the git history in this regard: fs/mpage.c:638:1: error: the frame size of 4280 bytes is larger than 2048 bytes [-Werror=frame-larger-than=] I don't know if anyone strongly cares about 256KB pages on ppc44x any more, but given this, I'm fairly sure that they are not using block based file systems. So we could just make CONFIG_BLOCK depend on PAGE_SIZE_LESS_THAN_256KB globally instead of dropping 256KB pages everywhere. Arnd