kernel_optimize_test/arch/um/kernel
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
..
skas uml: don't kill pid 0 2008-02-05 09:44:30 -08:00
asm-offsets.c
config.c.in
dyn.lds.S all archs: consolidate init and exit sections in vmlinux.lds.h 2008-01-28 23:21:17 +01:00
exec.c uml: cover stubs with a VMA 2008-02-05 09:44:29 -08:00
exitcode.c uml: get declaration of simple_strtoul 2007-06-08 17:23:33 -07:00
gmon_syms.c spelling fixes: arch/um/ 2007-10-20 01:23:03 +02:00
gprof_syms.c
init_task.c uml: style fixes pass 1 2007-10-16 09:43:05 -07:00
initrd.c uml: install panic notifier earlier 2008-02-05 09:44:29 -08:00
irq.c uml: miscellaneous code cleanups 2008-02-05 09:44:29 -08:00
ksyms.c uml: miscellaneous code cleanups 2008-02-05 09:44:29 -08:00
Makefile uml: style fixes pass 1 2007-10-16 09:43:05 -07:00
mem.c uml: fix page table data sizes 2008-02-05 09:44:28 -08:00
physmem.c uml: clean up TASK_SIZE usage 2008-02-05 09:44:29 -08:00
process.c uml: remove duplicate config symbol and unused file and variables 2008-02-05 09:44:29 -08:00
ptrace.c spelling fixes: arch/um/ 2007-10-20 01:23:03 +02:00
reboot.c uml: tidy kern_util.h 2008-02-05 09:44:26 -08:00
sigio.c uml: rename os_{read_write}_file_k back to os_{read_write}_file 2007-05-07 12:13:03 -07:00
signal.c uml: style fixes pass 3 2007-10-16 09:43:05 -07:00
smp.c uml: miscellaneous code cleanups 2008-02-05 09:44:29 -08:00
syscall.c uml: style fixes pass 3 2007-10-16 09:43:05 -07:00
sysrq.c uml: remove user_util.h 2007-05-07 12:13:01 -07:00
time.c uml: use *SEC_PER_*SEC constants 2007-10-16 09:43:08 -07:00
tlb.c uml: customize tlb.h 2008-02-05 09:44:29 -08:00
trap.c uml: kill processes instead of panicing kernel 2008-02-05 09:44:28 -08:00
uaccess.c uml: get rid of do_longjmp 2007-10-16 09:43:05 -07:00
um_arch.c uml: install panic notifier earlier 2008-02-05 09:44:29 -08:00
umid.c [PATCH] uml: umid tidying 2007-02-11 10:51:24 -08:00
uml.lds.S all archs: consolidate init and exit sections in vmlinux.lds.h 2008-01-28 23:21:17 +01:00
vmlinux.lds.S