syzbot


INFO: task hung in usbdev_open (2)

Status: upstream: reported on 2020/12/29 11:48
Reported-by: syzbot+b73659f5bb96fac34820@syzkaller.appspotmail.com
First crash: 638d, last: 2d05h
similar bugs (5):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 INFO: task hung in usbdev_open (2) 2 227d 234d 0/1 auto-closed as invalid on 2022/03/21 09:54
linux-4.19 INFO: task hung in usbdev_open 6 527d 613d 0/1 auto-closed as invalid on 2021/05/25 14:21
linux-4.14 INFO: task hung in usbdev_open 7 486d 625d 0/1 auto-closed as invalid on 2021/07/05 05:59
upstream INFO: task hung in usbdev_open 2 1015d 1015d 0/22 auto-closed as invalid on 2019/12/23 20:14
upstream INFO: task can't die in usbdev_open 4 520d 632d 0/22 auto-closed as invalid on 2021/04/02 18:49

Sample crash report:
INFO: task syz-executor.0:22322 blocked for more than 143 seconds.
      Not tainted 5.19.0-rc5-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.0  state:D stack:28408 pid:22322 ppid: 14016 flags:0x00004004
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5146 [inline]
 __schedule+0xa00/0x4b50 kernel/sched/core.c:6458
 schedule+0xd2/0x1f0 kernel/sched/core.c:6530
 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:6589
 __mutex_lock_common kernel/locking/mutex.c:679 [inline]
 __mutex_lock+0xa70/0x1350 kernel/locking/mutex.c:747
 device_lock include/linux/device.h:835 [inline]
 usbdev_open+0x19d/0x920 drivers/usb/core/devio.c:1042
 chrdev_open+0x266/0x770 fs/char_dev.c:414
 do_dentry_open+0x4a1/0x11f0 fs/open.c:848
 do_open fs/namei.c:3520 [inline]
 path_openat+0x1c71/0x2910 fs/namei.c:3653
 do_filp_open+0x1aa/0x400 fs/namei.c:3680
 do_sys_openat2+0x16d/0x4c0 fs/open.c:1278
 do_sys_open fs/open.c:1294 [inline]
 __do_sys_openat fs/open.c:1310 [inline]
 __se_sys_openat fs/open.c:1305 [inline]
 __x64_sys_openat+0x13f/0x1f0 fs/open.c:1305
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x46/0xb0
RIP: 0033:0x7fa68ae3c024
RSP: 002b:00007fa68bf89ca0 EFLAGS: 00000293 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 6666666666666667 RCX: 00007fa68ae3c024
RDX: 0000000000000802 RSI: 00007fa68bf89d40 RDI: 00000000ffffff9c
RBP: 00007fa68bf89d40 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000802
R13: 00007ffc150e1bdf R14: 00007fa68bf8a300 R15: 0000000000022000
 </TASK>

Showing all locks held in the system:
4 locks held by kworker/0:1/14:
 #0: ffff8880b9a39ed8 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2b/0x120 kernel/sched/core.c:544
 #1: ffff8880b9a277c8 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x176/0x4e0 kernel/sched/psi.c:880
 #2: ffff8880b9a28398 (&base->lock){-.-.}-{2:2}, at: lock_timer_base+0x5a/0x1f0 kernel/time/timer.c:999
 #3: ffffffff911fc718 (&obj_hash[i].lock){-.-.}-{2:2}, at: debug_object_activate+0x12e/0x3e0 lib/debugobjects.c:658
