Bug 5467 - oops in usbcore with kernel 2.6.14-rc4 + gregkh-all-2.6.14-rc4.patch (18-Oct-2005 19:25)
oops in usbcore with kernel 2.6.14-rc4 + gregkh-all-2.6.14-rc4.patch (18-Oct-...
Status: CLOSED CODE_FIX
Product: Drivers
Classification: Unclassified
Component: USB
i386 Linux
: P2 normal
Assigned To: Greg Kroah-Hartman
:
Depends on:
Blocks: USB
  Show dependency treegraph
 
Reported: 2005-10-19 09:41 UTC by Frieder B
Modified: 2005-10-21 15:43 UTC (History)
1 user (show)

See Also:
Kernel Version: 2.6.14-rc4 + gregkh-all-2.6.14-rc4.patch
Tree: Mainline
Regression: ---


Attachments
dmesg-2.6.14-rc4-gregkh-patches (15.37 KB, text/plain)
2005-10-19 09:43 UTC, Frieder B
Details
proc-bus-usb-devices (2.28 KB, text/plain)
2005-10-19 14:44 UTC, Frieder B
Details
proc-bus-usb-devices_new (3.02 KB, text/plain)
2005-10-19 14:50 UTC, Frieder B
Details
Fix Greg's endpoint attribute stuff (20.83 KB, patch)
2005-10-21 12:41 UTC, Alan Stern
Details | Diff

Description Frieder B 2005-10-19 09:41:59 UTC
sorry I
Comment 1 Frieder B 2005-10-19 09:43:16 UTC
Created attachment 6332 [details]
dmesg-2.6.14-rc4-gregkh-patches

complete dmesg-output
Comment 2 Greg Kroah-Hartman 2005-10-19 09:51:12 UTC
What type of device are you removing?
Comment 3 Alan Stern 2005-10-19 11:49:02 UTC
The log shows that it was a USB printer.

Frieder, can you attach the contents of /proc/bus/usb/devices with the printer
plugged in?
Comment 4 Frieder B 2005-10-19 14:42:03 UTC
first scenario:
the printer is on
the oops occurs during gentoo
Comment 5 Frieder B 2005-10-19 14:44:15 UTC
Created attachment 6334 [details]
proc-bus-usb-devices

in reply to  Comment #3
Comment 6 Frieder B 2005-10-19 14:50:25 UTC
Created attachment 6335 [details]
proc-bus-usb-devices_new

the other does not contain the required informations
Comment 7 Alan Stern 2005-10-20 07:41:51 UTC
Aha -- multiple altsettings!  Just as I thought.

Greg, this is the problem I warned about earlier.  Your endpoint-attribute sysfs
code doesn't work when altsettings get changed.
Comment 8 Greg Kroah-Hartman 2005-10-20 17:18:07 UTC
On Thu, Oct 20, 2005 at 07:44:44AM -0700, bugme-daemon@kernel-bugs.osdl.org wrote:
> Aha -- multiple altsettings!  Just as I thought.
> 
> Greg, this is the problem I warned about earlier.  Your endpoint-attribute sysfs
> code doesn't work when altsettings get changed.

Ok, then we need some usb core changes in order to handle this properly,
right?

Comment 9 Alan Stern 2005-10-21 12:41:36 UTC
Created attachment 6357 [details]
Fix Greg's endpoint attribute stuff

Greg: Somehow I _knew_ you were going to say that!  :-)

Frieder, see if this patch helps.  I wrote it for 2.6.14-rc4 plus
gregkh-all-2.6.14-rc4.patch.  My copy of gregkh-all is a little old, so let me
know if you have any trouble applying this patch.

Greg: Eww!  Don't you believe in wrapping lines before 80 columns or checking
for error returns from kzalloc etc.?
Comment 10 Frieder B 2005-10-21 15:43:17 UTC
Alan your patch applied fine and seems to fix the oops
thx

Note You need to log in before you can comment on or make changes to this bug.