syzbot


INFO: task hung in usbdev_open

Status: auto-closed as invalid on 2021/05/25 14:21
Reported-by: syzbot+4ce33fc9c94c614851d1@syzkaller.appspotmail.com
First crash: 1298d, last: 1211d
Similar bugs (10)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 INFO: task hung in usbdev_open (3) 1 512d 512d 0/1 upstream: reported on 2022/12/25 16:08
upstream INFO: task hung in usbdev_open (2) usb C error 644 4d14h 1238d 0/26 upstream: reported C repro on 2020/12/29 11:48
linux-6.1 INFO: task hung in usbdev_open origin:lts-only C done 3 358d 415d 3/3 fixed on 2023/06/28 17:15
linux-4.19 INFO: task hung in usbdev_open (2) 2 911d 919d 0/1 auto-closed as invalid on 2022/03/21 09:54
linux-5.15 INFO: task hung in usbdev_open origin:lts-only C error 18 23d 415d 0/3 upstream: reported C repro on 2023/04/01 11:58
linux-6.1 INFO: task hung in usbdev_open (2) 1 162d 162d 0/3 auto-obsoleted due to no activity on 2024/03/20 05:29
linux-4.14 INFO: task hung in usbdev_open 7 1171d 1309d 0/1 auto-closed as invalid on 2021/07/05 05:59
upstream INFO: task hung in usbdev_open usb 2 1700d 1700d 0/26 auto-closed as invalid on 2019/12/23 20:14
linux-6.1 INFO: task hung in usbdev_open (3) 1 51d 51d 0/3 upstream: reported on 2024/03/31 03:03
linux-4.14 INFO: task hung in usbdev_open (2) 1 462d 462d 0/1 upstream: reported on 2023/02/13 07:50

Sample crash report:
Bluetooth: hci3: command 0x0406 tx timeout
Bluetooth: hci0: command 0x0406 tx timeout
Bluetooth: hci4: command 0x0406 tx timeout
Bluetooth: hci2: command 0x0406 tx timeout
Bluetooth: hci5: command 0x0406 tx timeout
INFO: task syz-executor.2:9826 blocked for more than 140 seconds.
      Not tainted 4.19.170-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor.2  D27928  9826   8155 0x00000004
Call Trace:
 context_switch kernel/sched/core.c:2828 [inline]
 __schedule+0x887/0x2040 kernel/sched/core.c:3517
 schedule+0x8d/0x1b0 kernel/sched/core.c:3561
 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:3619
 __mutex_lock_common kernel/locking/mutex.c:1002 [inline]
 __mutex_lock+0x647/0x1260 kernel/locking/mutex.c:1072
 device_lock include/linux/device.h:1173 [inline]
 usbdev_open+0x152/0x7f0 drivers/usb/core/devio.c:1007
 chrdev_open+0x266/0x770 fs/char_dev.c:423
 do_dentry_open+0x4aa/0x1160 fs/open.c:796
 do_last fs/namei.c:3421 [inline]
 path_openat+0x793/0x2df0 fs/namei.c:3537
 do_filp_open+0x18c/0x3f0 fs/namei.c:3567
 do_sys_open+0x3b3/0x520 fs/open.c:1085
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x417d11
Code: Bad RIP value.
RSP: 002b:00007fd0dc91b810 EFLAGS: 00000293 ORIG_RAX: 0000000000000002
RAX: ffffffffffffffda RBX: 6666666666666667 RCX: 0000000000417d11
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 00007fd0dc91b840
RBP: 000000000119bfc0 R08: 000000000000000f R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000293 R12: 000000000119bf8c
R13: 00007ffd0c3793df R14: 00007fd0dc91c9c0 R15: 000000000119bf8c
INFO: task syz-executor.2:9908 blocked for more than 140 seconds.
      Not tainted 4.19.170-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor.2  D29496  9908   8155 0x00000004
