android_kernel_xiaomi_sm8350/arch/um/kernel/skas
Jeff Dike 00a905e614 uml: don't kill pid 0
A bit of defensive programming - during development, it ocassionally
happens that a call to init_new_context is missed, resulting in
context holding a host pid of zero.  When that address space is torn
down, destroy_context does a kill(0), which instantly kills the whole
UML without any errors whatsoever.

This patch add a check for pids less than 2, to also catch 1 and
negative pids.

Signed-off-by: Jeff Dike <jdike@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-02-05 09:44:30 -08:00
..
clone.c uml: clone.c tidying 2008-02-05 09:44:25 -08:00
Makefile uml: style fixes pass 3 2007-10-16 09:43:05 -07:00
mmu.c uml: don't kill pid 0 2008-02-05 09:44:30 -08:00
process.c uml: kill processes instead of panicing kernel 2008-02-05 09:44:28 -08:00
syscall.c uml: rename pt_regs general-purpose register file 2007-10-16 09:43:06 -07:00
uaccess.c uml: eliminate setjmp_wrapper 2008-02-05 09:44:29 -08:00