From 8bb334401c8410620a7a96b0737ca81f41a1679f Mon Sep 17 00:00:00 2001 From: "Se Wang (Patrick) Oh" Date: Tue, 21 Jul 2015 20:42:34 -0700 Subject: [PATCH] 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: Se Wang (Patrick) Oh [satyap: trivial merge conflict resolution] Signed-off-by: Satya Durga Srinivasu Prabhala --- lib/Kconfig.debug | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index 0ad85a67c7ef..97d6c08dd9f7 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug @@ -197,7 +197,7 @@ config ENABLE_MUST_CHECK config FRAME_WARN int "Warn for stack frames larger than (needs gcc 4.4)" range 0 8192 - default 0 if KASAN + default 5600 if KASAN default 1024 if !64BIT default 2048 if 64BIT help