android_kernel_motorola_sm6225/arch/powerpc/platforms
Cedric Le Goater 9ec52099e4 [PATCH] replace cad_pid by a struct pid
There are a few places in the kernel where the init task is signaled.  The
ctrl+alt+del sequence is one them.  It kills a task, usually init, using a
cached pid (cad_pid).

This patch replaces the pid_t by a struct pid to avoid pid wrap around
problem.  The struct pid is initialized at boot time in init() and can be
modified through systctl with

	/proc/sys/kernel/cad_pid

[ I haven't found any distro using it ? ]

It also introduces a small helper routine kill_cad_pid() which is used
where it seemed ok to use cad_pid instead of pid 1.

[akpm@osdl.org: cleanups, build fix]
Signed-off-by: Cedric Le Goater <clg@fr.ibm.com>
Cc: Eric W. Biederman <ebiederm@xmission.com>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: Paul Mackerras <paulus@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-10-02 07:57:25 -07:00
..
4xx ppc: Various minor compile fixes 2005-10-11 22:08:12 +10:00
8xx powerpc: Merge enough to start building in arch/powerpc. 2005-09-26 16:04:21 +10:00
83xx Merge branch 'merge' 2006-08-31 15:45:48 +10:00
85xx Merge branch 'merge' 2006-08-25 14:56:07 +10:00
86xx Merge branch 'linux-2.6' 2006-09-14 07:07:18 +10:00
apus powerpc: Merge enough to start building in arch/powerpc. 2005-09-26 16:04:21 +10:00
cell [PATCH] inode-diet: Eliminate i_blksize from the inode structure 2006-09-27 08:26:18 -07:00
chrp [POWERPC] chrp: Constify & voidify get_property() 2006-07-31 15:55:05 +10:00
embedded6xx Merge branch 'merge' 2006-08-31 15:45:48 +10:00
iseries [PATCH] replace cad_pid by a struct pid 2006-10-02 07:57:25 -07:00
maple [POWERPC] Demacrofy arch/powerpc/platforms/maple/pci.c 2006-09-22 15:19:58 +10:00
pasemi [POWERPC] powerpc: PA Semi PWRficient platform support 2006-09-13 18:39:53 +10:00
powermac [PATCH] completions: lockdep annotate on stack completions 2006-10-01 00:39:24 -07:00
prep powerpc: Merge enough to start building in arch/powerpc. 2005-09-26 16:04:21 +10:00
pseries [PATCH] namespaces: utsname: use init_utsname when appropriate 2006-10-02 07:57:21 -07:00
Makefile [POWERPC] powerpc: PA Semi PWRficient platform support 2006-09-13 18:39:53 +10:00