Skip to content

Commit 921757b

Browse files
ramosian-gliderakpm00
authored andcommitted
Kconfig.debug: disable CONFIG_FRAME_WARN for KMSAN by default
KMSAN adds a lot of instrumentation to the code, which results in increased stack usage (up to 2048 bytes and more in some cases). It's hard to predict how big the stack frames can be, so we disable the warnings for KMSAN instead. Link: https://lkml.kernel.org/r/[email protected] Link: google/kmsan#89 Signed-off-by: Alexander Potapenko <[email protected]> Cc: Kees Cook <[email protected]> Cc: Masahiro Yamada <[email protected]> Cc: Nick Desaulniers <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent 42855f5 commit 921757b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/Kconfig.debug

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,8 +400,9 @@ config FRAME_WARN
400400
default 1536 if (!64BIT && XTENSA)
401401
default 1024 if !64BIT
402402
default 2048 if 64BIT
403+
default 0 if KMSAN
403404
help
404-
Tell gcc to warn at build time for stack frames larger than this.
405+
Tell the compiler to warn at build time for stack frames larger than this.
405406
Setting this too low will cause a lot of warnings.
406407
Setting it to 0 disables the warning.
407408

0 commit comments

Comments
 (0)