7 locks held by kworker/1:0/22:
 #0: ffff8880175de138 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline]
 #0: ffff8880175de138 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: arch_atomic_long_set include/linux/atomic/atomic-long.h:41 [inline]
 #0: ffff8880175de138 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: atomic_long_set include/linux/atomic/atomic-instrumented.h:1280 [inline]
 #0: ffff8880175de138 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:636 [inline]
 #0: ffff8880175de138 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:663 [inline]
 #0: ffff8880175de138 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: process_one_work+0x87a/0x1610 kernel/workqueue.c:2260
 #1: ffffc900001c7da8 ((work_completion)(&hub->events)){+.+.}-{0:0}, at: process_one_work+0x8ae/0x1610 kernel/workqueue.c:2264
 #2: ffff888147311190 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:835 [inline]
 #2: ffff888147311190 (&dev->mutex){....}-{3:3}, at: hub_event+0x1c1/0x4690 drivers/usb/core/hub.c:5691
 #3: ffff88802a2eb190 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:835 [inline]
 #3: ffff88802a2eb190 (&dev->mutex){....}-{3:3}, at: __device_attach+0x76/0x530 drivers/base/dd.c:964
 #4: ffff88807a89f118 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:835 [inline]
 #4: ffff88807a89f118 (&dev->mutex){....}-{3:3}, at: __device_attach+0x76/0x530 drivers/base/dd.c:964
 #5: ffffffff8ceafe88 (input_mutex){+.+.}-{3:3}, at: input_register_device.cold+0x34/0x304 drivers/input/input.c:2378
 #6: ffff88807a8992c0 (&dev->mutex#2){+.+.}-{3:3}, at: input_register_handle+0x6d/0x510 drivers/input/input.c:2544
1 lock held by khungtaskd/28:
 #0: ffffffff8bd86660 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x53/0x260 kernel/locking/lockdep.c:6491
2 locks held by syslogd/2956:
 #0: ffff8880b9b39ed8 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2b/0x120 kernel/sched/core.c:544
 #1: ffff8880b9b277c8 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: __skb_try_recv_datagram+0x13a/0x4e0 net/core/datagram.c:262
2 locks held by acpid/2959:
 #0: ffff88807b234158 (&joydev->mutex){+.+.}-{3:3}, at: joydev_close_device drivers/input/joydev.c:220 [inline]
 #0: ffff88807b234158 (&joydev->mutex){+.+.}-{3:3}, at: joydev_release+0x187/0x290 drivers/input/joydev.c:252
 #1: ffff88807a8992c0 (&dev->mutex#2){+.+.}-{3:3}, at: input_close_device+0x42/0x1f0 drivers/input/input.c:726
2 locks held by getty/3290:
 #0: ffff888026481098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:244
 #1: ffffc90002d162e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xe50/0x13c0 drivers/tty/n_tty.c:2124
1 lock held by syz-executor.0/22322:
 #0: ffff888147311190 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:835 [inline]
 #0: ffff888147311190 (&dev->mutex){....}-{3:3}, at: usbdev_open+0x19d/0x920 drivers/usb/core/devio.c:1042

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

