Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752959AbbBXJjx (ORCPT ); Tue, 24 Feb 2015 04:39:53 -0500 Received: from mail-we0-f173.google.com ([74.125.82.173]:40499 "EHLO mail-we0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752913AbbBXJjr (ORCPT ); Tue, 24 Feb 2015 04:39:47 -0500 MIME-Version: 1.0 In-Reply-To: <20150224063513.GA15387@gmail.com> References: <1424748634-9153-1-git-send-email-anton@samba.org> <20150224063513.GA15387@gmail.com> Date: Tue, 24 Feb 2015 01:39:46 -0800 Message-ID: Subject: Re: [PATCH 0/7] Serialise oopses, BUGs, WARNs, dump_stack, soft lockups and hard lockups From: Arjan van de Ven To: Ingo Molnar Cc: Anton Blanchard , Andrew Morton , Steven Rostedt , Michael Ellerman , Paul Mackerras , Benjamin Herrenschmidt , sam.bobroff@au1.ibm.com, Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Russell King , Peter Zijlstra , Don Zickus , linux-arm-kernel@lists.infradead.org, LKML , ppc-dev , X86 ML , Linus Torvalds , Arjan van de Ven 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: 1199 Lines: 29 >> Some architectures already have their own recursive >> locking for oopses and we have another version for >> serialising dump_stack. >> >> Create a common version and use it everywhere (oopses, >> BUGs, WARNs, dump_stack, soft lockups and hard lockups). > > Dunno. I've had cases where the simultaneity of the oopses > (i.e. their garbled nature) gave me the clue about the type > of race to expect. > one of the question is if you want to serialize, or if you just want to label. If you take a cookie (could just be a monotonic increasing number) at the start of the oops and then prefix/postfix the stack printing with that number, you don't serialize (risk of locking up), but you can pretty trivially see which line came from where.. if you do the monotonic increasing number approach, you even get an ordering out of it. it does mean changing the dump_stack() and co function fingerprint to take an extra argument, but that is not TOO insane. -- 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/