syzbot


INFO: task hung in usbdev_release

Status: auto-obsoleted due to no activity on 2023/07/13 23:24
Reported-by: syzbot+952ca0f78b127f2d36ff@syzkaller.appspotmail.com
First crash: 409d, last: 409d
Similar bugs (7)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: task hung in usbdev_release (2) usb C error 60 15d 262d 0/26 upstream: reported C repro on 2023/08/09 15:47
upstream INFO: task hung in usbdev_release usb 20 861d 1268d 0/26 closed as invalid on 2022/02/07 19:19
linux-5.15 INFO: task hung in usbdev_release 1 61d 61d 0/3 upstream: reported on 2024/02/26 22:03
linux-4.19 INFO: task hung in usbdev_release 1 1281d 1281d 0/1 auto-closed as invalid on 2021/02/21 22:17
linux-4.19 INFO: task hung in usbdev_release (2) 10 537d 1002d 0/1 auto-obsoleted due to no activity on 2023/03/08 04:55
linux-4.14 INFO: task hung in usbdev_release 2 1217d 1280d 0/1 auto-closed as invalid on 2021/04/27 06:36
linux-6.1 INFO: task hung in usbdev_release (2) origin:upstream C 6 3d00h 224d 0/3 upstream: reported C repro on 2023/09/16 19:39

Sample crash report:
INFO: task syz-executor.0:11764 blocked for more than 143 seconds.
      Not tainted 6.1.19-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.0  state:D stack:0     pid:11764 ppid:4341   flags:0x00000001
Call trace:
 __switch_to+0x320/0x754 arch/arm64/kernel/process.c:553
 context_switch kernel/sched/core.c:5238 [inline]
 __schedule+0xf9c/0x1d84 kernel/sched/core.c:6551
 schedule+0xc4/0x170 kernel/sched/core.c:6627
 schedule_preempt_disabled+0x18/0x2c kernel/sched/core.c:6686
 __mutex_lock_common+0xbd8/0x21a0 kernel/locking/mutex.c:679
 __mutex_lock kernel/locking/mutex.c:747 [inline]
 mutex_lock_nested+0x38/0x44 kernel/locking/mutex.c:799
 device_lock include/linux/device.h:836 [inline]
 usbdev_release+0x80/0x6fc drivers/usb/core/devio.c:1087
 __fput+0x30c/0x7bc fs/file_table.c:320
 ____fput+0x20/0x30 fs/file_table.c:348
 task_work_run+0x240/0x2f0 kernel/task_work.c:179
 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
 do_notify_resume+0x2144/0x3470 arch/arm64/kernel/signal.c:1132
 prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:137 [inline]
 exit_to_user_mode arch/arm64/kernel/entry-common.c:142 [inline]
 el0_svc+0x9c/0x168 arch/arm64/kernel/entry-common.c:638
 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655
 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:581

Showing all locks held in the system:
1 lock held by rcu_tasks_kthre/12:
 #0: ffff800015905db0 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x44/0xcf4 kernel/rcu/tasks.h:510
1 lock held by rcu_tasks_trace/13:
 #0: ffff8000159065b0 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x44/0xcf4 kernel/rcu/tasks.h:510
