android_kernel_xiaomi_sm8350/arch/powerpc
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
..
boot [POWERPC] Start arch/powerpc/boot code reorganization 2006-09-20 15:09:58 +10:00
configs Merge branch 'linux-2.6' 2006-09-14 07:07:18 +10:00
kernel [PATCH] rename the provided execve functions to kernel_execve 2006-10-02 07:57:23 -07:00
lib [POWERPC] make spinlocks work in a combined kernel 2006-09-20 14:01:16 +10:00
math-emu Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
mm [PATCH] pidspace: is_init() 2006-09-29 09:18:12 -07:00
oprofile
platforms [PATCH] replace cad_pid by a struct pid 2006-10-02 07:57:25 -07:00
sysdev MSI: Rename PCI_CAP_ID_HT_IRQCONF into PCI_CAP_ID_HT 2006-09-26 17:43:52 -07:00
xmon [POWERPC] print backtrace when entering xmon 2006-09-13 18:39:53 +10:00
Kconfig [PATCH] Kprobes: Make kprobe modules more portable 2006-10-02 07:57:16 -07:00
Kconfig.debug [POWERPC] print backtrace when entering xmon 2006-09-13 18:39:53 +10:00
Makefile