Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754489AbbGJLkE (ORCPT ); Fri, 10 Jul 2015 07:40:04 -0400 Received: from mail7.hitachi.co.jp ([133.145.228.42]:52973 "EHLO mail7.hitachi.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754046AbbGJLjz (ORCPT ); Fri, 10 Jul 2015 07:39:55 -0400 X-AuditID: 85900ec0-9cdc8b9000001a57-6a-559faef01209 X-Mailbox-Line: From nobody Fri Jul 10 20:33:31 2015 Subject: [PATCH 0/3] kexec: crash_kexec_post_notifiers boot option related fixes To: Andrew Morton , "Eric W. Biederman" , Vivek Goyal From: Hidehiro Kawai Cc: linux-mips@linux-mips.org, Baoquan He , linux-sh@vger.kernel.org, linux-s390@vger.kernel.org, kexec@lists.infradead.org, linux-kernel@vger.kernel.org, Ingo Molnar , HATAYAMA Daisuke , Masami Hiramatsu , Daniel Walker , linuxppc-dev@lists.ozlabs.org, linux-metag@vger.kernel.org, linux-arm-kernel@lists.infradead.org Date: Fri, 10 Jul 2015 20:33:31 +0900 Message-ID: <20150710113331.4368.10495.stgit@softrs> User-Agent: StGit/0.16 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Brightmail-Tracker: AAAAAA== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2051 Lines: 55 This is a bugfix patch set for crash_kexec_post_notifiers boot option which allows users to call panic notifiers and kmsg dumpers before kdump. The main patch is PATCH 3/3, and it fixes two problems reported by Daniel Walker (https://lkml.org/lkml/2015/6/24/44). Problem 1: If crash_kexec_post_notifiers boot option is specified, some shutting down process which assume other cpus are still alive don't work properly. Problem 2: If crash_kexec_post_notifiers boot option is specified, register information of other cpus are not saved to crash dumps. PATCH 3/3 is also another solution for a bug reported by Daisuke Hatayama (https://lkml.org/lkml/2015/5/15/284). So, this patch replace commits 5375b70 and f45d85f which fix the bug. --- Hidehiro Kawai (3): panic: Disable crash_kexec_post_notifiers if kdump is not available kexec: Pass panic message to crash_kexec() kexec: Change the timing of callbacks related to "crash_kexec_post_notifiers" boot option Documentation/kernel-parameters.txt | 4 ++ arch/arm/kernel/traps.c | 2 + arch/arm64/kernel/traps.c | 2 + arch/metag/kernel/traps.c | 2 + arch/mips/kernel/traps.c | 2 + arch/powerpc/kernel/traps.c | 2 + arch/s390/kernel/ipl.c | 2 + arch/sh/kernel/traps.c | 2 + arch/x86/kernel/dumpstack.c | 2 + arch/x86/platform/uv/uv_nmi.c | 2 + include/linux/kernel.h | 1 + include/linux/kexec.h | 7 +++- kernel/kexec.c | 62 ++++++++++++++++++++++++++++++----- kernel/panic.c | 23 ++++--------- 14 files changed, 80 insertions(+), 35 deletions(-) -- Hidehiro Kawai Hitachi, Ltd. Research & Development Group -- 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/