Return-Path: Received: from ozlabs.org (bilbo.ozlabs.org [103.22.144.67]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3zPxqw5q2QzF0XV for ; Mon, 22 Jan 2018 14:34:20 +1100 (AEDT) In-Reply-To: <20171223164923.10587-2-npiggin@gmail.com> To: Nicholas Piggin , linuxppc-dev@lists.ozlabs.org From: Michael Ellerman Cc: Nicholas Piggin , David Gibson Subject: Re: [1/2] powerpc: System reset avoid interleaving oops using die synchronisation Message-Id: <3zPxqv4M00z9sNx@ozlabs.org> Date: Mon, 22 Jan 2018 14:34:19 +1100 (AEDT) List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Sat, 2017-12-23 at 16:49:22 UTC, Nicholas Piggin wrote: > The die() oops path contains a serializing lock to prevent oops > messages from being interleaved. In the case of a system reset > initiated oops (e.g., qemu nmi command), __die was being called > which lacks that synchronisation and oops reports could be > interleaved across CPUs. > > A recent patch 4388c9b3a6ee7 ("powerpc: Do not send system reset > request through the oops path") changed this to __die to avoid > the debugger() call, but there is no real harm to calling it twice > if the first time fell through. So go back to using die() here. > This was observed to fix the problem. > > Fixes: 4388c9b3a6ee7 ("powerpc: Do not send system reset request through the oops path") > Signed-off-by: Nicholas Piggin > Reviewed-by: David Gibson Applied to powerpc next, thanks. https://git.kernel.org/powerpc/c/4552d128c26e0f0f27a5bd2fadc240 cheers