syzbot


INFO: task hung in usbdev_ioctl

Status: upstream: reported on 2024/04/01 11:29
Reported-by: syzbot+3042d2ec6731be33b16c@syzkaller.appspotmail.com
First crash: 29d, last: 29d
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: task hung in usbdev_ioctl (4) usb 1 310d 310d 0/26 auto-obsoleted due to no activity on 2023/09/22 21:55
upstream INFO: task hung in usbdev_ioctl (2) usb 1 800d 800d 0/26 auto-closed as invalid on 2022/05/21 06:20
upstream INFO: task hung in usbdev_ioctl (3) usb 4 429d 589d 0/26 auto-obsoleted due to no activity on 2023/05/26 15:30
upstream INFO: task hung in usbdev_ioctl usb 3 886d 892d 0/26 closed as invalid on 2022/02/08 09:40

Sample crash report:
INFO: task syz-executor.2:8024 blocked for more than 143 seconds.
      Not tainted 6.1.83-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.2  state:D stack:0     pid:8024  ppid:4242   flags:0x00000005
Call trace:
 __switch_to+0x320/0x754 arch/arm64/kernel/process.c:553
 context_switch kernel/sched/core.c:5245 [inline]
 __schedule+0xee4/0x1c98 kernel/sched/core.c:6558
 schedule+0xc4/0x170 kernel/sched/core.c:6634
 schedule_preempt_disabled+0x18/0x2c kernel/sched/core.c:6693
 __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:837 [inline]
 usbdev_do_ioctl drivers/usb/core/devio.c:2609 [inline]
 usbdev_ioctl+0x24c/0x66e8 drivers/usb/core/devio.c:2817
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:870 [inline]
 __se_sys_ioctl fs/ioctl.c:856 [inline]
 __arm64_sys_ioctl+0x14c/0x1c8 fs/ioctl.c:856
 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
 invoke_syscall+0x98/0x2c0 arch/arm64/kernel/syscall.c:52
 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142
 do_el0_svc+0x64/0x218 arch/arm64/kernel/syscall.c:206
 el0_svc+0x58/0x168 arch/arm64/kernel/entry-common.c:637
 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655
 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585

Showing all locks held in the system:
2 locks held by kworker/u4:1/11:
1 lock held by rcu_tasks_kthre/12:
 #0: ffff800015a14e70 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x44/0xcf4 kernel/rcu/tasks.h:516
1 lock held by rcu_tasks_trace/13:
 #0: ffff800015a15670 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x44/0xcf4 kernel/rcu/tasks.h:516
3 locks held by kworker/1:0/22:
 #0: ffff0000d57dd938 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: process_one_work+0x664/0x1404 kernel/workqueue.c:2265
 #1: ffff800019ef7c20 ((work_completion)(&(&ifa->dad_work)->work)){+.+.}-{0:0}, at: process_one_work+0x6a8/0x1404 kernel/workqueue.c:2267
 #2: ffff800017e1fa48 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock+0x20/0x2c net/core/rtnetlink.c:74
1 lock held by khungtaskd/28:
 #0: ffff800015a14ca0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0xc/0x44 include/linux/rcupdate.h:349
2 locks held by getty/3978:
 #0: ffff0000d7b70098 (&tty->ldisc_sem){++++}-{0:0}, at: ldsem_down_read+0x3c/0x4c drivers/tty/tty_ldsem.c:340
 #1: ffff80001dd2b2f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x414/0x1214 drivers/tty/n_tty.c:2188
3 locks held by kworker/u4:5/4307:
3 locks held by kworker/1:16/5739:
 #0: ffff0000c0020938 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x664/0x1404 kernel/workqueue.c:2265
 #1: ffff80002b637c20 ((work_completion)(&data->fib_event_work)){+.+.}-{0:0}, at: process_one_work+0x6a8/0x1404 kernel/workqueue.c:2267
 #2: ffff0000dbf08240 (&data->fib_lock){+.+.}-{3:3}, at: nsim_fib_event_work+0x270/0x32bc drivers/net/netdevsim/fib.c:1489
2 locks held by syz-executor.2/8020:
1 lock held by syz-executor.2/8024:
 #0: ffff0000d16a5190 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:837 [inline]
 #0: ffff0000d16a5190 (&dev->mutex){....}-{3:3}, at: usbdev_do_ioctl drivers/usb/core/devio.c:2609 [inline]
 #0: ffff0000d16a5190 (&dev->mutex){....}-{3:3}, at: usbdev_ioctl+0x24c/0x66e8 drivers/usb/core/devio.c:2817
2 locks held by udevd/8232:
3 locks held by syz-executor.4/12966:
 #0: ffff800017e1fa48 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock net/core/rtnetlink.c:74 [inline]
 #0: ffff800017e1fa48 (rtnl_mutex){+.+.}-{3:3}, at: rtnetlink_rcv_msg+0x6e8/0xd94 net/core/rtnetlink.c:6118
 #1: ffff0001074613e8 (&wg->device_update_lock){+.+.}-{3:3}, at: wg_open+0x208/0x420 drivers/net/wireguard/device.c:49
 #2: ffff800015a1a278 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:291 [inline]
 #2: ffff800015a1a278 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x3e0/0x77c kernel/rcu/tree_exp.h:962
1 lock held by syz-executor.1/13029:
2 locks held by syz-executor.2/13146:
2 locks held by syz-executor.2/13147:
1 lock held by syz-executor.3/13182:
 #0: ffff0001072220e0 (&type->s_umount_key#55/1){+.+.}-{3:3}, at: alloc_super+0x1b4/0x824 fs/super.c:228
1 lock held by syz-executor.0/13186:
 #0: ffff000124595d18 (&rp->fetch_lock){+.+.}-{3:3}, at: mon_bin_get_event+0x50/0x4a4 drivers/usb/mon/mon_bin.c:747
1 lock held by syz-executor.0/13187:
 #0: ffff000124595d18 (&rp->fetch_lock){+.+.}-{3:3}, at: mon_bin_flush+0x48/0x2fc drivers/usb/mon/mon_bin.c:878
1 lock held by syz-executor.0/13188:
 #0: ffff000124595d18 (&rp->fetch_lock){+.+.}-{3:3}, at: mon_bin_flush+0x48/0x2fc drivers/usb/mon/mon_bin.c:878
1 lock held by syz-executor.0/13189:
 #0: ffff000124595d18 (&rp->fetch_lock){+.+.}-{3:3}, at: mon_bin_flush+0x48/0x2fc drivers/usb/mon/mon_bin.c:878
1 lock held by udevadm/13192:

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


Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/04/01 11:29 linux-6.1.y e5cd595e23c1 6baf5069 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 INFO: task hung in usbdev_ioctl
* Struck through repros no longer work on HEAD.