From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 54FA3C433F5 for ; Mon, 2 May 2022 18:00:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1386792AbiEBSDw (ORCPT ); Mon, 2 May 2022 14:03:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58558 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1386778AbiEBSDt (ORCPT ); Mon, 2 May 2022 14:03:49 -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 875CA32F for ; Mon, 2 May 2022 11:00:17 -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 497DDB81999 for ; Mon, 2 May 2022 18:00:16 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 91B65C385AC; Mon, 2 May 2022 18:00:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1651514414; bh=EubwGzbfbBYKRz56gIaYdoiNqVKpVK+pxTm8DS7GvNQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=tL1nasUabAClUQj0vHyo9fmQaefv0v2UsPdxEM3b0Q8C0HKe4ClW/DuFLtRjZBCyG iGgar/NCR1lRDQ+YQLFTlzfxhPK5r4YHIJLksmJEw+8DThHWXrsJq5BP1bbg0uxATm wKqevIxCY3B1AIdhwtGqBbrVJJ2x1tttTN4mEqqo8E8x63+8BQJpVp/WnaetpjQ7TL eo7055YbMDW/DEZBjbSIIEltuKEkzzZwb6zol1WvbKsKw62UuFilvQsQpG6F/jd21o EejZj0JkfdxFK2Ds/eMAXYAMw6jbuB9NNKCsQHIqolYPWYRlmXJUM7ZgCzS60fxFf0 WqdeI0KfZ9jIA== Date: Mon, 2 May 2022 11:00:12 -0700 From: Nathan Chancellor To: Matthew Wilcox Cc: kernel test robot , llvm@lists.linux.dev, kbuild-all@lists.01.org, linux-kernel@vger.kernel.org Subject: Re: [willy-pagecache:for-next 60/69] fs/ntfs/aops.c:378:12: warning: stack frame size (2216) exceeds limit (1024) in 'ntfs_read_folio' Message-ID: References: <202204301355.hFVoSOPa-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Apr 30, 2022 at 10:36:13PM +0100, Matthew Wilcox wrote: > On Sat, Apr 30, 2022 at 01:11:43PM +0800, kernel test robot wrote: > > >> fs/ntfs/aops.c:378:12: warning: stack frame size (2216) exceeds limit (1024) in 'ntfs_read_folio' [-Wframe-larger-than] > > static int ntfs_read_folio(struct file *file, struct folio *folio) > > ^ > > 1 warning generated. > > Am I getting this warning because I changed the name of the function? > Or did I do something Bad? I assume so. There have been other reports of high stack usage in this function, which it seems Arnd narrowed down to 64K pages (or 256K pages in this case): https://lore.kernel.org/20210927141815.1711736-1-arnd@kernel.org/ https://lore.kernel.org/202103280658.kByZmw5Q-lkp@intel.com/ Cheers, Nathan