linux_dsm_epyc7002/arch
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
..
alpha [PATCH] rename the provided execve functions to kernel_execve 2006-10-02 07:57:23 -07:00
arm [PATCH] rename the provided execve functions to kernel_execve 2006-10-02 07:57:23 -07:00
arm26 [PATCH] rename the provided execve functions to kernel_execve 2006-10-02 07:57:23 -07:00
avr32 [PATCH] AVR32: Implement kernel_execve 2006-10-02 07:57:24 -07:00
cris [PATCH] namespaces: utsname: use init_utsname when appropriate 2006-10-02 07:57:21 -07:00
frv [PATCH] provide kernel_execve on all architectures 2006-10-02 07:57:23 -07:00
h8300 [PATCH] provide kernel_execve on all architectures 2006-10-02 07:57:23 -07:00
i386 [PATCH] provide kernel_execve on all architectures 2006-10-02 07:57:23 -07:00
ia64 [PATCH] remove remaining errno and __KERNEL_SYSCALLS__ references 2006-10-02 07:57:23 -07:00
m32r [PATCH] provide kernel_execve on all architectures 2006-10-02 07:57:23 -07:00
m68k [PATCH] provide kernel_execve on all architectures 2006-10-02 07:57:23 -07:00
m68knommu [PATCH] provide kernel_execve on all architectures 2006-10-02 07:57:23 -07:00
mips [PATCH] replace cad_pid by a struct pid 2006-10-02 07:57:25 -07:00
parisc [PATCH] rename the provided execve functions to kernel_execve 2006-10-02 07:57:23 -07:00
powerpc [PATCH] replace cad_pid by a struct pid 2006-10-02 07:57:25 -07:00
ppc [PATCH] provide kernel_execve on all architectures 2006-10-02 07:57:23 -07:00
s390 [PATCH] provide kernel_execve on all architectures 2006-10-02 07:57:23 -07:00
sh [PATCH] provide kernel_execve on all architectures 2006-10-02 07:57:23 -07:00
sh64 [PATCH] sh64: remove the use of kernel syscalls 2006-10-02 07:57:23 -07:00
sparc [PATCH] provide kernel_execve on all architectures 2006-10-02 07:57:23 -07:00
sparc64 [PATCH] provide kernel_execve on all architectures 2006-10-02 07:57:23 -07:00
um [PATCH] Remove the use of _syscallX macros in UML 2006-10-02 07:57:23 -07:00
v850 [PATCH] provide kernel_execve on all architectures 2006-10-02 07:57:23 -07:00
x86_64 [PATCH] rename the provided execve functions to kernel_execve 2006-10-02 07:57:23 -07:00
xtensa [PATCH] provide kernel_execve on all architectures 2006-10-02 07:57:23 -07:00