* [PATCH] latent_entropy: raise CONFIG_FRAME_WARN by default
@ 2016-10-18 21:12 Kees Cook
0 siblings, 0 replies; only message in thread
From: Kees Cook @ 2016-10-18 21:12 UTC (permalink / raw)
To: linux-kernel
Cc: Andrew Morton, Ingo Molnar, Michal Marek, Paul E. McKenney,
Dan Williams, Andrey Ryabinin, Josh Poimboeuf, Tejun Heo,
Nikolay Aleksandrov, Dmitry Vyukov, Shuah Khan, kbuild test robot,
Emese Revfy
When building with the latent_entropy plugin, set the default
CONFIG_FRAME_WARN to 2048, since some __init functions have many basic
blocks that, when instrumented by the latent_entropy plugin, grow beyond
1024 byte stack size on 32-bit builds.
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Cc: Emese Revfy <re.emese@gmail.com>
Signed-off-by: Kees Cook <keescook@chromium.org>
---
lib/Kconfig.debug | 1 +
1 file changed, 1 insertion(+)
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index 33bc56cf60d7..b01e547d4d04 100644
--- a/lib/Kconfig.debug
+++ b/lib/Kconfig.debug
@@ -198,6 +198,7 @@ config FRAME_WARN
int "Warn for stack frames larger than (needs gcc 4.4)"
range 0 8192
default 0 if KASAN
+ default 2048 if GCC_PLUGIN_LATENT_ENTROPY
default 1024 if !64BIT
default 2048 if 64BIT
help
--
2.7.4
--
Kees Cook
Nexus Security
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2016-10-18 21:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-18 21:12 [PATCH] latent_entropy: raise CONFIG_FRAME_WARN by default Kees Cook
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox