public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: David Laight <david.laight.linux@gmail.com>
To: Christian Kujau <lists@nerdbynature.de>
Cc: linux-kernel@vger.kernel.org,
	"Liam R. Howlett" <Liam.Howlett@oracle.com>,
	Arnd Bergmann <arnd@arndb.de>
Subject: Re: maple_tree.c:3738:1: error: the frame size of 1040 bytes is larger than 1024 bytes
Date: Thu, 30 Oct 2025 14:34:00 +0000	[thread overview]
Message-ID: <20251030143400.09fc0a89@pumpkin> (raw)
In-Reply-To: <769dc761-3ea6-76b9-d6a3-cd64a3fddfe3@nerdbynature.de>

On Thu, 30 Oct 2025 14:35:12 +0100 (CET)
Christian Kujau <lists@nerdbynature.de> wrote:

> Hi,
> 
> while cross-compiling the latest mainline checkout for x86_64, this 
> happened:
> 
> ------------------
> $ make -j24 O=${DIR} ARCH=x86 CROSS_COMPILE=x86_64-linux-gnu- \
>             CC="x86_64-linux-gnu-gcc" bzImage
> [...]
>   CC      lib/maple_tree.o
> lib/maple_tree.c: In function ‘mas_wr_bnode’:
> lib/maple_tree.c:3738:1: error: the frame size of 1040 bytes is larger than 1024 bytes [-Werror=frame-larger-than=]
>  3738 | }
>       | ^
> cc1: all warnings being treated as errors
> ------------------
> 
> This is basically "allnoconfig" with CONFIG_WERROR and some debugging 
> options enabled. I found 44081c77e8a4 ("maple_tree: reduce stack usage 
> with gcc-9 and earlier") where a similar issue has been reported before, 
> but this was 2023. I'm trying to build this on a Debian/13 arm64 system:
> 
> $ x86_64-linux-gnu-gcc --version | head -1
> x86_64-linux-gnu-gcc (Debian 14.2.0-19) 14.2.0
> 
> Git bisect pointed to:
> 
> ------------------
>  commit 9b05890a25d9197e39fcf5b2298f0b911c323306
>  Author: Liam R. Howlett <Liam.Howlett@oracle.com>
>  Date:   Wed Sep 3 15:00:01 2025 +0200
> 
>     maple_tree: Prefilled sheaf conversion and testing
> ------------------
> 
> This looks related, but I was unable to revert only this commit. I can try 
> harder, but maybe someone has an idea how to tackle this.

Does marking mas_wr_bnode() 'noinline' help?
Some functions are marked noinline for KASAN builds, the comment suggests
mas_wr_bnode() is one of them - but it isn't marked at all.

I'd try an unconditional noinline first.

	David

> 
> Thanks,
> Christian.


  reply	other threads:[~2025-10-30 14:34 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-10-30 13:35 maple_tree.c:3738:1: error: the frame size of 1040 bytes is larger than 1024 bytes Christian Kujau
2025-10-30 14:34 ` David Laight [this message]
2025-10-30 14:48   ` Christian Kujau
2025-10-30 16:51     ` David Laight
2025-10-30 17:13       ` Christian Kujau
2025-10-30 17:25         ` Christian Kujau
2025-10-30 20:56         ` David Laight
2025-11-25 23:09         ` Tiffany Yang
2025-12-05  0:49           ` Christian Kujau
2025-12-05  9:05             ` David Laight

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20251030143400.09fc0a89@pumpkin \
    --to=david.laight.linux@gmail.com \
    --cc=Liam.Howlett@oracle.com \
    --cc=arnd@arndb.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lists@nerdbynature.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox