Re: Can't unload uhci_hcd module with 2.6.22 -- also oops

"A. Kalten" <[email protected]>
Newsgroups gmane.linux.usb.devel
Message-ID <[email protected]>
On Tue, 31 Jul 2007 10:22:42 -0400 (EDT)
Alan Stern <[email protected]> wrote:

>  That patch
> is meant for 2.6.23-rc1.  Can you try running 2.6.23-rc1 plus the patch
> and see if together they fix the problem?
> 

The patch is already applied to 2.6.23-rc1.

But after compiling 2.6.23-rc1 and undergoing the same steps
with the usb modem as before, the problem remains.  The only
difference is that the command "rmmod uhci-hcd" now reports
the message "Killed" instead of "Device busy."

Everything else still seems the same, however.  The module
is not unloaded.

Here is the 2.6.23-rc1 kernel log following the "rmmod uhci-hcd:"

usbcore: deregistering interface driver cdc_acm
uhci_hcd 0000:00:1d.3: remove, state 1
usb usb4: USB disconnect, address 1
uhci_hcd 0000:00:1d.3: USB bus 4 deregistered
ACPI: PCI interrupt for device 0000:00:1d.3 disabled
uhci_hcd 0000:00:1d.2: remove, state 1
usb usb3: USB disconnect, address 1
uhci_hcd 0000:00:1d.2: USB bus 3 deregistered
ACPI: PCI interrupt for device 0000:00:1d.2 disabled
uhci_hcd 0000:00:1d.1: remove, state 1
usb usb2: USB disconnect, address 1
usb 2-2: USB disconnect, address 2
Unable to handle kernel paging request at ffffffff88029d6e RIP: 
 [strcmp+0/34] strcmp+0x0/0x22
PGD 203067 PUD 207063 PMD 7f02a067 PTE 0
Oops: 0000 [1] SMP 
CPU 1 
Modules linked in: uhci_hcd usbcore
Pid: 784, comm: rmmod Not tainted 2.6.23-rc1 #1
RIP: 0010:[strcmp+0/34]  [strcmp+0/34] strcmp+0x0/0x22
RSP: 0000:ffff81002db27cd0  EFLAGS: 00010202
RAX: 0000000000000000 RBX: ffff810049bb2348 RCX: ffff81004430fc38
RDX: ffffffff802a002b RSI: ffffffff880131b3 RDI: ffffffff88029d6e
RBP: ffff81004430fc50 R08: 0000000000000000 R09: 000000000000131a
R10: ffff810002f58950 R11: ffffffff8800b3db R12: ffffffff880131b3
R13: ffff81007c115088 R14: ffff81004a982c58 R15: ffffffff880269f8
FS:  00002affd38b46f0(0000) GS:ffff810002f490c0(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003b
CR2: ffffffff88029d6e CR3: 000000002ef31000 CR4: 00000000000006e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
Process rmmod (pid: 784, threadinfo ffff81002db26000, task ffff81002ef3b7e0)
Stack:  ffffffff8029f351 ffff81004430fc38 0000000000000000 0000000000000000
 0000000000000000 ffffffff8801d8c0 ffffffff8801da80 ffff81004430fc38
 ffff81007c115000 ffff81007c115088 ffffffff802a2043 0000000000000040
Call Trace:
 [sysfs_hash_and_remove+97/146] sysfs_hash_and_remove+0x61/0x92
 [remove_files+35/55] remove_files+0x23/0x37
 [sysfs_remove_group+48/159] sysfs_remove_group+0x30/0x9f
 [_end+128931636/2131687328] :usbcore:usb_disable_device+0x89/0x107
 [_end+128915315/2131687328] :usbcore:usb_disconnect+0x98/0xee
 [_end+128915295/2131687328] :usbcore:usb_disconnect+0x84/0xee
 [_end+128923270/2131687328] :usbcore:usb_remove_hcd+0x85/0xe1
 [_end+128966298/2131687328] :usbcore:usb_hcd_pci_remove+0x1d/0x89
 [pci_device_remove+36/77] pci_device_remove+0x24/0x4d
 [__device_release_driver+130/184] __device_release_driver+0x82/0xb8
 [driver_detach+252/257] driver_detach+0xfc/0x101
 [bus_remove_driver+122/157] bus_remove_driver+0x7a/0x9d
 [pci_unregister_driver+16/129] pci_unregister_driver+0x10/0x81
 [_end+129057284/2131687328] :uhci_hcd:uhci_hcd_cleanup+0x10/0x2c
 [sys_delete_module+319/444] sys_delete_module+0x13f/0x1bc
 [__up_write+29/318] __up_write+0x1d/0x13e
 [system_call+126/131] system_call+0x7e/0x83


Code: 0f b6 17 89 d0 2a 06 48 83 c6 01 84 c0 75 0a 84 d2 74 06 48 
RIP  [strcmp+0/34] strcmp+0x0/0x22
 RSP <ffff81002db27cd0>
CR2: ffffffff88029d6e



Also, the lsof utility shows this:

ksuspend_usbd	698 root  cwd       DIR                8,1     456          2 /
ksuspend_usbd 	698 root  rtd       DIR                8,1     456          2 /
ksuspend_usbd 	698 root  txt   unknown                                       /proc/698/exe
khubd     	703 root  cwd       DIR                8,1     456          2 /
khubd     	703 root  rtd       DIR                8,1     456          2 /
khubd     	703 root  txt   unknown                                       /proc/703/exe

but both the /proc/698/exe and /proc/703/exe are broken links.

AK



-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.