From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935646AbcJRVM1 (ORCPT ); Tue, 18 Oct 2016 17:12:27 -0400 Received: from mail-pf0-f175.google.com ([209.85.192.175]:36419 "EHLO mail-pf0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750770AbcJRVMT (ORCPT ); Tue, 18 Oct 2016 17:12:19 -0400 Date: Tue, 18 Oct 2016 14:12:16 -0700 From: Kees Cook To: linux-kernel@vger.kernel.org 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 Subject: [PATCH] latent_entropy: raise CONFIG_FRAME_WARN by default Message-ID: <20161018211216.GA39687@beast> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Cc: Emese Revfy Signed-off-by: Kees Cook --- 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