Created attachment 39932 [details] Kernel warning from /var/log/warn A simple disconnect of my USB mouse (Logitech M505) leads to a kernel warning in the logs and hangs my machine, have to use m-sysrq to reboot it. The warning is attached.
What was the last known good kernel?
*** Bug 22092 has been marked as a duplicate of this bug. ***
The warning message shows that the problematic Clear-Halt was issued by usbdev_do_ioctl(), meaning that it was generated by a user program. Obviously it shouldn't cause the machine to hang (and incidentally, it's entirely possible that the warning is not directly connected with the hang). Nevertheless the program is buggy -- it shouldn't try to reset an endpoint while using that endpoint. The log shows the offending program was running under Python. Do you have any idea what the program might be? Also, can you enable CONFIG_USB_DEBUG and attach the dmesg log starting from the time the mouse is unplugged?
Is this still a problem on 2.6.38.y?
All USB bugs should be sent to the linux-usb@vger.kernel.org mailing list, and not entered into bugzilla. Please bring this issue up there, if it is still a problem in the latest kernel release.