kernel-ark/drivers
Luiz Fernando Capitulino 8a4613f01f [PATCH] USB: usbserial: race-condition fix.
There is a race-condition in usb-serial driver that can be triggered if
a processes does 'port->tty->driver_data = NULL' in serial_close() while
other processes is in kernel-space about to call serial_ioctl() on the
same port.

This happens because a process can open the device while there is
another one closing it.

The patch below fixes that by adding a semaphore to ensure that no
process will open the device while another process is closing it.

Note that we can't use spinlocks here, since serial_open() and
serial_close() can sleep.

Signed-off-by: Luiz Capitulino <lcapitulino@mandriva.com.br>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2006-01-04 13:48:35 -08:00
..
acorn
acpi Pull bug3410 into release branch 2005-12-22 22:26:10 -05:00
atm [PATCH] drivers/atm/adummy.c NULL noise removal 2005-12-15 10:04:31 -08:00
base [PATCH] drivers/base/memory.c: unexport the static (sic) memory_sysdev_class 2005-12-15 14:22:45 -08:00
block [PATCH] USB: remove .owner field from struct usb_driver 2006-01-04 13:48:34 -08:00
bluetooth [PATCH] USB: remove .owner field from struct usb_driver 2006-01-04 13:48:34 -08:00
cdrom
char [PATCH] USB: remove .owner field from struct usb_driver 2006-01-04 13:48:34 -08:00
connector
cpufreq
crypto
dio
eisa
fc4 [SPARC]: introduce a SPARC Kconfig symbol 2005-12-22 23:09:54 -08:00
firmware [PATCH] dell_rbu: NULL noise removal 2005-12-15 10:04:30 -08:00
hwmon
i2c [PATCH] i2c: Fix i2c-mv64xxx compilation error 2005-12-16 11:25:25 -08:00
ide
ieee1394
infiniband
input [PATCH] USB: remove .owner field from struct usb_driver 2006-01-04 13:48:34 -08:00
isdn [PATCH] USB: remove .owner field from struct usb_driver 2006-01-04 13:48:34 -08:00
macintosh [PATCH] powerpc: more g5 overtemp problem fix 2006-01-02 08:38:37 -08:00
mca
md [PATCH] md: Change case of raid level reported in sys/mdX/md/level 2005-12-19 16:47:50 -08:00
media [PATCH] USB: remove .owner field from struct usb_driver 2006-01-04 13:48:34 -08:00
message [PATCH] i2o: Do not disable pci device when it's in use 2005-12-18 11:19:43 -08:00
mfd
misc
mmc [MMC] Set correct capacity for 1024-byte block cards 2005-12-22 23:21:38 +00:00
mtd [SPARC]: introduce a SPARC Kconfig symbol 2005-12-22 23:09:54 -08:00
net [PATCH] USB: remove .owner field from struct usb_driver 2006-01-04 13:48:34 -08:00
nubus
oprofile
parisc
parport
pci [PATCH] PCI express must be initialized before PCI hotplug 2005-12-16 11:25:25 -08:00
pcmcia
pnp
rapidio
s390 [PATCH] s390: remove redundant and useless code in qeth 2005-12-24 10:05:52 -05:00
sbus [PATCH] sbus/char/uctrl: missing prototypes and NULL noise removal 2005-12-15 10:01:28 -08:00
scsi [PATCH] Fix Fibre Channel boot oops 2005-12-26 10:17:43 -08:00
serial [ARM] 3216/1: indent and typo in drivers/serial/pxa.c 2005-12-30 15:57:35 +00:00
sh
sn
tc
telephony
usb [PATCH] USB: usbserial: race-condition fix. 2006-01-04 13:48:35 -08:00
video [VIDEO] sbuslib: Disallow private mmaps. 2005-12-24 12:06:10 -08:00
w1 [PATCH] USB: remove .owner field from struct usb_driver 2006-01-04 13:48:34 -08:00
zorro
Kconfig
Makefile