Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752708AbbFHO0Y (ORCPT ); Mon, 8 Jun 2015 10:26:24 -0400 Received: from mail-la0-f42.google.com ([209.85.215.42]:34563 "EHLO mail-la0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751896AbbFHO0S (ORCPT ); Mon, 8 Jun 2015 10:26:18 -0400 MIME-Version: 1.0 Date: Mon, 8 Jun 2015 17:26:16 +0300 Message-ID: Subject: Re: [PATCH] debug: Deprecate BUG_ON() use in new code, introduce CRASH_ON() From: Alexey Dobriyan To: Ingo Molnar Cc: Linux Kernel , lou_langholtz@me.com, htejun@gmail.com, Linus Torvalds , holler@ahsoftware.de Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1053 Lines: 27 Ingo Molnar wrote: > These days a BUG_ON() is almost always fatal due to unreleased locks, > plus we still don't print kernel crashes to the graphical console, > so they are silent hard lockups in 99% of the cases. Is it a regression? I've just tested with "echo c >/proc/sysrq-trigger" and kernel.panic_on_oops=1 and the box just hanged. But I clearly remember it started to work at some point and it was a miracle. Recently a colleague of mine show such graphical panic (most of it as always scrolled away BTW). It's usual setup with i915 driver, X and fbconsole which is never used. As for BUG_ON() I hope rule will be relaxed for "not under locks" situations and something will be done with inevitable miryads of trivial patches. Count them: $ chgrep -e BUG_ON -w -n | wc -l 9660 -- 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/