Bug 7819

Summary: Kernel oopses unplugging USB adapter in 2.6.20-rc3
Product: v4l-dvb Reporter: Cijoml Cijomlovic Cijomlov (cijoml)
Component: dvb-coreAssignee: dvb-core (v4l-dvb_dvb-core)
Status: CLOSED PATCH_ALREADY_AVAILABLE    
Severity: normal CC: bunk, Markus.Rechberger
Priority: P2    
Hardware: i386   
OS: Linux   
Kernel Version: 2.6.20-rc3 Subsystem:
Regression: --- Bisected commit-id:

Description Cijoml Cijomlovic Cijomlov 2007-01-14 03:00:03 UTC
Most recent kernel where this bug did *NOT* occur: unknown
Distribution:

usb 5-3: USB disconnect, address 3
BUG: unable to handle kernel paging request at virtual address 00100100
 printing eip:
c027aed9
*pde = 3735b067
*pte = 00000000
Oops: 0000 [#1]
PREEMPT
Modules linked in: ppp_deflate zlib_deflate bsd_comp ppp_async ppp_generic slhc
bnep rfcomm hidp l2cap lp fuse eeprom hci_usb bluetooth 8250_pci eth1394
dvb_usb_dtt200u dvb_usb dvb_core dvb_pll usbhid 8250 serial_core snd_intel8x0
snd_intel8x0m snd_ac97_codec hostap_cs hostap ieee80211_crypt ac97_bus 8139too
snd_pcm snd_timer snd ohci1394 ieee1394 irda mii crc_ccitt snd_page_alloc
ohci_hcd ehci_hcd uhci_hcd parport_pc parport psmouse ide_cd i2c_i801 cdrom
iTCO_wdt iTCO_vendor_support pcspkr rtc
CPU:    0
EIP:    0060:[<c027aed9>]    Not tainted VLI
EFLAGS: 00010206   (2.6.20-rc3 #3)
EIP is at evdev_disconnect+0x87/0xae
eax: 00000000   ebx: 000ffcf0   ecx: c1968000   edx: f7220000
esi: f7f76640   edi: c1b6e000   ebp: c1b6e6c4   esp: c1969e78
ds: 007b   es: 007b   ss: 0068
Process khubd (pid: 132, ti=c1968000 task=c1908030 task.ti=c1968000)
Stack: 00000000 f78be0f8 f7f76670 c02792ed 00000000 f7e5d000 f7ee5218 fca40420
       f7a28400 fca9819b f7e5d000 fca972da fca3f502 f7ee5218 fca40420 f7a28400
       fca97386 f7ee5218 fca40420 f7ee5200 c026d012 ffffffed f7ee5218 fca4044c
Call Trace:
 [<c02792ed>] input_unregister_device+0x89/0x13a
 [<fca9819b>] dvb_usb_remote_exit+0x33/0x3e [dvb_usb]
 [<fca972da>] dvb_usb_exit+0xb/0x87 [dvb_usb]
 [<fca97386>] dvb_usb_device_exit+0x30/0x44 [dvb_usb]
 [<c026d012>] usb_unbind_interface+0x3e/0x7c
 [<c0245b4f>] __device_release_driver+0x6e/0x84
 [<c0245ee4>] device_release_driver+0x1d/0x32
 [<c02455f6>] bus_remove_device+0x5b/0x69
 [<c0244232>] device_del+0xfa/0x152
 [<c026ac89>] usb_disable_device+0x5c/0xbb
 [<c02678a8>] usb_disconnect+0x82/0x114
 [<c0268353>] hub_thread+0x375/0xa76
 [<c02d7a4b>] __sched_text_start+0x4a3/0x546
 [<c0114528>] __wake_up_common+0x31/0x4f
 [<c012821b>] autoremove_wake_function+0x0/0x35
 [<c0267fde>] hub_thread+0x0/0xa76
 [<c0128160>] kthread+0xa0/0xc8
 [<c01280c0>] kthread+0x0/0xc8
 [<c0103813>] kernel_thread_helper+0x7/0x10
 =======================
Code: e8 77 a7 e9 ff 8b 5e 4c eb 1b 8d 83 08 04 00 00 b9 06 00 02 00 ba 1d 00 00
00 e8 fd 60 ee ff 8b 9b 10 04 00 00 81 eb 10 04 00 00 <8b> 83 10 04 00 00 0f 18
00 90 8d 93 10 04 00 00 8d 46 4c 39 c2
EIP: [<c027aed9>] evdev_disconnect+0x87/0xae SS:ESP 0068:c1969e78
 


Hardware Environment: Acer TravelMate 240, Leadtek DVB-T adapter
Software Environment: Debian Testing, 2.6.20-rc3
Problem Description:

kernel oopses removing dongle from usb port

Steps to reproduce:

unplug adapter
Comment 1 Adrian Bunk 2007-01-14 06:06:30 UTC
Does it still happen with 2.6.20-rc5?

Is this also present on 2.6.19?
Comment 2 Cijoml Cijomlovic Cijomlov 2007-01-14 06:28:48 UTC
Yes it is present also in 2.6.19. Let me compile -rc5 to verify :)
Comment 3 Michael Krufky 2007-01-14 12:18:42 UTC
This is a known bug that has always been present.  dvb-core is not
hot-unpluggable.  This causes a kernel oops if a dvb usb device is removed while
the device is open.
Comment 4 Cijoml Cijomlovic Cijomlov 2007-01-14 12:39:02 UTC
Hi,

device wasn't playing any stream - it was just plugged in and later removed. No
running mplayer/kaffeine/mythtv application.
Comment 5 Markus Rechberger 2007-04-04 09:37:26 UTC
Hi,

can you retry with following repository?

http://mcentral.de/hg/~mrec/v4l-dvb-stable/

Markus