Call Trace:
 context_switch kernel/sched/core.c:2828 [inline]
 __schedule+0x887/0x2040 kernel/sched/core.c:3517
 schedule+0x8d/0x1b0 kernel/sched/core.c:3561
 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:3619
 __mutex_lock_common kernel/locking/mutex.c:1002 [inline]
 __mutex_lock+0x647/0x1260 kernel/locking/mutex.c:1072
 device_lock include/linux/device.h:1173 [inline]
 usbdev_open+0x152/0x7f0 drivers/usb/core/devio.c:1007
 chrdev_open+0x266/0x770 fs/char_dev.c:423
 do_dentry_open+0x4aa/0x1160 fs/open.c:796
 do_last fs/namei.c:3421 [inline]
 path_openat+0x793/0x2df0 fs/namei.c:3537
 do_filp_open+0x18c/0x3f0 fs/namei.c:3567
 do_sys_open+0x3b3/0x520 fs/open.c:1085
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x417d11
Code: Bad RIP value.
RSP: 002b:00007fd0dc8d9810 EFLAGS: 00000293 ORIG_RAX: 0000000000000002
RAX: ffffffffffffffda RBX: 6666666666666667 RCX: 0000000000417d11
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 00007fd0dc8d9840
RBP: 000000000119c110 R08: 000000000000000f R09: 0000000000000000
R10: 00007fd0dc8da9d0 R11: 0000000000000293 R12: 000000000119c0dc
R13: 00007ffd0c3793df R14: 00007fd0dc8da9c0 R15: 000000000119c0dc

Showing all locks held in the system:
1 lock held by khungtaskd/1567:
 #0: 000000005df1effb (rcu_read_lock){....}, at: debug_show_all_locks+0x53/0x265 kernel/locking/lockdep.c:4440
2 locks held by in:imklog/7766:
 #0: 0000000087f503b1 (&f->f_pos_lock){+.+.}, at: __fdget_pos+0x26f/0x310 fs/file.c:767
 #1: 000000005df1effb (rcu_read_lock){....}, at: __debug_check_no_obj_freed lib/debugobjects.c:776 [inline]
 #1: 000000005df1effb (rcu_read_lock){....}, at: debug_check_no_obj_freed+0xb5/0x490 lib/debugobjects.c:817
5 locks held by kworker/0:3/8701:
 #0: 00000000733fe353 ((wq_completion)"usb_hub_wq"){+.+.}, at: process_one_work+0x767/0x1570 kernel/workqueue.c:2126
 #1: 00000000f827e439 ((work_completion)(&hub->events)){+.+.}, at: process_one_work+0x79c/0x1570 kernel/workqueue.c:2130
 #2: 00000000518b7f5a (&dev->mutex){....}, at: device_lock include/linux/device.h:1173 [inline]
 #2: 00000000518b7f5a (&dev->mutex){....}, at: hub_event+0x11b/0x43f0 drivers/usb/core/hub.c:5337
 #3: 00000000f8347409 (&port_dev->status_lock){+.+.}, at: usb_lock_port drivers/usb/core/hub.c:2977 [inline]
 #3: 00000000f8347409 (&port_dev->status_lock){+.+.}, at: hub_port_connect drivers/usb/core/hub.c:5019 [inline]
 #3: 00000000f8347409 (&port_dev->status_lock){+.+.}, at: hub_port_connect_change drivers/usb/core/hub.c:5203 [inline]
 #3: 00000000f8347409 (&port_dev->status_lock){+.+.}, at: port_event drivers/usb/core/hub.c:5311 [inline]
 #3: 00000000f8347409 (&port_dev->status_lock){+.+.}, at: hub_event+0x1ce3/0x43f0 drivers/usb/core/hub.c:5391
 #4: 000000000f81716c (hcd->address0_mutex){+.+.}, at: hub_port_init+0x1b6/0x2fa0 drivers/usb/core/hub.c:4528
