Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932126AbbFHL33 (ORCPT ); Mon, 8 Jun 2015 07:29:29 -0400 Received: from mail-wi0-f177.google.com ([209.85.212.177]:36248 "EHLO mail-wi0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932109AbbFHL3W (ORCPT ); Mon, 8 Jun 2015 07:29:22 -0400 Date: Mon, 8 Jun 2015 13:29:17 +0200 From: Ingo Molnar To: Alexander Holler Cc: Richard Weinberger , Linus Torvalds , Tejun Heo , Louis Langholtz , Linux Kernel Mailing List , Trivial patch monkey , Rusty Russell , Andrew Morton , Peter Zijlstra , Thomas Gleixner , Greg Kroah-Hartman Subject: Re: [PATCH] debug: Deprecate BUG_ON() use in new code, introduce CRASH_ON() Message-ID: <20150608112917.GB20511@gmail.com> References: <1433721270-9182-1-git-send-email-lou_langholtz@me.com> <20150608000007.GA3543@mtj.duckdns.org> <20150608071215.GA369@gmail.com> <557546E6.5030304@ahsoftware.de> <5575558E.5070706@ahsoftware.de> <20150608090509.GA19160@gmail.com> <20150608091132.GA19566@gmail.com> <55755EBB.7020105@ahsoftware.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <55755EBB.7020105@ahsoftware.de> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1111 Lines: 26 * Alexander Holler wrote: > > Also note that BUG_ON() will make data corruption _worse_ statistically. Why? > > Because most data corruptions are unlikely to be perfectly detected by a > > BUG_ON(), and the BUG_ON() delays the finding of the underlying bug, so the > > bug will hit more people before it's fixed for good. > > > > So even in the cases where you could argue that the system needs to stop, > > because we have evidence of data corruption, it's statistically the better > > approach to continue and get kernel log info back to developers. > > Risking more, maybe even worse problems like corrupting file systems or similiar > in order to have a slightly chance of save log info? That's not what I said - please read my argument and argue with that if you want, not with some other straw-man argument... Thanks, Ingo -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/