The patch titled Subject: kexec: allow kdump with crash_kexec_post_notifiers has been added to the -mm tree. Its filename is allow-kdump-with-crash_kexec_post_notifiers.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/allow-kdump-with-crash_kexec_post_notifiers.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/allow-kdump-with-crash_kexec_post_notifiers.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Petr Tesarik <ptesarik@xxxxxxxx> Subject: kexec: allow kdump with crash_kexec_post_notifiers If a crash kernel is loaded, do not crash the running domain. This is needed if the kernel is loaded with crash_kexec_post_notifiers, because panic notifiers are run before __crash_kexec() in that case, and this Xen hook prevents its being called later. Link: http://lkml.kernel.org/r/20160713122000.14969.99963.stgit@xxxxxxxxxxxxxxxx Signed-off-by: Petr Tesarik <ptesarik@xxxxxxxx> Cc: Juergen Gross <jgross@xxxxxxxx> Cc: Josh Triplett <josh@xxxxxxxxxxxxxxxx> Cc: Ingo Molnar <mingo@xxxxxxxxxx> Cc: Thomas Gleixner <tglx@xxxxxxxxxxxxx> Cc: Eric Biederman <ebiederm@xxxxxxxxxxxx> Cc: "H. Peter Anvin" <hpa@xxxxxxxxx> Cc: Boris Ostrovsky <boris.ostrovsky@xxxxxxxxxx> Cc: "Paul E. McKenney" <paulmck@xxxxxxxxxxxxxxxxxx> Cc: Dave Young <dyoung@xxxxxxxxxx> Cc: David Vrabel <david.vrabel@xxxxxxxxxx> Cc: Vivek Goyal <vgoyal@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- arch/x86/xen/enlighten.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff -puN arch/x86/xen/enlighten.c~allow-kdump-with-crash_kexec_post_notifiers arch/x86/xen/enlighten.c --- a/arch/x86/xen/enlighten.c~allow-kdump-with-crash_kexec_post_notifiers +++ a/arch/x86/xen/enlighten.c @@ -1325,7 +1325,8 @@ static void xen_crash_shutdown(struct pt static int xen_panic_event(struct notifier_block *this, unsigned long event, void *ptr) { - xen_reboot(SHUTDOWN_crash); + if (!kexec_crash_loaded()) + xen_reboot(SHUTDOWN_crash); return NOTIFY_DONE; } _ Patches currently in -mm which might be from ptesarik@xxxxxxxx are add-a-kexec_crash_loaded-function.patch allow-kdump-with-crash_kexec_post_notifiers.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html