Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

um: fix crash while os_dump_core()

os_dump_core() emits SIGTERM to terminate all UML processes. Kernel
threads have to exit on SIGTERM instead of calling last_ditch_exit().
Multiple calls to last_ditch_exit() can cause a crash.

Signed-off-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Richard Weinberger and committed by
Linus Torvalds
db271cf0 607647ab

+1
+1
arch/um/os-Linux/process.c
··· 253 253 SA_ONSTACK | SA_RESTART, SIGUSR1, SIGIO, SIGWINCH, SIGALRM, 254 254 SIGVTALRM, -1); 255 255 signal(SIGWINCH, SIG_IGN); 256 + signal(SIGTERM, SIG_DFL); 256 257 } 257 258 258 259 int run_kernel_thread(int (*fn)(void *), void *arg, jmp_buf **jmp_ptr)