linux-uconsole/drivers/char
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
..
agp
drm
ftape
hw_random
ip2 [PATCH] const struct tty_operations 2006-10-02 07:57:14 -07:00
ipmi
mwave
pcmcia [PATCH] const struct tty_operations 2006-10-02 07:57:14 -07:00
rio [PATCH] const struct tty_operations 2006-10-02 07:57:14 -07:00
tpm
watchdog
.gitignore
amiserial.c [PATCH] const struct tty_operations 2006-10-02 07:57:14 -07:00
applicom.c
applicom.h
briq_panel.c
cd1865.h
ChangeLog
consolemap.c
cp437.uni
cs5535_gpio.c
cyclades.c [PATCH] const struct tty_operations 2006-10-02 07:57:14 -07:00
decserial.c
defkeymap.c_shipped
defkeymap.map
digi.h
digi1.h
digiFep1.h
digiPCI.h
ds1286.c
ds1302.c
ds1620.c
dsp56k.c
dtlk.c
ec3104_keyb.c
efirtc.c
epca.c [PATCH] const struct tty_operations 2006-10-02 07:57:14 -07:00
epca.h
epcaconfig.h
esp.c [PATCH] const struct tty_operations 2006-10-02 07:57:14 -07:00
generic_nvram.c
generic_serial.c
genrtc.c
hangcheck-timer.c
hpet.c
hvc_console.c [PATCH] const struct tty_operations 2006-10-02 07:57:14 -07:00
hvc_console.h
hvc_iseries.c
hvc_rtas.c
hvc_vio.c
hvcs.c [PATCH] const struct tty_operations 2006-10-02 07:57:14 -07:00
hvsi.c [PATCH] const struct tty_operations 2006-10-02 07:57:14 -07:00
i8k.c
ip27-rtc.c
isicom.c [PATCH] const struct tty_operations 2006-10-02 07:57:14 -07:00
istallion.c [PATCH] const struct tty_operations 2006-10-02 07:57:14 -07:00
ite_gpio.c
Kconfig
keyboard.c [PATCH] vt: rework the console spawning variables 2006-10-02 07:57:13 -07:00
lcd.c
lcd.h
lp.c
Makefile
mbcs.c
mbcs.h
mem.c
misc.c
mmtimer.c
moxa.c [PATCH] const struct tty_operations 2006-10-02 07:57:14 -07:00
mspec.c
mxser.c [PATCH] const struct tty_operations 2006-10-02 07:57:14 -07:00
mxser.h
n_hdlc.c
n_r3964.c
n_tty.c
nsc_gpio.c
nvram.c
nwbutton.c [PATCH] replace cad_pid by a struct pid 2006-10-02 07:57:25 -07:00
nwbutton.h
nwflash.c
pc8736x_gpio.c
ppdev.c
pty.c [PATCH] const struct tty_operations 2006-10-02 07:57:14 -07:00
qtronix.c
qtronixmap.c_shipped
qtronixmap.map
random.c [PATCH] namespaces: utsname: switch to using uts namespaces 2006-10-02 07:57:21 -07:00
raw.c [PATCH] Streamline generic_file_* interfaces and filemap cleanups 2006-10-01 00:39:28 -07:00
riscom8.c [PATCH] const struct tty_operations 2006-10-02 07:57:14 -07:00
riscom8.h
riscom8_reg.h
rocket.c [PATCH] const struct tty_operations 2006-10-02 07:57:14 -07:00
rocket.h
rocket_int.h
rtc.c
scan_keyb.c
scan_keyb.h
scc.h
scx200_gpio.c
selection.c
ser_a2232.c [PATCH] const struct tty_operations 2006-10-02 07:57:14 -07:00
ser_a2232.h
ser_a2232fw.ax
ser_a2232fw.h
serial167.c [PATCH] const struct tty_operations 2006-10-02 07:57:14 -07:00
snsc.c
snsc.h
snsc_event.c [PATCH] replace cad_pid by a struct pid 2006-10-02 07:57:25 -07:00
sonypi.c
specialix.c [PATCH] const struct tty_operations 2006-10-02 07:57:14 -07:00
specialix_io8.h
stallion.c [PATCH] const struct tty_operations 2006-10-02 07:57:14 -07:00
sx.c [PATCH] const struct tty_operations 2006-10-02 07:57:14 -07:00
sx.h
sxboards.h
sxwindow.h
synclink.c [PATCH] const struct tty_operations 2006-10-02 07:57:14 -07:00
synclink_gt.c [PATCH] const struct tty_operations 2006-10-02 07:57:14 -07:00
synclinkmp.c [PATCH] const struct tty_operations 2006-10-02 07:57:14 -07:00
sysrq.c
tb0219.c
tipar.c
tlclk.c
toshiba.c
tty_io.c [PATCH] const struct tty_operations 2006-10-02 07:57:14 -07:00
tty_ioctl.c
vc_screen.c
viocons.c [PATCH] const struct tty_operations 2006-10-02 07:57:14 -07:00
viotape.c
vme_scc.c [PATCH] const struct tty_operations 2006-10-02 07:57:14 -07:00
vr41xx_giu.c
vt.c [PATCH] const struct tty_operations 2006-10-02 07:57:14 -07:00
vt_ioctl.c [PATCH] vt: Make vt_pid a struct pid (making it pid wrap around safe). 2006-10-02 07:57:14 -07:00