[PATCH] mtd: nftl: reduce stack usage in NFTL_movebuf()

Miquel Raynal miquel.raynal at bootlin.com
Wed Jun 18 02:17:10 PDT 2025


On Tue, 10 Jun 2025 11:25:22 +0200, Arnd Bergmann wrote:
> The code in the ntfl write function is rather complex, and it contains
> a 512 byte on-stack buffer. The combination of these two leads to using
> more than the per-function stack warning limit in some configurations,
> especially with KASAN enabled:
> 
> drivers/mtd/nftlcore.c:673:12: error: stack frame size (1328) exceeds limit (1280) in 'nftl_writeblock' [-Werror,-Wframe-larger-than]
> 
> [...]

Applied to mtd/next, thanks!

[1/1] mtd: nftl: reduce stack usage in NFTL_movebuf()
      commit: d22d5f47ecb2c4e140c0ee52204f4dd8fd0e85eb

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




More information about the linux-mtd mailing list