kernel-ark/drivers
Ian Abbott 00d6058ac9 [PATCH] USB serial visor: fix race in open/close
The anti user-DoS mechanism in the USB serial 'visor' driver can fail in
the following way:

visor_open: priv->outstanding_urbs = 0
visor_write: ++priv->outstanding_urbs
visor_close:
visor_open: priv->outstanding_urbs = 0
visor_write_bulk_callback: --priv->outstanding_urbs

So priv->outstanding_urbs ends up as (unsigned long)(-1).  Not good!

I haven't seen this happen with the visor driver as I don't have the
hardware, but I have seen it while testing a patch to implement the same
functionality in the ftdi_sio driver (patch not yet submitted).

The fix is pretty simple: don't reinitialize outstanding_urbs in
visor_open.  (Again, I haven't tested the fix in visor, but I have
tested it in ftdi_sio.)

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2006-07-12 16:03:22 -07:00
..
acorn
acpi Merge branch 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6 2006-07-10 15:14:38 -07:00
amba
atm
base
block [PATCH] aoe: cleanup i_rdev usage 2006-07-10 13:24:25 -07:00
bluetooth
cdrom
char [PATCH] lockdep: HPET/RTC fix 2006-07-12 12:52:55 -07:00
clocksource
connector
cpufreq
crypto
dio
dma
edac [PATCH] Fix and enable EDAC sysfs operation 2006-07-10 13:24:25 -07:00
eisa
fc4
firmware
hwmon
i2c
ide [PATCH] ide: fix Jmicron support 2006-07-12 12:59:35 -07:00
ieee1394
infiniband
input
isdn [PATCH] isdn: cleanup i_rdev udage 2006-07-10 13:24:27 -07:00
leds [PATCH] LED Class support for Soekris net48xx 2006-07-10 13:24:26 -07:00
macintosh
mca
md
media
message [PATCH] proper prototype for drivers/message/i2o/device.c:i2o_parm_issue() 2006-07-10 13:24:26 -07:00
mfd
misc
mmc
mtd
net [BPQ] lockdep: fix false positive 2006-07-10 14:50:33 -07:00
nubus
oprofile
parisc
parport
pci [PATCH] ide: fix Jmicron support 2006-07-12 12:59:35 -07:00
pcmcia
pnp
rapidio
rtc
s390 [S390] Fix sparse warnings. 2006-07-12 16:41:55 +02:00
sbus
scsi [PATCH] FDPIC: Move roundup() into linux/kernel.h 2006-07-10 13:24:22 -07:00
serial
sh
sn
spi
tc
telephony
usb [PATCH] USB serial visor: fix race in open/close 2006-07-12 16:03:22 -07:00
video
w1
zorro
Kconfig
Makefile