Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 25d639cb authored by Se Wang (Patrick) Oh's avatar Se Wang (Patrick) Oh
Browse files

kernel: lib: allow larger stack frame size for KASan



Some functions consume more than allowed stack frame
size with KASan enabled and GCC warns it as an error.
To avoid compilation warning, allow larger stack frame
size when KASan is enabled instead of changing each file.

Below is one of the warning messages for reference.
kernel/net/wireless/nl80211.c: In function 'nl80211_send_wiphy':
kernel/net/wireless/nl80211.c:1705:1: warning: the frame size
of 5488 bytes is larger than 2048 bytes [-Wframe-larger-than=]

Change-Id: I953018f459bf048366f0ba5ff7c980edcd9bbe07
Signed-off-by: default avatarSe Wang (Patrick) Oh <sewango@codeaurora.org>
parent da9777c8
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -195,6 +195,7 @@ config ENABLE_MUST_CHECK
config FRAME_WARN
	int "Warn for stack frames larger than (needs gcc 4.4)"
	range 0 8192
	default 5600 if KASAN
	default 1024 if !64BIT
	default 2048 if 64BIT
	help