From patchwork Mon Mar 6 19:09:43 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kees Cook X-Patchwork-Id: 9607353 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 2AE0B601D2 for ; Mon, 6 Mar 2017 19:10:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 34DCE26BE9 for ; Mon, 6 Mar 2017 19:10:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2983B27B2F; Mon, 6 Mar 2017 19:10:20 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from mother.openwall.net (mother.openwall.net [195.42.179.200]) by mail.wl.linuxfoundation.org (Postfix) with SMTP id 4321626BE9 for ; Mon, 6 Mar 2017 19:10:18 +0000 (UTC) Received: (qmail 9346 invoked by uid 550); 6 Mar 2017 19:10:07 -0000 Mailing-List: contact kernel-hardening-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Delivered-To: mailing list kernel-hardening@lists.openwall.com Received: (qmail 9298 invoked from network); 6 Mar 2017 19:10:06 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=uO4+a4MsNOgS4hw7+w245qaRscJqHxJ/5Ua1SYc/FJc=; b=Gt9wCIJ/eGbB+1NgMgHgfet09nJVfmBKntEOgXw9ERTJ9QIFZQc7iM9BP1E/qpXudM nYzfiGMxaZPIq1ccqlgHj8bIKfnOpHS3eKjhTr3czQjMp0+yXAqaQ5bDF9tCiBQqZT+O jiKxvcshlE5fVV+YiqoIHa2t5cBrNuRRU0WfY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=uO4+a4MsNOgS4hw7+w245qaRscJqHxJ/5Ua1SYc/FJc=; b=AhIRwqlgLYpC5X3sii4fH8arA1QfPxhMs2XONX7VTRdulLWUUmCiE8Od1WQ/ZKUa65 zL+SIHNYyIkyMpYQqj5Tc2hzt3WpmkAPsbbPFS3ce2/vm3a3IDMY16WpdksDWiMFryMS oiLnLiR+UJs/hfhUg8G7QcqvYdIajcd5ddFo430nO5ntNBcW6XG8rk6crc7xflN1G7f1 WuLSTGFODy0wjLh2n215MSzFW6L/54zYS+fp8qhKJpBU4PSQEmZ2BP6mkDkBw18UukVC wWPBePr7aWJpmDrsMxlinm672JkkGKylC0b3bGwZ/wlryW3H/HNJGXf7Q04daR8zQcg9 AVDg== X-Gm-Message-State: AMke39khO1u9anrLu0C8NfyUfQU/XwcQuYB6aPXoOQvtb5i48X2CBKk+5cd4p8aLuqLBfFUn X-Received: by 10.84.196.164 with SMTP id l33mr29399275pld.0.1488827394205; Mon, 06 Mar 2017 11:09:54 -0800 (PST) From: Kees Cook To: kernel-hardening@lists.openwall.com Cc: Kees Cook , Andrew Morton , Rik van Riel , "Paul E. McKenney" , Jakub Kicinski , Viresh Kumar , Ingo Molnar , Thomas Gleixner , Dmitry Vyukov , Olof Johansson , Peter Zijlstra , Josh Poimboeuf , linux-kernel@vger.kernel.org Date: Mon, 6 Mar 2017 11:09:43 -0800 Message-Id: <1488827386-87193-4-git-send-email-keescook@chromium.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1488827386-87193-1-git-send-email-keescook@chromium.org> References: <1488827386-87193-1-git-send-email-keescook@chromium.org> Subject: [kernel-hardening] [PATCH 3/6] bug: Enable DEBUG_CREDENTIALS under BUG_ON_DATA_CORRUPTION X-Virus-Scanned: ClamAV using ClamSMTP Since CONFIG_DEBUG_CREDENTIALS already handles reporting and issuing a BUG when it encounters corruption, add this to the list of corruption test CONFIGs that are enabled under CONFIG_BUG_ON_DATA_CORRUPTION. Signed-off-by: Kees Cook --- lib/Kconfig.debug | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index 4a73d46711fb..009d6f8c7e5a 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug @@ -1287,7 +1287,7 @@ config DEBUG_NOTIFIERS config DEBUG_CREDENTIALS bool "Debug credential management" - depends on DEBUG_KERNEL + depends on DEBUG_KERNEL || BUG_ON_DATA_CORRUPTION help Enable this to turn on some debug checking for credential management. The additional code keeps track of the number of @@ -1993,6 +1993,7 @@ config TEST_STATIC_KEYS config BUG_ON_DATA_CORRUPTION bool "Trigger a BUG when data corruption is detected" + select DEBUG_CREDENTIALS select DEBUG_LIST help This option enables several inexpensive data corruption checks.