Bug 88341 - Error in queuecommand_lck: us->srb from usb_stor_control_thread
Summary: Error in queuecommand_lck: us->srb from usb_stor_control_thread
Status: RESOLVED CODE_FIX
Alias: None
Product: Drivers
Classification: Unclassified
Component: USB (show other bugs)
Hardware: x86-64 Linux
: P1 normal
Assignee: Greg Kroah-Hartman
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-17 10:33 UTC by aladjev.andrew@gmail.com
Modified: 2019-02-26 10:59 UTC (History)
1 user (show)

See Also:
Kernel Version: 3.17.3
Subsystem:
Regression: No
Bisected commit-id:


Attachments
messages.tar.xz (610.60 KB, application/x-xz)
2014-11-17 10:34 UTC, aladjev.andrew@gmail.com
Details
crash-log.txt (229.68 KB, text/plain)
2014-11-17 10:34 UTC, aladjev.andrew@gmail.com
Details

Description aladjev.andrew@gmail.com 2014-11-17 10:33:40 UTC
I've just bought a new cheap USB flash called "X-G USB 64GB" (http://goo.gl/EkZEdu) and it is able to make a kernel panic.


1. Compile kernel with CONFIG_USB_STORAGE_DEBUG=y
2. Insert flash into USB 2.0 or 3.0 jack

ID 1908:1320 GEMBIRD PhotoFrame PF-15-1

3. Run "dd if=/dev/zero of=/dev/sdb bs=1M"
4. After copying about 9.1 Gb:

*** thread sleeping
usb-storage: Error in queuecommand_lck: us->srb = ffff88008f23e300
usb-storage: Error ...
...
*** thread awakened

Full log is very big ~80 Mb. See attached "messages.tar.xz".

5. Run "kill -9 pid", wait for 1 minute and remove flash from jack.
6. Kernel panic appears. I've saved vmcore of this panic. See attached "crash-log.txt".


I've made such test with several usb host controllers:

Intel Corporation 6 Series/C200 Series Chipset Family
Etron Technology, Inc. EJ168
ASMedia Technology Inc. ASM1042 SuperSpeed
Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0

It looks like this problem is not connected with controller. I don't know whether flash is broken, but anyway broken flash should not be able to break kernel.

Maybe this bug is connected with https://bugzilla.kernel.org/show_bug.cgi?id=70781, but I could not found any "xhci" messages in my log.
Comment 1 aladjev.andrew@gmail.com 2014-11-17 10:34:14 UTC
Created attachment 157831 [details]
messages.tar.xz
Comment 2 aladjev.andrew@gmail.com 2014-11-17 10:34:52 UTC
Created attachment 157841 [details]
crash-log.txt
Comment 3 Greg Kroah-Hartman 2014-11-17 18:51:10 UTC
On Mon, Nov 17, 2014 at 10:33:40AM +0000, bugzilla-daemon@bugzilla.kernel.org wrote:
> https://bugzilla.kernel.org/show_bug.cgi?id=88341
> 
>             Bug ID: 88341
>            Summary: Error in queuecommand_lck: us->srb from
>                     usb_stor_control_thread

Please send to the linux-usb@vger.kernel.org mailing list.
Comment 4 Alan 2014-12-08 21:54:00 UTC
Actually looks like a block layer bug. Your device went away, and the kernel eventually got bored of it but spewed errors in the process
Comment 5 aladjev.andrew@gmail.com 2019-02-26 10:59:00 UTC
This bug can't be reproduced today. Please resolve it.

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