Skip to content

Commit 3211573

Browse files
committed
Increase the default 32-bit build frame size warning limit to 1280 bytes
That was already the limit with KASAN enabled, and the 32-bit x86 build ends up having a couple of drm cases that have stack frames _just_ over 1kB on my allmodconfig test. So the minimal fix for this build issue for now is to just bump the limit and make it independent of KASAN. [ Side note: XTENSA already used 1.5k and PARISC uses 2k, so 1280 is still relatively conservative ] Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 430c89f commit 3211573

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

lib/Kconfig.debug

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -445,8 +445,7 @@ config FRAME_WARN
445445
default 2048 if GCC_PLUGIN_LATENT_ENTROPY
446446
default 2048 if PARISC
447447
default 1536 if (!64BIT && XTENSA)
448-
default 1280 if KASAN && !64BIT
449-
default 1024 if !64BIT
448+
default 1280 if !64BIT
450449
default 2048 if 64BIT
451450
help
452451
Tell the compiler to warn at build time for stack frames larger than this.

0 commit comments

Comments
 (0)