Obviously it can only work if LOCAL_ACTIVE() == T. Signed-off-by: Oleg Nesterov <oleg@xxxxxxxxxx> --- kernel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel.c b/kernel.c index 5a392fc..d53249b 100644 --- a/kernel.c +++ b/kernel.c @@ -8452,7 +8452,7 @@ panic_this_kernel(void) { pid_t zero_pid = 0; - if (DUMPFILE()) + if (!LOCAL_ACTIVE()) error(FATAL, "cannot panic a dumpfile!\n"); if (!(pc->flags & MFD_RDWR) || (pc->flags & MEMMOD)) -- 2.5.0 -- Crash-utility mailing list Crash-utility@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/crash-utility