Message-ID: <1491371241.22446.11.camel@hellion.org.uk> From: Ian Campbell Date: Wed, 05 Apr 2017 06:47:21 +0100 In-Reply-To: <1491343938-75336-2-git-send-email-keescook@chromium.org> References: <1491343938-75336-1-git-send-email-keescook@chromium.org> <1491343938-75336-2-git-send-email-keescook@chromium.org> Content-Type: text/plain; charset="ISO-8859-1" Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [kernel-hardening] [PATCH v2 1/7] bug: Clarify help text for BUG_ON_DATA_CORRUPTION To: Kees Cook , Ingo Molnar Cc: Peter Zijlstra , "Paul E. McKenney" , Kalle Valo , Andrew Morton , Rik van Riel , Jakub Kicinski , Viresh Kumar , Andy Shevchenko , Geert Uytterhoeven , Olof Johansson , Chris Wilson , George Spelvin , Thomas Gleixner , Josh Poimboeuf , David Windsor , linux-kernel@vger.kernel.org, kernel-hardening@lists.openwall.com List-ID: > diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug > index 77fadface4f9..5ac4d1148385 100644 > --- a/lib/Kconfig.debug > +++ b/lib/Kconfig.debug > @@ -1998,9 +1998,12 @@ 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 First it says it enables some checks, but here it says it upgrades them to BUGs which seems inconsistent. > +   that the offending process is killed. Additionally, the system > +   owner can furhter configure the system for immediate reboots "further" > +   (via panic_on_oops sysctl) or crash dumps. >   > >     If unsure, say N. >