Greg:

You may already be aware of this, and it may already be fixed.  But in 
case you aren't and it isn't, read on...

As of gregkh-all-2.6.21-rc5 there's a bug in the device-class code.  It 
shows up when you rmmod all the USB host controller drivers.  Here's what 
happened to me:

[   78.686853] ehci_hcd 0000:00:1d.7: remove, state 4
[   78.686916] ehci_hcd 0000:00:1d.7: roothub graceful disconnect
[   78.686992] usb usb1: USB disconnect, address 1
[   78.687053] usb usb1: unregistering device
[   78.687238] usb usb1: usb_disable_device nuking all URBs
[   78.687311] usb usb1: unregistering interface 1-0:1.0
[   78.688011] usb_endpoint usbdev1.1_ep81: ep_device_release called for 
usbdev1.1_ep81
[   78.688871] usb 1-0:1.0: uevent
[   78.689041] usb 1-0:1.0: uevent
[   78.690020] usb_endpoint usbdev1.1_ep00: ep_device_release called for 
usbdev1.1_ep00
[   78.690878] BUG: unable to handle kernel paging request at virtual address 
6b6b6b6b
[   78.690982]  printing eip:
[   78.691030] c0193b05
[   78.691076] *pde = 00000000
[   78.691127] Oops: 0000 [#1]
[   78.691175] PREEMPT SMP 
[   78.691291] last sysfs file: /devices/pnp0/00:00/id
[   78.691344] Modules linked in: thermal processor fan container button 
battery ac evdev pcspkr e100 ehci_hcd mii usbcore
[   78.691901] CPU:    0
[   78.691902] EIP:    0060:[<c0193b05>]    Not tainted VLI
[   78.691904] EFLAGS: 00010202   (2.6.21-rc5 #1)
[   78.692057] EIP is at __sysfs_remove_dir+0x13/0xff
[   78.692109] eax: 6b6b6b6b   ebx: cecf34e8   ecx: 00000003   edx: 00000001
[   78.692164] esi: 00000000   edi: 6b6b6b6b   ebp: cd10dd94   esp: cd10dd7c
[   78.692219] ds: 007b   es: 007b   fs: 00d8  gs: 0033  ss: 0068
[   78.692274] Process rmmod (pid: 4414, ti=cd10c000 task=c13dca90 
task.ti=cd10c000)
[   78.692328] Stack: c01cd8b8 cecf32e4 00000000 cecf34e8 00000000 cf4610f8 
cd10dda0 c0193c09 
[   78.692705]        cecf34e8 cd10ddac c01cd926 cecf34e8 cd10ddbc c021e03d 
cef939dc d08418cb 
[   78.693081]        cd10ddc4 c021e710 cd10ddcc d08418db cd10ddec c01ce4e4 
cecf36b8 cd10dde0 
[   78.693458] Call Trace:
[   78.693547]  [<c0105016>] show_trace_log_lvl+0x1a/0x2f
[   78.693638]  [<c01050c8>] show_stack_log_lvl+0x9d/0xa5
[   78.693725]  [<c01052bd>] show_registers+0x1ed/0x32c
[   78.693814]  [<c0105519>] die+0x11d/0x21e
[   78.693899]  [<c0119cc6>] do_page_fault+0x443/0x515
[   78.693988]  [<c02a0014>] error_code+0x7c/0x84
[   78.694078]  [<c0193c09>] sysfs_remove_dir+0xe/0x18
[   78.694166]  [<c01cd926>] kobject_del+0xf/0x19
[   78.694255]  [<c021e03d>] class_unregister+0x5c/0x67
[   78.694345]  [<c021e710>] class_destroy+0x13/0x15
[   78.694432]  [<d08418db>] release_endpoint_class+0x10/0x38 [usbcore]
[   78.694547]  [<c01ce4e4>] kref_put+0x79/0x89
[   78.694634]  [<d084185e>] destroy_endpoint_class+0x16/0x18 [usbcore]
[   78.694739]  [<d08418c3>] usb_remove_ep_files+0x63/0x6b [usbcore]
[   78.694842]  [<d084128e>] usb_remove_sysfs_dev_files+0x12/0x6e [usbcore]
[   78.694947]  [<d08447d5>] generic_disconnect+0x25/0x28 [usbcore]
[   78.695052]  [<d083e48b>] usb_unbind_device+0xf/0x13 [usbcore]
[   78.695154]  [<c021cfd2>] __device_release_driver+0x74/0x90
[   78.695244]  [<c021d3a4>] device_release_driver+0x30/0x47
[   78.695332]  [<c021c926>] bus_remove_device+0x73/0x82
[   78.695420]  [<c021af4c>] device_del+0x23b/0x2b2
[   78.695508]  [<d0838946>] usb_disconnect+0xe9/0x15c [usbcore]
[   78.695609]  [<d083ab20>] usb_remove_hcd+0xa5/0xfa [usbcore]
[   78.695710]  [<d0844c3f>] usb_hcd_pci_remove+0x18/0x6a [usbcore]
[   78.695815]  [<c01d7cd4>] pci_device_remove+0x19/0x39
[   78.695907]  [<c021cfd2>] __device_release_driver+0x74/0x90
[   78.695995]  [<c021d460>] driver_detach+0xa5/0xe3
[   78.696082]  [<c021cb10>] bus_remove_driver+0x5d/0x79
[   78.696170]  [<c021d59e>] driver_unregister+0xb/0x18
[   78.696258]  [<c01d7e3b>] pci_unregister_driver+0x10/0x5f
[   78.696346]  [<d0828e2d>] ehci_hcd_cleanup+0xd/0xf [ehci_hcd]
[   78.696440]  [<c0141e03>] sys_delete_module+0x185/0x1ae
[   78.696530]  [<c0103fe4>] sysenter_past_esp+0x5d/0x99
[   78.697531]  =======================
[   78.697580] Code: 05 8c 00 00 00 e8 85 a8 10 00 89 f8 e8 7a ea fd ff 58 5a 
5b 5e 5f 5d c3 55 89 e5 57 56 53 83 ec 0c 89 c7 85 c0 0f 84 e4 00 00 00 <83> 38 
00 75 04 0f 0b eb fe 90 ff 00 8b 40 28 05 8c 00 00 00 e8 
[   78.699920] EIP: [<c0193b05>] __sysfs_remove_dir+0x13/0xff SS:ESP 
0068:cd10dd7c

Alan Stern


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to