1 lock held by syz-executor.2/9826:
 #0: 00000000518b7f5a (&dev->mutex){....}, at: device_lock include/linux/device.h:1173 [inline]
 #0: 00000000518b7f5a (&dev->mutex){....}, at: usbdev_open+0x152/0x7f0 drivers/usb/core/devio.c:1007
1 lock held by syz-executor.2/9908:
 #0: 00000000518b7f5a (&dev->mutex){....}, at: device_lock include/linux/device.h:1173 [inline]
 #0: 00000000518b7f5a (&dev->mutex){....}, at: usbdev_open+0x152/0x7f0 drivers/usb/core/devio.c:1007

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

NMI backtrace for cpu 0
CPU: 0 PID: 1567 Comm: khungtaskd Not tainted 4.19.170-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x1fc/0x2ef lib/dump_stack.c:118
 nmi_cpu_backtrace.cold+0x63/0xa2 lib/nmi_backtrace.c:101
 nmi_trigger_cpumask_backtrace+0x1a6/0x1f0 lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:203 [inline]
 watchdog+0x991/0xe60 kernel/hung_task.c:287
 kthread+0x33f/0x460 kernel/kthread.c:259
 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 23 Comm: kworker/u4:1 Not tainted 4.19.170-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: bat_events batadv_nc_worker
RIP: 0010:mark_lock+0x8d/0x1160 kernel/locking/lockdep.c:3105
Code: b6 14 11 84 d2 74 09 80 fa 03 0f 8e d2 07 00 00 25 ff 1f 00 00 48 69 d8 50 01 00 00 48 81 eb 50 01 00 00 48 81 c3 40 75 d5 8c <48> 8d 7b 30 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 80
RSP: 0018:ffff8880b5057b78 EFLAGS: 00000086
RAX: 0000000000000612 RBX: ffffffff8cdd6b90 RCX: 1ffff11016a091d5
RDX: 0000000000000000 RSI: ffff8880b5048e88 RDI: ffff8880b5048600
RBP: ffff8880b5048e88 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000004
R13: ffff8880b5048600 R14: ffff8880b5048ea8 R15: 0000000000000002
FS:  0000000000000000(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000417ce7 CR3: 00000000aae5f000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 mark_held_locks+0xa6/0xf0 kernel/locking/lockdep.c:2809
 __trace_hardirqs_on_caller kernel/locking/lockdep.c:2830 [inline]
 lockdep_hardirqs_on+0x288/0x5c0 kernel/locking/lockdep.c:2883
 __local_bh_enable_ip+0x159/0x270 kernel/softirq.c:194
 spin_unlock_bh include/linux/spinlock.h:374 [inline]
 batadv_nc_purge_paths+0x22d/0x310 net/batman-adv/network-coding.c:482
 batadv_nc_worker+0x731/0xd50 net/batman-adv/network-coding.c:733
 process_one_work+0x864/0x1570 kernel/workqueue.c:2155
 worker_thread+0x64c/0x1130 kernel/workqueue.c:2298
 kthread+0x33f/0x460 kernel/kthread.c:259
 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415

Crashes (6):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/01/25 14:20 linux-4.19.y 2263955bf7e7 52e37319 .config console log report info ci2-linux-4-19 INFO: task hung in usbdev_open
2020/12/31 13:18 linux-4.19.y 3207316b3bee 5cc121d6 .config console log report info ci2-linux-4-19
2020/12/11 18:15 linux-4.19.y 13d2ce42de8c ba24ffcd .config console log report info ci2-linux-4-19
2020/11/09 17:25 linux-4.19.y b94de4d19498 cba33199 .config console log report info ci2-linux-4-19
2020/11/02 11:15 linux-4.19.y f5d8eef067ac 8bc4594f .config console log report info ci2-linux-4-19
2020/10/30 23:00 linux-4.19.y f5d8eef067ac 18e33098 .config console log report info ci2-linux-4-19
* Struck through repros no longer work on HEAD.