kernel-hacking-2024-linux-s.../drivers
Paul Fulghum 38ad2ed08d tty: restore locked ioctl file op
Restore tty locked ioctl handler which was replaced with
an unlocked ioctl handler in hung_up_tty_fops by the patch:

commit e10cc1df1d
Author: Paul Fulghum <paulkf@microgate.com>
Date:   Thu May 10 22:22:50 2007 -0700

    tty: add compat_ioctl

This was reported in:
[Bug 8473] New: Oops: 0010 [1] SMP

The bug is caused by switching to hung_up_tty_fops in do_tty_hangup.  An
ioctl call can be waiting on BLK after testing for existence of the locked
ioctl handler in the normal tty fops, but before calling the locked ioctl
handler.  If a hangup occurs at that point, the locked ioctl fop is NULL
and an oops occurs.

(akpm: we can remove my debugging code from do_ioctl() now, but it'll be OK to
do that for 2.6.23)

Signed-off-by: Paul Fulghum <paulkf@microgate.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-06-16 13:16:15 -07:00
..
acorn
acpi
amba
ata libata: limit post SRST nsect/lbal wait to ~100ms 2007-06-11 00:52:53 -04:00
atm
auxdisplay
base firmware: remove orphaned Email 2007-06-08 12:41:08 -07:00
block loop: preallocate eight loop devices 2007-06-08 17:23:32 -07:00
bluetooth
cdrom potential parse error in ifdef part 3 2007-06-08 17:23:33 -07:00
char tty: restore locked ioctl file op 2007-06-16 13:16:15 -07:00
clocksource
connector
cpufreq
crypto
dio
dma
edac
eisa
fc4
firewire
firmware
hid
hwmon
i2c
ide Resume from RAM on HPC nx6325 broken 2007-06-16 02:24:43 +02:00
ieee1394
infiniband Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/roland/infiniband 2007-06-11 15:46:08 -07:00
input Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input 2007-06-13 14:09:39 -07:00
isdn isdn/diva: fix section mismatch 2007-06-08 17:23:33 -07:00
kvm KVM: Prevent guest fpu state from leaking into the host 2007-06-15 12:30:59 +03:00
leds
macintosh
mca
md
media V4L/DVB (5751): Ivtv: fix ia64 printk format warnings. 2007-06-08 08:54:41 -03:00
message
mfd
misc
mmc mmc: get back read-only switch function 2007-06-13 19:11:20 +02:00
mtd
net Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/cooloney/blackfin-2.6 2007-06-15 16:16:31 -07:00
nubus
oprofile
parisc
parport
pci
pcmcia
pnp
ps3
rapidio
rtc
s390
sbus
scsi ide-scsi: fix OOPS in idescsi_expiry() 2007-06-16 02:24:44 +02:00
serial Blackfin serial driver: decouple PARODD and CMSPAR checking from PARENB 2007-06-11 16:16:45 +08:00
sh
sn
spi Blackfin SPI driver: fix bug SPI DMA incomplete transmission 2007-06-11 17:34:17 +08:00
tc potential parse error in ifdef part 3 2007-06-08 17:23:33 -07:00
telephony
usb OHCI: Fix machine check in ohci_hub_status_data 2007-06-08 16:24:31 -07:00
video Merge master.kernel.org:/pub/scm/linux/kernel/git/kyle/parisc-2.6 2007-06-14 18:36:21 -07:00
w1
zorro
Kconfig
Makefile