The patch titled kexec: remove KMSG_DUMP_KEXEC has been added to the -mm tree. Its filename is kexec-remove-kmsg_dump_kexec.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 *** See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find out what to do about this The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: kexec: remove KMSG_DUMP_KEXEC From: WANG Cong <xiyou.wangcong@xxxxxxxxx> KMSG_DUMP_KEXEC is useless because we already save kernel messages inside /proc/vmcore, and it is unsafe to allow modules to do other stuffs in a crash dump scenario. Signed-off-by: WANG Cong <xiyou.wangcong@xxxxxxxxx> Reported-by: Vivek Goyal <vgoyal@xxxxxxxxxx> Acked-by: Vivek Goyal <vgoyal@xxxxxxxxxx> Acked-by: Jarod Wilson <jarod@xxxxxxxxxx> Cc: "Eric W. Biederman" <ebiederm@xxxxxxxxxxxx> Cc: "Eric W. Biederman" <ebiederm@xxxxxxxxxxxx> Cc: KOSAKI Motohiro <kosaki.motohiro@xxxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/char/ramoops.c | 3 +-- drivers/mtd/mtdoops.c | 3 +-- include/linux/kmsg_dump.h | 1 - kernel/kexec.c | 3 --- 4 files changed, 2 insertions(+), 8 deletions(-) diff -puN drivers/char/ramoops.c~kexec-remove-kmsg_dump_kexec drivers/char/ramoops.c --- a/drivers/char/ramoops.c~kexec-remove-kmsg_dump_kexec +++ a/drivers/char/ramoops.c @@ -69,8 +69,7 @@ static void ramoops_do_dump(struct kmsg_ struct timeval timestamp; if (reason != KMSG_DUMP_OOPS && - reason != KMSG_DUMP_PANIC && - reason != KMSG_DUMP_KEXEC) + reason != KMSG_DUMP_PANIC) return; /* Only dump oopses if dump_oops is set */ diff -puN drivers/mtd/mtdoops.c~kexec-remove-kmsg_dump_kexec drivers/mtd/mtdoops.c --- a/drivers/mtd/mtdoops.c~kexec-remove-kmsg_dump_kexec +++ a/drivers/mtd/mtdoops.c @@ -308,8 +308,7 @@ static void mtdoops_do_dump(struct kmsg_ char *dst; if (reason != KMSG_DUMP_OOPS && - reason != KMSG_DUMP_PANIC && - reason != KMSG_DUMP_KEXEC) + reason != KMSG_DUMP_PANIC) return; /* Only dump oopses if dump_oops is set */ diff -puN include/linux/kmsg_dump.h~kexec-remove-kmsg_dump_kexec include/linux/kmsg_dump.h --- a/include/linux/kmsg_dump.h~kexec-remove-kmsg_dump_kexec +++ a/include/linux/kmsg_dump.h @@ -17,7 +17,6 @@ enum kmsg_dump_reason { KMSG_DUMP_OOPS, KMSG_DUMP_PANIC, - KMSG_DUMP_KEXEC, KMSG_DUMP_RESTART, KMSG_DUMP_HALT, KMSG_DUMP_POWEROFF, diff -puN kernel/kexec.c~kexec-remove-kmsg_dump_kexec kernel/kexec.c --- a/kernel/kexec.c~kexec-remove-kmsg_dump_kexec +++ a/kernel/kexec.c @@ -32,7 +32,6 @@ #include <linux/console.h> #include <linux/vmalloc.h> #include <linux/swap.h> -#include <linux/kmsg_dump.h> #include <asm/page.h> #include <asm/uaccess.h> @@ -1078,8 +1077,6 @@ void crash_kexec(struct pt_regs *regs) if (kexec_crash_image) { struct pt_regs fixed_regs; - kmsg_dump(KMSG_DUMP_KEXEC); - crash_setup_regs(&fixed_regs, regs); crash_save_vmcoreinfo(); machine_crash_shutdown(&fixed_regs); _ Patches currently in -mm which might be from xiyou.wangcong@xxxxxxxxx are linux-next.patch uml-kernels-on-i386x86_64-produce-bad-coredumps.patch kernel-gcov-makefile-use-proper-ccflag-flag-in-makefile.patch kexec-remove-kmsg_dump_kexec.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