Re: [PATCH] mtd: cfi_cmdset_0001: shrink do_write_buffer() stack frame
From: Miquel Raynal
Date: Fri Sep 04 2026 - 14:43:28 EST
On Mon, 24 Aug 2026 03:47:03 +0200, Karl Mehltretter wrote:
> arm32 allmodconfig fails to build with gcc:
>
> drivers/mtd/chips/cfi_cmdset_0001.c:1883:1: error: the frame size of 1296
> bytes is larger than 1280 bytes [-Werror=frame-larger-than=]
>
> With MTD_MAP_BANK_WIDTH_32 a map_word is 32 bytes, and with KASAN_STACK
> every temporary gets its own redzoned slot. do_write_buffer() builds a
> map_word for each of the twelve commands it issues, and those temporaries
> dominate its frame.
>
> [...]
Applied to mtd/fixes, thanks!
[1/1] mtd: cfi_cmdset_0001: shrink do_write_buffer() stack frame
commit: 39b975ff208610301bc400460ec245caeffa4ee0
Patche(s) should be available on mtd/linux.git and will be
part of the next PR (provided that no robot complains by then).
Kind regards,
Miquèl