From patchwork Mon Mar 6 19:09:41 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kees Cook X-Patchwork-Id: 9607363 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 5AD38601D2 for ; Mon, 6 Mar 2017 19:10:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 64DA926BE9 for ; Mon, 6 Mar 2017 19:10:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5965B27B2F; Mon, 6 Mar 2017 19:10:41 +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 598CD26BE9 for ; Mon, 6 Mar 2017 19:10:40 +0000 (UTC) Received: (qmail 9521 invoked by uid 550); 6 Mar 2017 19:10:11 -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 9324 invoked from network); 6 Mar 2017 19:10:07 -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=0gabP923Qcx95zQLqbxYvV1IH7z/YpZ9a8GjzSr15Lw=; b=jxlWJgT9lImJLFq1NgscTO5etVzMWN53bBA8mIMeaJdow3ARBZNkhUw1Vjbb7cEbm0 KT3gvBRu0UgBI95gYk0pkAf67VU/MLwjCa9/dQ+K6jW7/0Dz1Kgs2UvpUX8LCA94vhvS 1jgK69U/2u4uUGsyWxj8JbnW2lAa99NwZxo7c= 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=0gabP923Qcx95zQLqbxYvV1IH7z/YpZ9a8GjzSr15Lw=; b=mQdSViw7wpAYnw6lfYROfPUpBw/AoeJZ9Kxit6TtDhqkp3aWrerz3G9pwYOpov900s a8jQozZNFun5JgvvS2FZX3G73H30D7DJaRgRcYL8FBupHDU9YJJ/r0zfhAdCK+nZX2FM TmtSh7YRWnpd6lRMZTfwaIWBaRdOMBIJ2lMbFhgLDSvrFCUoOhBl8l2etDKUK8tIREFd R7WZPHrXqkqgvxO5l9THDPFoqesZ3Ftd1OC8lE31NwG4FFifOuVC6LjMOzvZzbLVVA+j wA3oQ19vvdeRcnZF6hfWw2a/sZj23BcAnfbw7V1EW7UP0jveWgLTivEOB/S8l3pywyQ0 oQ0Q== X-Gm-Message-State: AMke39m3ArC82gOlVmyW+xjvZrrUbl073VusuqzTyNw0YaduCxzAvisM28yscIdtEu6DgKX0 X-Received: by 10.99.101.199 with SMTP id z190mr22031640pgb.219.1488827395328; Mon, 06 Mar 2017 11:09:55 -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:41 -0800 Message-Id: <1488827386-87193-2-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 1/6] bug: Clarify help text for BUG_ON_DATA_CORRUPTION X-Virus-Scanned: ClamAV using ClamSMTP This expands on the Kconfig help text for CONFIG_BUG_ON_DATA_CORRUPTION. Signed-off-by: Kees Cook --- lib/Kconfig.debug | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index 97d62c2da6c2..4a73d46711fb 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug @@ -1995,9 +1995,11 @@ config BUG_ON_DATA_CORRUPTION bool "Trigger a BUG when data corruption is detected" select DEBUG_LIST help - Select this option if the kernel should BUG when it encounters - data corruption in kernel memory structures when they get checked - for validity. + This option enables several inexpensive data corruption checks. + Most of these checks normally just WARN and try to further avoid + the corruption. Selecting this option upgrades these to BUGs, so + that a system owner can furhter configure the system for immediate + reboots or crash dumps. If unsure, say N.