Bug#272907: kernel-image-2.6-686: Unplugging a usb device, then plugging it back in causes kernel oops
Package: kernel-image-2.6-686
Version: 2.6.8-2
Severity: normal
Unplugging a USB device, then plugging the same device back in within a
few seconds causes the kernel to oops. the USB devices in question are
then no longer functional.
In this case, I unplugged both a USB DVD burner and a USB sound card at
once (both plugged into a single hub).
here you can see the first connect (which works) and then the second
connect (which oopses)
usb 2-2: new full speed USB device using address 2
hub 2-2:1.0: USB hub found
hub 2-2:1.0: 7 ports detected
usb 2-2.1: new full speed USB device using address 3
usbcore: registered new driver hiddev
input: USB HID v1.00 Device [stereo-link stereo-link 1200 USB DAC] on
usb-0000:0
0:1d.1-2.1
usbcore: registered new driver usbhid
drivers/usb/input/hid-core.c: v2.0:USB HID core driver
usb 2-2.5: new full speed USB device using address 4
usbcore: registered new driver snd-usb-audio
Initializing USB Mass Storage driver...
scsi0 : SCSI emulation for USB Mass Storage devices
Vendor: SONY Model: DVD RW DRU-510A Rev: 1.0d
Type: CD-ROM ANSI SCSI revision: 02
USB Mass Storage device found at 4
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
sr0: scsi3-mmc drive: 32x/32x writer cd/rw xa/form2 cdda tray
Attached scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0
usb 2-2: USB disconnect, address 2
usb 2-2.1: USB disconnect, address 3
usb 2-2.5: USB disconnect, address 4
scsi: Device offlined - not ready after error recovery: host 0 channel 0
id 0 lu
n 0
sr 0:0:0:0: Illegal state transition cancel->offline
Badness in scsi_device_set_state at drivers/scsi/scsi_lib.c:1643
[<e0cabdb9>] scsi_device_set_state+0xc9/0x120 [scsi_mod]
[<e0ca96ce>] scsi_eh_offline_sdevs+0x6e/0x90 [scsi_mod]
[<e0ca9d1c>] scsi_unjam_host+0xcc/0x210 [scsi_mod]
[<c0118b30>] default_wake_function+0x0/0x20
[<e0ca9f68>] scsi_error_handler+0x108/0x1c0 [scsi_mod]
[<e0ca9e60>] scsi_error_handler+0x0/0x1c0 [scsi_mod]
[<c01042ad>] kernel_thread_helper+0x5/0x18
Unable to handle kernel paging request at virtual address 205d3432
printing eip:
c0201c43
*pde = 00000000
Oops: 0000 [#1]
PREEMPT
Modules linked in: sr_mod usb_storage snd_usb_audio joydev usbhid
af_packet ipv6
sd_mod scsi_mod ds lp binfmt_misc eepro100 hostap_pci hostap
orinoco_pci orinoc
o hermes snd_intel8x0m hw_random uhci_hcd usbcore shpchp pciehp
pci_hotplug inte
l_agp parport_pc parport floppy irtty_sir sir_dev irda tsdev crc_ccitt
mousedev
psmouse pcspkr evdev e100 mii yenta_socket pcmcia_core agpgart
snd_intel8x0 snd_
ac97_codec snd_pcm_oss snd_mixer_oss snd_pcm snd_timer snd_page_alloc
gameport s
nd_mpu401_uart snd_rawmidi snd_seq_device snd soundcore capability
commoncap ide
_cd cdrom rtc xfs reiserfs vfat fat isofs ext2 ext3 jbd mbcache
ide_generic piix
ide_disk ide_core unix font vesafb cfbcopyarea cfbimgblt cfbfillrect
CPU: 0
EIP: 0060:[<c0201c43>] Tainted: GF
EFLAGS: 00010083 (2.6.8-1-686)
EIP is at as_requeue_request+0x93/0xf0
eax: 205d3432 ebx: 00000000 ecx: deb6602c edx: dff42ab0
esi: dff42ab0 edi: dfaba680 ebp: 00000202 esp: d1ce7ee0
ds: 007b es: 007b ss: 0068
Process scsi_eh_0 (pid: 3483, threadinfo=d1ce6000 task=ce36e230)
Stack: c012c63e 00000000 00000000 c0106cfd dff42ab0 d2ade400 deb6602c
c01f9196
deb6602c dff42ab0 dff42ab0 d2ade400 c01fbb0d deb6602c dff42ab0
cdab40e8
00000286 cdab4080 d2ade400 dff42600 00001057 e0caa32b deb6602c
dff42ab0
Call Trace:
[<c012c63e>] __kernel_text_address+0x2e/0x40
[<c0106cfd>] print_context_stack+0x2d/0x70
[<c01f9196>] elv_requeue_request+0x26/0x60
[<c01fbb0d>] blk_insert_request+0xdd/0xe0
[<e0caa32b>] scsi_queue_insert+0x8b/0xe0 [scsi_mod]
[<e0ca9bc2>] scsi_eh_flush_done_q+0x72/0x100 [scsi_mod]
[<e0ca9ce8>] scsi_unjam_host+0x98/0x210 [scsi_mod]
[<c0118b30>] default_wake_function+0x0/0x20
[<e0ca9f68>] scsi_error_handler+0x108/0x1c0 [scsi_mod]
[<e0ca9e60>] scsi_error_handler+0x0/0x1c0 [scsi_mod]
[<c01042ad>] kernel_thread_helper+0x5/0x18
Code: 8b 10 89 72 04 89 16 89 46 04 89 30 8b 5c 24 10 89 7c 24 20
<6>note: scsi_eh_0[3483] exited with preempt_count 1
-- System Information:
Debian Release: 3.1
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.8-1-686
Locale: LANG=C, LC_CTYPE=C
Versions of packages kernel-image-2.6-686 depends on:
ii kernel-image-2.6.8-1-686 2.6.8-3 Linux kernel image for version 2.6
-- no debconf information
Reply to: