Skip to contentSkip to conversation

latent_entropy: raise CONFIG_FRAME_WARN by default

PATCH Applied Kees Cook 1 participant 1 message Oct 18, 2016 Library code

lore
Share & tools
lore

Kees Cook

author
#0 lore raw

PATCH 1/1 latent_entropy: raise CONFIG_FRAME_WARN by default

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.

---
 lib/Kconfig.debug | 1 +
 1 file changed, 1 insertion(+)
lib/Kconfig.debug +1 -0
index 33bc56cf60d7..b01e547d4d04 100644
@@ -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
Signature · 6 lines
2.7.4


-- 
Kees Cook
Nexus Security