NMI backtrace for cpu 0
CPU: 0 PID: 28 Comm: khungtaskd Not tainted 5.19.0-rc5-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/29/2022
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106
 nmi_cpu_backtrace.cold+0x47/0x144 lib/nmi_backtrace.c:111
 nmi_trigger_cpumask_backtrace+0x1e6/0x230 lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:212 [inline]
 watchdog+0xc1d/0xf50 kernel/hung_task.c:369
 kthread+0x2e9/0x3a0 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:302
 </TASK>
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 3837 Comm: kworker/u4:8 Not tainted 5.19.0-rc5-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/29/2022
Workqueue: events_unbound toggle_allocation_gate
RIP: 0010:rcu_rdp_cpu_online kernel/rcu/tree.c:232 [inline]
RIP: 0010:rcu_lockdep_current_cpu_online kernel/rcu/tree.c:1193 [inline]
RIP: 0010:rcu_lockdep_current_cpu_online+0x83/0x140 kernel/rcu/tree.c:1177
Code: 3c 02 00 0f 85 a4 00 00 00 48 03 1c ed e0 b8 7f 8b 48 b8 00 00 00 00 00 fc ff df 48 8d 7b 20 48 89 fa 48 c1 ea 03 80 3c 02 00 <0f> 85 87 00 00 00 48 8d 7b 18 48 8b 6b 20 48 b8 00 00 00 00 00 fc
RSP: 0018:ffffc90004aaf9b0 EFLAGS: 00000046
RAX: dffffc0000000000 RBX: ffff8880b9b3ad80 RCX: ffffffff8165bb9f
RDX: 1ffff110173675b4 RSI: 0000000000000003 RDI: ffff8880b9b3ada0
RBP: 0000000000000001 R08: 0000000000000000 R09: ffffffff8dbb93d7
R10: fffffbfff1b7727a R11: 0000000000000001 R12: 0000000000000001
R13: ffff8880b9b39ec0 R14: ffff888140baa400 R15: ffff88802c149d80
FS:  0000000000000000(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000564ea0f5f600 CR3: 000000000ba8e000 CR4: 0000000000350ee0
Call Trace:
 <TASK>
 rcu_read_lock_held_common kernel/rcu/update.c:112 [inline]
 rcu_read_lock_held_common kernel/rcu/update.c:102 [inline]
 rcu_read_lock_sched_held+0x25/0x70 kernel/rcu/update.c:123
 trace_rcu_utilization include/trace/events/rcu.h:27 [inline]
 trace_rcu_utilization+0x11e/0x1b0 include/trace/events/rcu.h:27
 __schedule+0x21b/0x4b50 kernel/sched/core.c:6358
 schedule+0xd2/0x1f0 kernel/sched/core.c:6530
 schedule_timeout+0x14a/0x2a0 kernel/time/timer.c:1935
 toggle_allocation_gate mm/kfence/core.c:818 [inline]
 toggle_allocation_gate+0x305/0x390 mm/kfence/core.c:803
 process_one_work+0x996/0x1610 kernel/workqueue.c:2289
 worker_thread+0x665/0x1080 kernel/workqueue.c:2436
 kthread+0x2e9/0x3a0 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:302
 </TASK>
----------------
Code disassembly (best guess):
   0:	3c 02                	cmp    $0x2,%al
   2:	00 0f                	add    %cl,(%rdi)
   4:	85 a4 00 00 00 48 03 	test   %esp,0x3480000(%rax,%rax,1)
   b:	1c ed                	sbb    $0xed,%al
   d:	e0 b8                	loopne 0xffffffc7
   f:	7f 8b                	jg     0xffffff9c
  11:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax
  18:	fc ff df
  1b:	48 8d 7b 20          	lea    0x20(%rbx),%rdi
  1f:	48 89 fa             	mov    %rdi,%rdx
  22:	48 c1 ea 03          	shr    $0x3,%rdx
  26:	80 3c 02 00          	cmpb   $0x0,(%rdx,%rax,1)
* 2a:	0f 85 87 00 00 00    	jne    0xb7 <-- trapping instruction
  30:	48 8d 7b 18          	lea    0x18(%rbx),%rdi
  34:	48 8b 6b 20          	mov    0x20(%rbx),%rbp
  38:	48                   	rex.W
  39:	b8 00 00 00 00       	mov    $0x0,%eax
  3e:	00 fc                	add    %bh,%ah

Crashes (159):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce-root 2022/07/04 14:49 upstream 88084a3df167 bff65f44 .config log report info INFO: task hung in usbdev_open
ci-upstream-kasan-gce-root 2022/07/04 06:37 upstream 88084a3df167 1434eec0 .config log report info INFO: task hung in usbdev_open
ci-upstream-kasan-gce-root 2022/07/03 18:32 upstream 69cb6c6556ad 1434eec0 .config log report info INFO: task hung in usbdev_open
ci-upstream-kasan-gce 2022/07/01 16:45 upstream a175eca0f3d7 1434eec0 .config log report info INFO: task hung in usbdev_open
ci-upstream-kasan-gce 2022/06/25 00:23 upstream 92f20ff72066 a5dbd430 .config log report info INFO: task hung in usbdev_open
ci-upstream-kasan-gce 2022/06/24 05:10 upstream de5c208d533a 912f5df7 .config log report info INFO: task hung in usbdev_open
ci-upstream-kasan-gce 2022/06/10 10:22 upstream 874c8ca1e60b 0d5abf15 .config log report info INFO: task hung in usbdev_open
ci-upstream-kasan-gce 2022/06/10 04:16 upstream 874c8ca1e60b 0d5abf15 .config log report info INFO: task hung in usbdev_open
ci-upstream-kasan-gce-smack-root 2022/05/11 12:22 upstream feb9c5e19e91 8d7b3b67 .config log report info INFO: task hung in usbdev_open
ci-upstream-kasan-gce 2022/04/27 20:57 upstream 46cf2c613f4b 1fa34c1b .config log report info INFO: task hung in usbdev_open
ci-upstream-kasan-gce 2022/04/17 16:42 upstream a2c29ccd9477 8bcc32a6 .config log report info INFO: task hung in usbdev_open
ci-upstream-kasan-gce-selinux-root 2022/04/17 08:05 upstream 90ea17a9e27b 8bcc32a6 .config log report info INFO: task hung in usbdev_open
ci-upstream-kasan-gce 2022/04/12 07:48 upstream ce522ba9ef7e af01ee7d .config log report info INFO: task hung in usbdev_open
ci-upstream-kasan-gce 2022/04/10 15:46 upstream e1f700ebd6be e22c3da3 .config log report info INFO: task hung in usbdev_open
ci-upstream-kasan-gce 2022/04/10 08:33 upstream e1f700ebd6be e22c3da3 .config log report info INFO: task hung in usbdev_open
ci-upstream-kasan-gce 2022/04/07 12:14 upstream 3e732ebf7316 c6ff3e05 .config log report info INFO: task hung in usbdev_open
ci-upstream-kasan-gce 2022/04/07 05:30 upstream 3e732ebf7316 97582466 .config log report info INFO: task hung in usbdev_open
ci-upstream-kasan-gce-root 2022/04/03 11:40 upstream be2d3ecedd99 79a2a8fc .config log report info INFO: task hung in usbdev_open
ci-upstream-kasan-gce 2022/04/03 09:15 upstream be2d3ecedd99 79a2a8fc .config log report info INFO: task hung in usbdev_open
ci-upstream-kasan-gce 2022/03/21 18:55 upstream f443e374ae13 e2d91b1d .config log report info INFO: task hung in usbdev_open
ci-upstream-kasan-gce-selinux-root 2022/03/11 09:49 upstream dda64ead7e82 9e8eaa75 .config log report info INFO: task hung in usbdev_open
ci-upstream-kasan-gce 2022/03/07 15:46 upstream ffb217a13a2e 7bdd8b2c .config log report info INFO: task hung in usbdev_open
ci-upstream-kasan-gce-smack-root 2022/03/02 08:23 upstream 575115360652 45a13a73 .config log report info INFO: task hung in usbdev_open
ci-upstream-kasan-gce 2022/03/01 18:06 upstream 719fce7539cd 45a13a73 .config log report info INFO: task hung in usbdev_open
ci-upstream-kasan-gce 2022/02/25 12:30 upstream 73878e5eb1bd 7c337266 .config log report info INFO: task hung in usbdev_open
ci-upstream-kasan-gce 2022/02/23 16:21 upstream 5c1ee569660d 6e821dbf .config log report info INFO: task hung in usbdev_open
ci-upstream-kasan-gce-selinux-root 2022/02/20 18:17 upstream 4f12b742eb2b 3cd800e4 .config log report info INFO: task hung in usbdev_open
ci-upstream-kasan-gce 2022/02/15 11:12 upstream d567f5db412e 8b9ca619 .config log report info INFO: task hung in usbdev_open
ci-upstream-kasan-gce 2022/02/14 11:52 upstream c5d714aa6dce 8b9ca619 .config log report info INFO: task hung in usbdev_open
ci-upstream-kasan-gce 2022/02/13 02:41 upstream b81b1829e7e3 8b9ca619 .config log report info INFO: task hung in usbdev_open
ci-upstream-kasan-gce 2022/02/07 13:53 upstream dfd42facf1e4 a7dab638 .config log report info INFO: task hung in usbdev_open
ci-upstream-kasan-gce 2022/02/07 10:33 upstream d8ad2ce873ab a7dab638 .config log report info INFO: task hung in usbdev_open
ci-upstream-kasan-gce 2022/01/26 06:19 upstream 0280e3c58f92 2cbffd88 .config log report info INFO: task hung in usbdev_open
ci-upstream-kasan-gce 2022/01/22 13:02 upstream 9b57f4589857 214351e1 .config log report info INFO: task hung in usbdev_open
ci-upstream-kasan-gce-root 2022/01/18 01:10 upstream 0c947b893d69 731a2d23 .config log report info INFO: task hung in usbdev_open
ci-upstream-kasan-gce 2022/01/16 03:48 upstream a33f5c380c4b 723cfaf0 .config log report info INFO: task hung in usbdev_open
ci-upstream-kasan-gce 2022/01/11 03:39 upstream 133d9c53c9dc ddb0ab8c .config log report info INFO: task hung in usbdev_open
ci-upstream-kasan-gce 2021/12/15 04:14 upstream 5472f14a3742 f752fb53 .config log report info INFO: task hung in usbdev_open
ci-upstream-kasan-gce 2021/12/12 19:02 upstream a763d5a5abd6 49ca1f59 .config log report info INFO: task hung in usbdev_open
ci-upstream-kasan-gce-root 2021/12/06 18:17 upstream 0fcfb00b28c0 579a8754 .config log report info INFO: task hung in usbdev_open
ci-upstream-kasan-gce-root 2021/12/01 06:35 upstream f080815fdb3e 80270552 .config log report info INFO: task hung in usbdev_open
ci-upstream-kasan-gce-386 2022/07/04 13:38 upstream 88084a3df167 bff65f44 .config log report info INFO: task hung in usbdev_open
ci-upstream-kasan-gce-386 2022/04/07 16:50 upstream 3e732ebf7316 c6ff3e05 .config log report info INFO: task hung in usbdev_open
ci-upstream-kasan-gce-386 2022/04/05 07:06 upstream 312310928417 5915c2cb .config log report info INFO: task hung in usbdev_open
ci-upstream-kasan-gce-386 2022/02/18 14:12 upstream 9195e5e0adbb 3cd800e4 .config log report info INFO: task hung in usbdev_open
ci-upstream-kasan-gce-386 2022/02/09 17:54 upstream e6251ab4551f 0b33604d .config log report info INFO: task hung in usbdev_open
ci-upstream-linux-next-kasan-gce-root 2022/06/24 02:12 linux-next 08897940f458 912f5df7 .config log report info INFO: task hung in usbdev_open
ci-upstream-linux-next-kasan-gce-root 2022/06/10 15:18 linux-next 6d0c80680317 0d5abf15 .config log report info INFO: task hung in usbdev_open
ci-upstream-linux-next-kasan-gce-root 2022/03/01 23:24 linux-next e6ada6df471f 45a13a73 .config log report info INFO: task hung in usbdev_open
ci-qemu2-riscv64 2021/07/01 04:20 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 7ede12b01b59 38a885d1 .config log report info INFO: task hung in usbdev_open
ci-upstream-kasan-gce-root 2020/12/28 20:28 upstream 5c8fe583cce5 8259d56c .config log report info
ci-upstream-kasan-gce 2020/12/13 16:12 upstream 6bff9bb8a292 bca53db9 .config log report info
ci-upstream-kasan-gce 2020/10/06 01:41 upstream 7575fdda569b 1880b4a9 .config log report info
ci-upstream-kasan-gce-386 2021/01/14 19:22 upstream 65f0d2414b70 65a7a854 .config log report info
ci-upstream-linux-next-kasan-gce-root 2022/04/24 01:23 linux-next f1244c81da13 131df97d .config log report info INFO: task can't die in usbdev_open
ci-upstream-linux-next-kasan-gce-root 2022/02/09 11:34 linux-next ef6b35306dd8 0b33604d .config log report info INFO: task can't die in usbdev_open
ci-upstream-linux-next-kasan-gce-root 2022/01/22 15:19 linux-next c94951012a74 214351e1 .config log report info INFO: task can't die in usbdev_open
ci-upstream-linux-next-kasan-gce-root 2022/01/12 21:02 linux-next 32ce2abb03cf 44d1319a .config log report info INFO: task can't die in usbdev_open
ci-upstream-linux-next-kasan-gce-root 2022/01/09 16:34 linux-next b8170452cd51 2ca0d385 .config log report info INFO: task can't die in usbdev_open
ci-upstream-linux-next-kasan-gce-root 2022/01/02 17:43 linux-next ea586a076e8a e1768e9c .config log report info INFO: task can't die in usbdev_open
ci-upstream-linux-next-kasan-gce-root 2021/12/12 07:58 linux-next ea922272cbe5 49ca1f59 .config log report info INFO: task can't die in usbdev_open