Re: USBDEVFS_RESET deadlocks USB bus.

From: Zephaniah E. Hull
Date: Fri Jun 04 2004 - 16:09:49 EST


On Fri, Jun 04, 2004 at 01:07:48PM -0700, Greg KH wrote:
> On Fri, Jun 04, 2004 at 04:02:11PM -0400, Zephaniah E. Hull wrote:
> >
> > lt-pilot-xfer D 00000000 0 11415 2709 (NOTLB)
> > d2ad3eb0 00000086 c022391a 00000000 3231203a 000a2e35 00000001 d2ad3ea7
> > d4edd000 d7fc8a00 c8449790 00000000 abb31900 000f447a c4bae4b8 c977d824
> > 00000246 d2ad2000 d2ad3eec c0336735 c977d82c c4bae310 00000001 c4bae310
> > Call Trace:
> > [<c0336735>] __down+0x85/0x120
> > [<c033692f>] __down_failed+0xb/0x14
> > [<c026af27>] .text.lock.hub+0x69/0x82
> > [<c0272b7f>] usbdev_ioctl+0x19f/0x710
> > [<c015a45d>] file_ioctl+0x5d/0x170
> > [<c015a686>] sys_ioctl+0x116/0x250
> > [<c0103f8f>] syscall_call+0x7/0xb
> >
> > This is on 2.6.7-rc2-mm1.
>
> Ah, can you not try the -mm1 kernel? This problem should not be in the
> mainline kernel. There was a locking issue in the last bk-usb patch
> that made it into the -mm1 kernel that was fixed yesterday.

This is from -rc2.

lt-pilot-xfer D 00000000 0 3034 2981 (NOTLB)
c3701eb0 00000082 c022039a 00000000 3231203a 300a2e35 00000001 c3701ea7
1a1e0e40 000f4264 c6e0cc30 00000000 1a1e0e40 000f4264 c50cf3b8 d6cc1824
00000246 c3700000 c3701eec c032eb35 d6cc182c c50cf210 00000001 c50cf210
Call Trace:
[<c032eb35>] __down+0x85/0x100
[<c032ece7>] __down_failed+0xb/0x14
[<c02663f7>] .text.lock.hub+0x69/0x72
[<c026dfff>] usbdev_ioctl+0x19f/0x710
[<c015951d>] file_ioctl+0x5d/0x170
[<c0159746>] sys_ioctl+0x116/0x250
[<c0103f0f>] syscall_call+0x7/0xb

I'll next try with the patch from Duncan Sands, but if things are as bad
as Alan Stern says, then we should at least make the ioctl fail for now
instead of killing USB.

--
1024D/E65A7801 Zephaniah E. Hull <warp@xxxxxxxxxxxxxxxx>
92ED 94E4 B1E6 3624 226D 5727 4453 008B E65A 7801
CCs of replies from mailing lists are requested.

"Delivery anywhere in the world within thirty minutes or the second one's
free." - "pizza box" art atop a Minuteman ICBM silo, Paul A. Suhler, RHF

Attachment: signature.asc
Description: Digital signature