linux/drivers/char
Greg Kroah-Hartman 7036251180 tty: fix race in tty_fasync
We need to keep the lock held over the call to __f_setown() to
prevent a PID race.

Thanks to Al Viro for pointing out the problem, and to Travis for
making us look here in the first place.

Cc: Eric W. Biederman <ebiederm@xmission.com>
Cc: Al Viro <viro@ZenIV.linux.org.uk>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Tavis Ormandy <taviso@google.com>
Cc: Jeff Dike <jdike@addtoit.com>
Cc: Julien Tinnes <jln@google.com>
Cc: Matt Mackall <mpm@selenic.com>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-01-20 15:03:31 -08:00
..
agp Merge branch 'x86-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip 2010-01-16 12:31:42 -08:00
hw_random virtio: fix section mismatch warnings 2010-01-16 12:15:39 -08:00
ip2
ipmi ACPI: fix ACPI=n allmodconfig build 2009-12-30 01:24:25 -05:00
mwave
pcmcia tty: const: constify remaining tty_operations 2009-12-11 15:18:03 -08:00
rio
tpm
xilinx_hwicap
.gitignore
amiserial.c
apm-emulation.c
applicom.c
applicom.h
bfin_jtag_comm.c tty: const: constify remaining tty_operations 2009-12-11 15:18:03 -08:00
bfin-otp.c
briq_panel.c
bsr.c
cd1865.h
ChangeLog
consolemap.c
cp437.uni
cs5535_gpio.c
cyclades.c
defkeymap.c_shipped
defkeymap.map
digi1.h
digiFep1.h
digiPCI.h
ds1302.c
ds1620.c
dsp56k.c
dtlk.c
efirtc.c efirtc: explicitly set llseek to no_llseek 2009-12-16 07:19:59 -08:00
epca.c tty: const: constify remaining tty_operations 2009-12-11 15:18:03 -08:00
epca.h
epcaconfig.h
generic_nvram.c
generic_serial.c
genrtc.c
hangcheck-timer.c
hpet.c
hvc_beat.c
hvc_console.c
hvc_console.h
hvc_irq.c
hvc_iseries.c
hvc_iucv.c const: constify remaining dev_pm_ops 2009-12-15 08:53:25 -08:00
hvc_rtas.c
hvc_udbg.c
hvc_vio.c
hvc_xen.c Merge branch 'linux-next' of git://git.kernel.org/pub/scm/linux/kernel/git/jbarnes/pci-2.6 2009-12-11 12:18:16 -08:00
hvcs.c
hvsi.c
i8k.c
isicom.c tty: isicom: fix deadlock on shutdown 2009-12-11 15:18:07 -08:00
istallion.c tty: istallion: tty port open/close methods 2009-12-11 15:18:06 -08:00
Kconfig powerpc/hvc: Driver build breaks with !HVC_CONSOLE 2010-01-15 13:26:13 +11:00
keyboard.c Input: keyboard - don't override beep with a bell 2009-12-15 21:48:55 -08:00
lp.c lp: move compat_ioctl handling into lp.c 2009-12-10 22:55:36 +01:00
Makefile tty: esp: remove broken driver 2009-12-11 15:18:03 -08:00
mbcs.c
mbcs.h
mem.c /dev/mem: remove redundant parameter from do_write_kmem() 2009-12-15 08:53:12 -08:00
misc.c drivers/char/misc.c: use bitmap/bitops functions for dynamic minor number allocation 2009-12-15 08:53:27 -08:00
mmtimer.c
moxa.c tty: moxa: split open lock 2009-12-11 15:18:08 -08:00
moxa.h
mspec.c
mxser.c tty: mxser: Use the new locking rules to fix setserial properly 2009-12-11 15:18:07 -08:00
mxser.h
n_hdlc.c
n_r3964.c
n_tty.c
nozomi.c nozomi: quick fix for the close/close bug 2010-01-20 15:03:27 -08:00
nsc_gpio.c
nvram.c nvram: Fix write beyond end condition; prove to gcc copy is safe 2009-12-11 15:48:23 -08:00
nwbutton.c
nwbutton.h
nwflash.c ARM: add missing include to nwflash.c 2009-12-19 23:36:00 +00:00
pc8736x_gpio.c
ppdev.c
ps3flash.c
pty.c tty: push the BKL down into the handlers a bit 2009-12-11 15:18:08 -08:00
random.c random.c: use %pU to print UUIDs 2009-12-15 08:53:33 -08:00
raw.c
riscom8_reg.h
riscom8.c tty: riscom8: switch to the tty_port_open API 2009-12-11 15:18:06 -08:00
riscom8.h
rocket_int.h
rocket.c
rocket.h
rtc.c
scc.h
scx200_gpio.c
selection.c
ser_a2232.c
ser_a2232.h
ser_a2232fw.ax
ser_a2232fw.h
serial167.c
snsc_event.c
snsc.c
snsc.h
sonypi.c sony_pi: Remove the BKL from open and ioctl 2010-01-04 12:31:20 -08:00
specialix_io8.h
specialix.c
stallion.c tty: stallion: Convert to the tty_port_open/close methods 2009-12-11 15:18:06 -08:00
sx.c
sx.h
sxboards.h
sxwindow.h
synclink_gt.c
synclink.c
synclinkmp.c
sysrq.c oom-kill: fix NUMA constraint check with nodemask 2009-12-16 07:19:57 -08:00
tb0219.c
tlclk.c
toshiba.c tosh: Use non bkl ioctl 2010-01-04 12:31:21 -08:00
tty_audit.c
tty_buffer.c
tty_io.c tty: fix race in tty_fasync 2010-01-20 15:03:31 -08:00
tty_ioctl.c
tty_ldisc.c tty: Push the lock down further into the ldisc code 2009-12-11 15:18:08 -08:00
tty_port.c tty: tty_port: Add a kref object to the tty port 2009-12-11 15:18:07 -08:00
uv_mmtimer.c
vc_screen.c
viotape.c
virtio_console.c
vme_scc.c
vt_ioctl.c
vt.c vt: make the default cursor shape configurable 2009-12-16 07:19:57 -08:00