alistair23-linux/arch/mips
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
..
arc Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
au1000 [PATCH] simplify update_times (avoid jiffies/jiffies_64 aliasing problem) 2006-09-29 09:18:15 -07:00
basler/excite [MIPS] Move excite_fpga.h to include/asm-mips/mach-excite 2006-09-27 13:37:50 +01:00
boot
cobalt [MIPS] Replace board_timer_setup function pointer by plat_timer_setup. 2006-07-13 21:26:17 +01:00
configs [MIPS] Enable tmpfs for anything that possibly runs a full distribution. 2006-09-27 13:37:57 +01:00
ddb5xxx [MIPS] Replace board_timer_setup function pointer by plat_timer_setup. 2006-07-13 21:26:17 +01:00
dec [MIPS] Replace board_timer_setup function pointer by plat_timer_setup. 2006-07-13 21:26:17 +01:00
emma2rh [MIPS] Replace board_timer_setup function pointer by plat_timer_setup. 2006-07-13 21:26:17 +01:00
gt64120 [PATCH] simplify update_times (avoid jiffies/jiffies_64 aliasing problem) 2006-09-29 09:18:15 -07:00
ite-boards [MIPS] Replace board_timer_setup function pointer by plat_timer_setup. 2006-07-13 21:26:17 +01:00
jazz [MIPS] Replace board_timer_setup function pointer by plat_timer_setup. 2006-07-13 21:26:17 +01:00
jmr3927 [MIPS] Replace board_timer_setup function pointer by plat_timer_setup. 2006-07-13 21:26:17 +01:00
kernel [PATCH] provide kernel_execve on all architectures 2006-10-02 07:57:23 -07:00
lasat [MIPS] Replace board_timer_setup function pointer by plat_timer_setup. 2006-07-13 21:26:17 +01:00
lib Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
lib-32 Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
lib-64 Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
math-emu Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
mips-boards [MIPS] Atlas: update interrupt handling 2006-09-27 13:37:42 +01:00
mm [PATCH] pidspace: is_init() 2006-09-29 09:18:12 -07:00
momentum [PATCH] simplify update_times (avoid jiffies/jiffies_64 aliasing problem) 2006-09-29 09:18:15 -07:00
oprofile [MIPS] Oprofile: Fix build failure due to warning and -Werror. 2006-07-13 21:26:09 +01:00
pci [MIPS] Remove EV96100 as previously announced. 2006-09-27 13:37:55 +01:00
philips/pnx8550 [MIPS] Replace board_timer_setup function pointer by plat_timer_setup. 2006-07-13 21:26:17 +01:00
pmc-sierra [MIPS] Replace board_timer_setup function pointer by plat_timer_setup. 2006-07-13 21:26:17 +01:00
qemu [MIPS] Replace board_timer_setup function pointer by plat_timer_setup. 2006-07-13 21:26:17 +01:00
sgi-ip22 [PATCH] replace cad_pid by a struct pid 2006-10-02 07:57:25 -07:00
sgi-ip27 [PATCH] kill wall_jiffies 2006-10-01 00:39:27 -07:00
sgi-ip32 [PATCH] replace cad_pid by a struct pid 2006-10-02 07:57:25 -07:00
sibyte [MIPS] Fix 32-bit kernel by replacing 64-bit-only code. 2006-09-27 13:37:35 +01:00
sni [MIPS] Replace board_timer_setup function pointer by plat_timer_setup. 2006-07-13 21:26:17 +01:00
tx4927 [MIPS] Replace board_timer_setup function pointer by plat_timer_setup. 2006-07-13 21:26:17 +01:00
tx4938 [MIPS] Replace board_timer_setup function pointer by plat_timer_setup. 2006-07-13 21:26:17 +01:00
vr41xx [MIPS] vr41xx: Update workpad setup function 2006-07-13 21:26:21 +01:00
defconfig [MIPS] Enable tmpfs for anything that possibly runs a full distribution. 2006-09-27 13:37:57 +01:00
Kconfig [MIPS] Remove EV96100 as previously announced. 2006-09-27 13:37:55 +01:00
Kconfig.debug [MIPS] TRACE_IRQFLAGS_SUPPORT support. 2006-07-13 21:26:09 +01:00
Makefile [MIPS] Remove EV96100 as previously announced. 2006-09-27 13:37:55 +01:00