what made me file my logs here is that both the symptom (lsusb hanging) and what looks like the underlying cause are both the same. A crash of khubd kernel thread is always there, with a similar stack trace in every case, triggered by the same pattern: usb_stor_disconnect -> usb_stor_disconnect -> kthread_stop -> ...
Hi Dave,
what made me file my logs here is that both the symptom (lsusb hanging) and what looks like the underlying cause are both the same. A crash of khubd kernel thread is always there, with a similar stack trace in every case, triggered by the same pattern: usb_stor_disconnect -> usb_stor_disconnect -> kthread_stop -> ...
E.g. this is from a post above:
[ 1680.200076] khubd D 000164da 0 22 2 0x00000000 timeout+ 0x1ad/0x280 wakeup+ 0x20b/0x370 task+0x7e/ 0xa0 common+ 0xa6/0x130 wake_up+ 0x2ef/0x4a0 wake_function+ 0x0/0x20 completion+ 0x17/0x20 stop+0x3f/ 0xa0 everything+ 0x28/0xb0 [usb_storage] disconnect+ 0x1f/0x30 [usb_storage] interface+ 0x46/0x130 release_ driver+ 0x51/0xb0 release_ driver+ 0x25/0x40 device+ 0x7b/0xa0 del+0xf7/ 0x180 device+ 0x63/0x110 0x9e/0x120 connect_ change+ 0x8b/0x890 msg+0xd5/ 0x130 feature+ 0x50/0x60 0x1f5/0x510 wait+0x4f/ 0x70 0x3a/0x140 wake_function+ 0x0/0x50 0x0/0x140 thread_ helper+ 0x7/0x10
[ 1680.200086] f710bd34 00000046 e68a0000 000164da 00000000 c0848760 f7100f64 c0848760
[ 1680.200099] 7478828a 0000011c c0848760 c0848760 f7100f64 c0848760 c0848760 f2616000
[ 1680.200110] 00000000 0000011c f7100cc0 7fffffff 7fffffff e68a1fc8 f710bd94 c058c1ed
[ 1680.200121] Call Trace:
[ 1680.200138] [<c058c1ed>] schedule_
[ 1680.200148] [<c014926b>] ? check_preempt_
[ 1680.200157] [<c0132c0e>] ? enqueue_
[ 1680.200165] [<c058bea6>] wait_for_
[ 1680.200174] [<c014248f>] ? try_to_
[ 1680.200182] [<c0142640>] ? default_
[ 1680.200200] [<c058bfe7>] wait_for_
[ 1680.200208] [<c016790f>] kthread_
[ 1680.200223] [<f809cf68>] release_
[ 1680.200236] [<f809d00f>] usb_stor_
[ 1680.200244] [<c044bd06>] usb_unbind_
[ 1680.200254] [<c03e7fa1>] __device_
[ 1680.200260] [<c03e80c5>] device_
[ 1680.200269] [<c03e737b>] bus_remove_
[ 1680.200277] [<c03e57f7>] device_
[ 1680.200283] [<c0448b13>] usb_disable_
[ 1680.200292] [<c04435fe>] usb_disconnect+
[ 1680.200300] [<c0443b5b>] hub_port_
[ 1680.200307] [<c0449785>] ? usb_control_
[ 1680.200315] [<c0441590>] ? clear_port_
[ 1680.200323] [<c0444b05>] hub_events+
[ 1680.200330] [<c0167cbf>] ? finish_
[ 1680.200337] [<c0444e5a>] hub_thread+
[ 1680.200344] [<c0167b50>] ? autoremove_
[ 1680.200352] [<c0444e20>] ? hub_thread+
[ 1680.200358] [<c01678c4>] kthread+0x74/0x80
[ 1680.200365] [<c0167850>] ? kthread+0x0/0x80
[ 1680.200373] [<c0104087>] kernel_
while this is mine:
[42722.411019] Call Trace: 5dd>] schedule_ timeout+ 0x26d/0x2e0 6a3>] ? update_ curr+0x103/ 0x210 099>] wait_for_ common+ 0xd9/0x180 690>] ? default_ wake_function+ 0x0/0x20 21d>] wait_for_ completion+ 0x1d/0x20 9e2>] kthread_ stop+0x42/ 0xf0 5fe>] release_ everything+ 0x2e/0xb0 [usb_storage] 4ca>] usb_stor_ disconnect+ 0x2a/0x40 [usb_storage] 64a>] usb_unbind_ interface+ 0x5a/0x1a0 305>] __device_ release_ driver+ 0x75/0xe0 39d>] device_ release_ driver+ 0x2d/0x40 e4b>] bus_remove_ device+ 0x7b/0xa0 0e7>] device_ del+0x127/ 0x1b0 404>] usb_disable_ device+ 0x74/0x130 4e5>] usb_disconnect+ 0x95/0x130 aa8>] ? usb_init_ urb+0x28/ 0x40 29d>] hub_port_ connect_ change+ 0x9d/0x930 e72>] hub_events+ 0x342/0x4e0 045>] hub_thread+ 0x35/0x180 0e0>] ? autoremove_ wake_function+ 0x0/0x40 010>] ? hub_thread+ 0x0/0x180 996>] kthread+0x96/0xa0 e24>] kernel_ thread_ helper+ 0x4/0x10 900>] ? kthread+0x0/0xa0 e20>] ? kernel_ thread_ helper+ 0x0/0x10
[42722.411030] [<ffffffff815c8
[42722.411038] [<ffffffff81057
[42722.411044] [<ffffffff815c8
[42722.411049] [<ffffffff8105f
[42722.411056] [<ffffffff815c8
[42722.411061] [<ffffffff81087
[42722.411068] [<ffffffffa0237
[42722.411074] [<ffffffffa0238
[42722.411081] [<ffffffff81444
[42722.411089] [<ffffffff813bb
[42722.411093] [<ffffffff813bb
[42722.411097] [<ffffffff813ba
[42722.411102] [<ffffffff813b8
[42722.411106] [<ffffffff81442
[42722.411112] [<ffffffff8143b
[42722.411116] [<ffffffff81440
[42722.411120] [<ffffffff8143c
[42722.411125] [<ffffffff8143c
[42722.411130] [<ffffffff8143d
[42722.411134] [<ffffffff81088
[42722.411138] [<ffffffff8143d
[42722.411141] [<ffffffff81087
[42722.411147] [<ffffffff8100c
[42722.411152] [<ffffffff81087
[42722.411155] [<ffffffff8100c