Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2470260rwb; Mon, 15 Aug 2022 06:08:51 -0700 (PDT) X-Google-Smtp-Source: AA6agR7hicJThvRL4C+vWO1xLSfgYWX2BYABuk7mRxOZsqC5UQng4g5gW94J4QUIRPpssZnCnvKU X-Received: by 2002:a17:907:a05a:b0:730:98b2:16d7 with SMTP id gz26-20020a170907a05a00b0073098b216d7mr10458030ejc.394.1660568930882; Mon, 15 Aug 2022 06:08:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660568930; cv=none; d=google.com; s=arc-20160816; b=sMCB08YClAspb61f42PUFVqeOHud6jTd5/WrA/w1SbTLsqS8w/q8tGdoVHQk8BdtkG P+tlh0mVTaFXRDUVQVVqMOqaOIR1KxFPtoy7rp+eWu8p6JZ/9wt+rJDiDMM7InZZnfIp DZRlcvRIw8G5hemCrwx8gEImSRuaTRc4YOm3XecZ5MvVYd+w+HVxgdGFiKQiX3mlRLBr E2JEM6XSsdTYulX1YffNlVFuuc85N1e1mUltBvbh41tOTsmiib1JkgbEzC/VxZ6dm5tw bifiSVxM05Onh14twUjzfXVEQKt1aqbPPU0tkLhAtVbv8xA3jCHurf1vCbq11x06jaAu zEVg== 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=RSQ+U6o/mP6GcLDmCdgdbkX0hxKm7Pl+bS3p7w3AJfI=; b=vpi6qsO8qYgwGUgr8kdRDuuj1lEzIwypybYYPsWym8YFON4PtAdkn2S7E5zHw8PCiT zMgnDVjCg9/vMx8Vq/57T5QGoHYesNPdCqfGVYgZWgt7YCpnlRg6fzQ8HcJTA9Nq9wm7 kijWkX9WCD9LZ2rDYf7ZokU+B3l3hVyv1t7/K/bu02eOPkjRsTfyYIWAt+XlMj7dW40k bR8ndhkBH76Dk7v8/Nc7WhtWt07IxlepBfE+zZH1exerRlmgrheBxf7O/Y9iOQSk06Np 4/bhaeZ85Kuk0Of1sLbUge0OTOLpSYP52v0+LjXNI5ltXKYqFFn49vqyAumP+v3bk4Et 9o0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MXacT48Y; 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 o3-20020aa7dd43000000b0043b6a4c1f1bsi6835012edw.143.2022.08.15.06.08.22; Mon, 15 Aug 2022 06:08:50 -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=MXacT48Y; 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 S242631AbiHOM4d (ORCPT + 99 others); Mon, 15 Aug 2022 08:56:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37462 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232091AbiHOM4c (ORCPT ); Mon, 15 Aug 2022 08:56:32 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B141D11C17 for ; Mon, 15 Aug 2022 05:56:31 -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 ams.source.kernel.org (Postfix) with ESMTPS id 6A78FB80C82 for ; Mon, 15 Aug 2022 12:56:30 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2F511C433D6 for ; Mon, 15 Aug 2022 12:56:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1660568189; bh=lvlMiVVah5yr20jbz3OzreKxmt2ds0C8MTIf3Hi13fU=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=MXacT48YCDUQkicSWhYVXZK42tG6S2xjTAPQxfiQ3lKe/JmVI1+i1OA+sEcFKp1U/ trSWHpab/wzMizk2bKi6/f8TNbhKC3pE3a2hBtFuI2wEKXlgRrKZggHtnIIhAvVtGv ROuqF6zlf2uBPsdR/obGImgUKPiwkI1LVQdb+Q7ye5B/xxOGqaKDbPXoFcHQIvFjWk Sryef1GuZ/9gUKUANG+GgVnfeXBtzDL45lfghL4rBNJMNltjxxVQ6GrqVKy0uVyOQ7 VyCpNbFXmVKMix8Jpg9qnksF3sjJgRXzY1mlcCoimfHgwnnywOB6hH/eogElg/A/Pc nmnI/ncFdy1Mg== Received: by mail-ej1-f51.google.com with SMTP id y13so13326839ejp.13 for ; Mon, 15 Aug 2022 05:56:29 -0700 (PDT) X-Gm-Message-State: ACgBeo0rvPfcVhCF/fJgQg46N2ubTZxEhFD+o3zAy8orfF9a57aMqq6K Rx+ddtHO099ja8cuKRD5DBUM0dGZrH9BOglKp7I= X-Received: by 2002:a17:906:9b08:b0:730:5d3c:4b1b with SMTP id eo8-20020a1709069b0800b007305d3c4b1bmr10215312ejc.606.1660568187406; Mon, 15 Aug 2022 05:56:27 -0700 (PDT) MIME-Version: 1.0 References: <202208140835.W6F1j6Da-lkp@intel.com> In-Reply-To: From: Arnd Bergmann Date: Mon, 15 Aug 2022 14:56:11 +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 2:29 PM Matthew Wilcox wrote: > > On Sun, Aug 14, 2022 at 08:21:36AM +0800, kernel test robot wrote: > > Hi Matthew, > > > > FYI, the error/warning still remains. > > FYI, this is still not interesting. > This is a hexagon 256kB PAGE_SIZE config, and so the amount of stack > space is correspondingly larger. The frame size warning should be > increased to allow for this. > > > >> fs/ntfs/aops.c:378:12: warning: stack frame size (2216) exceeds limit (1024) in 'ntfs_read_folio' [-Wframe-larger-than] I don't think we should change the frame size warning for this, there is not generally any correlation between page size and stack usage, so that would just hide bugs elsewhere. NTFS has had problems with stack usage on 64K+ pages before, the last time we addressed this using 4eec7faf6775 ("fs: ntfs: Limit NTFS_RW to page sizes smaller than 64k"), but it looks like this time it affects both write and read support. I checked hexagon ntfs with 64KB pages, and that stays below the 1024 byte limit, so we could add another dependency --- a/fs/ntfs/Kconfig +++ b/fs/ntfs/Kconfig @@ -1,6 +1,7 @@ # SPDX-License-Identifier: GPL-2.0-only config NTFS_FS tristate "NTFS file system support" + depends on PAGE_SIZE_LESS_THAN_256KB select NLS help NTFS is the file system of Microsoft Windows NT, 2000, XP and 2003. to rule out the broken case but still allow powerpc64 and arm64 with 64KB to use NTFS. Arnd