5 locks held by kworker/1:1/24:
 #0: ffff0000c26a0d38 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: process_one_work+0x664/0x16f4 kernel/workqueue.c:2262
 #1: ffff800019df7c20 ((work_completion)(&hub->events)){+.+.}-{0:0}, at: process_one_work+0x6a8/0x16f4 kernel/workqueue.c:2264
 #2: ffff0000cf999190 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:836 [inline]
 #2: ffff0000cf999190 (&dev->mutex){....}-{3:3}, at: hub_event+0x1c0/0x44a0 drivers/usb/core/hub.c:5683
 #3: ffff0000cf99d510 (&port_dev->status_lock){+.+.}-{3:3}, at: usb_lock_port drivers/usb/core/hub.c:3105 [inline]
 #3: ffff0000cf99d510 (&port_dev->status_lock){+.+.}-{3:3}, at: hub_port_connect drivers/usb/core/hub.c:5251 [inline]
 #3: ffff0000cf99d510 (&port_dev->status_lock){+.+.}-{3:3}, at: hub_port_connect_change drivers/usb/core/hub.c:5499 [inline]
 #3: ffff0000cf99d510 (&port_dev->status_lock){+.+.}-{3:3}, at: port_event drivers/usb/core/hub.c:5655 [inline]
 #3: ffff0000cf99d510 (&port_dev->status_lock){+.+.}-{3:3}, at: hub_event+0x1b78/0x44a0 drivers/usb/core/hub.c:5737
 #4: ffff0000cf6dc468 (hcd->address0_mutex){+.+.}-{3:3}, at: hub_port_connect drivers/usb/core/hub.c:5252 [inline]
 #4: ffff0000cf6dc468 (hcd->address0_mutex){+.+.}-{3:3}, at: hub_port_connect_change drivers/usb/core/hub.c:5499 [inline]
 #4: ffff0000cf6dc468 (hcd->address0_mutex){+.+.}-{3:3}, at: port_event drivers/usb/core/hub.c:5655 [inline]
 #4: ffff0000cf6dc468 (hcd->address0_mutex){+.+.}-{3:3}, at: hub_event+0x1ba0/0x44a0 drivers/usb/core/hub.c:5737
1 lock held by khungtaskd/28:
 #0: ffff800015905be0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0xc/0x44 include/linux/rcupdate.h:305
3 locks held by kworker/u4:3/59:
2 locks held by kworker/0:3/3803:
 #0: ffff0000c0021d38 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_one_work+0x664/0x16f4 kernel/workqueue.c:2262
 #1: ffff80001f677c20 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_one_work+0x6a8/0x16f4 kernel/workqueue.c:2264
1 lock held by udevd/3839:
2 locks held by getty/3990:
 #0: ffff0000d4102098 (&tty->ldisc_sem){++++}-{0:0}, at: ldsem_down_read+0x3c/0x4c drivers/tty/tty_ldsem.c:340
 #1: ffff80001bb902f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x414/0x1210 drivers/tty/n_tty.c:2177
3 locks held by kworker/u4:7/6764:
1 lock held by syz-executor.0/11764:
 #0: ffff0000cf999190 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:836 [inline]
 #0: ffff0000cf999190 (&dev->mutex){....}-{3:3}, at: usbdev_release+0x80/0x6fc drivers/usb/core/devio.c:1087
1 lock held by syz-executor.2/11812:
 #0: ffff0000cf999190 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:836 [inline]
 #0: ffff0000cf999190 (&dev->mutex){....}-{3:3}, at: usbdev_open+0x13c/0x6c0 drivers/usb/core/devio.c:1042
2 locks held by syz-executor.3/14517:
 #0: ffff800017d071e8 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock net/core/rtnetlink.c:74 [inline]
 #0: ffff800017d071e8 (rtnl_mutex){+.+.}-{3:3}, at: rtnetlink_rcv_msg+0x6e8/0xd94 net/core/rtnetlink.c:6088
 #1: ffff80001590b1b8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:292 [inline]
 #1: ffff80001590b1b8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x3e0/0x768 kernel/rcu/tree_exp.h:948
3 locks held by syz-executor.5/14526:
2 locks held by syz-executor.1/14530:
 #0: ffff800017cfb1d0 (pernet_ops_rwsem){++++}-{3:3}, at: copy_net_ns+0x2d4/0x590 net/core/net_namespace.c:474
 #1: ffff800017d071e8 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock+0x20/0x2c net/core/rtnetlink.c:74

=============================================


Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/03/15 23:23 linux-6.1.y 6449a0ba6843 18b58603 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 INFO: task hung in usbdev_release
* Struck through repros no longer work on HEAD.