syzbot


INFO: task hung in usb_remote_wakeup

Status: auto-closed as invalid on 2021/02/06 13:01
Reported-by: syzbot+ea0dbacb035549a5cf3d@syzkaller.appspotmail.com
First crash: 1505d, last: 1505d
Similar bugs (6)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 INFO: task hung in usb_remote_wakeup 1 1445d 1445d 0/1 auto-closed as invalid on 2021/04/07 18:31
upstream INFO: task hung in usb_remote_wakeup (2) usb syz inconclusive done 9 1190d 1389d 20/28 fixed on 2021/11/10 00:50
upstream INFO: task hung in usb_remote_wakeup (3) usb 1 1003d 1003d 0/28 auto-closed as invalid on 2022/05/24 13:32
upstream INFO: task hung in usb_remote_wakeup (5) usb 1 563d 563d 0/28 auto-obsoleted due to no activity on 2023/08/08 04:40
upstream INFO: task hung in usb_remote_wakeup usb 7 1854d 2041d 0/28 auto-closed as invalid on 2020/01/24 14:16
upstream INFO: task hung in usb_remote_wakeup (4) usb 2 744d 794d 0/28 auto-obsoleted due to no activity on 2023/02/10 23:06

Sample crash report:
INFO: task kworker/1:0:18 blocked for more than 140 seconds.
      Not tainted 4.14.198-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
kworker/1:0     D26304    18      2 0x80000000
Workqueue: pm hcd_resume_work
Call Trace:
 context_switch kernel/sched/core.c:2808 [inline]
 __schedule+0x88b/0x1de0 kernel/sched/core.c:3384
 schedule+0x8d/0x1b0 kernel/sched/core.c:3428
 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:3486
 __mutex_lock_common kernel/locking/mutex.c:833 [inline]
 __mutex_lock+0x669/0x1310 kernel/locking/mutex.c:893
 device_lock include/linux/device.h:1081 [inline]
 usb_remote_wakeup+0x1e/0x90 drivers/usb/core/hub.c:3546
 process_one_work+0x793/0x14a0 kernel/workqueue.c:2116
 worker_thread+0x5cc/0xff0 kernel/workqueue.c:2250
 kthread+0x30d/0x420 kernel/kthread.c:232
 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:404
INFO: task kworker/1:3:3657 blocked for more than 140 seconds.
      Not tainted 4.14.198-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
kworker/1:3     D27152  3657      2 0x80000000
Workqueue: usb_hub_wq hub_event
Call Trace:
 context_switch kernel/sched/core.c:2808 [inline]
 __schedule+0x88b/0x1de0 kernel/sched/core.c:3384
 schedule+0x8d/0x1b0 kernel/sched/core.c:3428
 usb_kill_urb.part.0+0x125/0x190 drivers/usb/core/urb.c:691
 usb_kill_urb+0x7c/0x90 drivers/usb/core/urb.c:686
 usb_start_wait_urb+0x206/0x260 drivers/usb/core/message.c:62
 usb_internal_control_msg drivers/usb/core/message.c:100 [inline]
 usb_control_msg+0x302/0x450 drivers/usb/core/message.c:151
 hub_port_init+0xfb1/0x28b0 drivers/usb/core/hub.c:4555
 hub_port_connect drivers/usb/core/hub.c:4905 [inline]
 hub_port_connect_change drivers/usb/core/hub.c:5088 [inline]
 port_event drivers/usb/core/hub.c:5194 [inline]
 hub_event+0x1bc5/0x39a0 drivers/usb/core/hub.c:5274
 process_one_work+0x793/0x14a0 kernel/workqueue.c:2116
 worker_thread+0x5cc/0xff0 kernel/workqueue.c:2250
 kthread+0x30d/0x420 kernel/kthread.c:232
 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:404
INFO: task kworker/0:2:3761 blocked for more than 140 seconds.
      Not tainted 4.14.198-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
kworker/0:2     D26784  3761      2 0x80000000
Workqueue: usb_hub_wq hub_event
Call Trace:
 context_switch kernel/sched/core.c:2808 [inline]
 __schedule+0x88b/0x1de0 kernel/sched/core.c:3384
 schedule+0x8d/0x1b0 kernel/sched/core.c:3428
 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:3486
 __mutex_lock_common kernel/locking/mutex.c:833 [inline]
 __mutex_lock+0x669/0x1310 kernel/locking/mutex.c:893
 hub_port_init+0x15b/0x28b0 drivers/usb/core/hub.c:4429
 hub_port_connect drivers/usb/core/hub.c:4905 [inline]
 hub_port_connect_change drivers/usb/core/hub.c:5088 [inline]
 port_event drivers/usb/core/hub.c:5194 [inline]
 hub_event+0x1bc5/0x39a0 drivers/usb/core/hub.c:5274
 process_one_work+0x793/0x14a0 kernel/workqueue.c:2116
 worker_thread+0x5cc/0xff0 kernel/workqueue.c:2250
 kthread+0x30d/0x420 kernel/kthread.c:232
 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:404

Showing all locks held in the system:
3 locks held by kworker/1:0/18:
 #0:  ("pm"){+.+.}, at: [<ffffffff813ba640>] process_one_work+0x6b0/0x14a0 kernel/workqueue.c:2087
 #1:  ((&hcd->wakeup_work)){+.+.}, at: [<ffffffff813ba676>] process_one_work+0x6e6/0x14a0 kernel/workqueue.c:2091
 #2:  (&dev->mutex){....}, at: [<ffffffff842ae20e>] device_lock include/linux/device.h:1081 [inline]
 #2:  (&dev->mutex){....}, at: [<ffffffff842ae20e>] usb_remote_wakeup+0x1e/0x90 drivers/usb/core/hub.c:3546
1 lock held by khungtaskd/1066:
 #0:  (tasklist_lock){.+.+}, at: [<ffffffff814777f4>] debug_show_all_locks+0x7c/0x21a kernel/locking/lockdep.c:4548
5 locks held by kworker/1:3/3657:
 #0:  ("usb_hub_wq"){+.+.}, at: [<ffffffff813ba640>] process_one_work+0x6b0/0x14a0 kernel/workqueue.c:2087
 #1:  ((&hub->events)){+.+.}, at: [<ffffffff813ba676>] process_one_work+0x6e6/0x14a0 kernel/workqueue.c:2091
 #2:  (&dev->mutex){....}, at: [<ffffffff842ae59c>] device_lock include/linux/device.h:1081 [inline]
 #2:  (&dev->mutex){....}, at: [<ffffffff842ae59c>] hub_event+0xfc/0x39a0 drivers/usb/core/hub.c:5220
 #3:  (&port_dev->status_lock){+.+.}, at: [<ffffffff842b0050>] usb_lock_port drivers/usb/core/hub.c:2934 [inline]
 #3:  (&port_dev->status_lock){+.+.}, at: [<ffffffff842b0050>] hub_port_connect drivers/usb/core/hub.c:4904 [inline]
 #3:  (&port_dev->status_lock){+.+.}, at: [<ffffffff842b0050>] hub_port_connect_change drivers/usb/core/hub.c:5088 [inline]
 #3:  (&port_dev->status_lock){+.+.}, at: [<ffffffff842b0050>] port_event drivers/usb/core/hub.c:5194 [inline]
 #3:  (&port_dev->status_lock){+.+.}, at: [<ffffffff842b0050>] hub_event+0x1bb0/0x39a0 drivers/usb/core/hub.c:5274
 #4:  (hcd->address0_mutex){+.+.}, at: [<ffffffff842a4b1b>] hub_port_init+0x15b/0x28b0 drivers/usb/core/hub.c:4429
5 locks held by kworker/0:2/3761:
 #0:  ("usb_hub_wq"){+.+.}, at: [<ffffffff813ba640>] process_one_work+0x6b0/0x14a0 kernel/workqueue.c:2087
 #1:  ((&hub->events)){+.+.}, at: [<ffffffff813ba676>] process_one_work+0x6e6/0x14a0 kernel/workqueue.c:2091
 #2:  (&dev->mutex){....}, at: [<ffffffff842ae59c>] device_lock include/linux/device.h:1081 [inline]
 #2:  (&dev->mutex){....}, at: [<ffffffff842ae59c>] hub_event+0xfc/0x39a0 drivers/usb/core/hub.c:5220
 #3:  (&port_dev->status_lock){+.+.}, at: [<ffffffff842b0050>] usb_lock_port drivers/usb/core/hub.c:2934 [inline]
 #3:  (&port_dev->status_lock){+.+.}, at: [<ffffffff842b0050>] hub_port_connect drivers/usb/core/hub.c:4904 [inline]
 #3:  (&port_dev->status_lock){+.+.}, at: [<ffffffff842b0050>] hub_port_connect_change drivers/usb/core/hub.c:5088 [inline]
 #3:  (&port_dev->status_lock){+.+.}, at: [<ffffffff842b0050>] port_event drivers/usb/core/hub.c:5194 [inline]
 #3:  (&port_dev->status_lock){+.+.}, at: [<ffffffff842b0050>] hub_event+0x1bb0/0x39a0 drivers/usb/core/hub.c:5274
 #4:  (hcd->address0_mutex){+.+.}, at: [<ffffffff842a4b1b>] hub_port_init+0x15b/0x28b0 drivers/usb/core/hub.c:4429
2 locks held by agetty/6286:
 #0:  (&tty->ldisc_sem){++++}, at: [<ffffffff8343ea52>] tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:284
 #1:  (&ldata->atomic_read_lock){+.+.}, at: [<ffffffff83433da3>] n_tty_read+0x1e3/0x1680 drivers/tty/n_tty.c:2156

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

NMI backtrace for cpu 1
CPU: 1 PID: 1066 Comm: khungtaskd Not tainted 4.14.198-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:17 [inline]
 dump_stack+0x1b2/0x283 lib/dump_stack.c:58
 nmi_cpu_backtrace.cold+0x57/0x93 lib/nmi_backtrace.c:101
 nmi_trigger_cpumask_backtrace+0x13a/0x17f lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:140 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:195 [inline]
 watchdog+0x5b9/0xb40 kernel/hung_task.c:274
 kthread+0x30d/0x420 kernel/kthread.c:232
 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:404
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 4620 Comm: syz-executor.5 Not tainted 4.14.198-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
task: ffff88808ca10100 task.stack: ffff888050d40000
RIP: 0010:seqcount_lockdep_reader_access include/linux/seqlock.h:81 [inline]
RIP: 0010:read_seqcount_begin include/linux/seqlock.h:164 [inline]
RIP: 0010:ktime_get_update_offsets_now+0x9f/0x3f0 kernel/time/timekeeping.c:2230
RSP: 0018:ffff8880aea07ec8 EFLAGS: 00000046
RAX: 0000000000000000 RBX: dffffc0000000000 RCX: 0000000000000000
RDX: 1ffff1101194212a RSI: 0000000000000000 RDI: ffff88808ca10950
RBP: fffffbfff0fa2d20 R08: ffffffff8a0a0900 R09: 00000000000c404c
R10: ffff88808ca109b0 R11: ffff88808ca10100 R12: 0000000000000006
R13: ffff8880aea25bf0 R14: ffff8880aea25ca8 R15: 0000000000000000
FS:  00007fbbc022e700(0000) GS:ffff8880aea00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000559eca3854b8 CR3: 0000000052ff6000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 hrtimer_update_base kernel/time/hrtimer.c:505 [inline]
 hrtimer_interrupt+0x139/0x5e0 kernel/time/hrtimer.c:1309
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1075 [inline]
 smp_apic_timer_interrupt+0x117/0x5e0 arch/x86/kernel/apic/apic.c:1100
 apic_timer_interrupt+0x93/0xa0 arch/x86/entry/entry_64.S:793
 </IRQ>
RIP: 0010:arch_local_irq_restore arch/x86/include/asm/paravirt.h:779 [inline]
RIP: 0010:lock_is_held_type+0x17a/0x210 kernel/locking/lockdep.c:4038
RSP: 0018:ffff888050d47b48 EFLAGS: 00000286 ORIG_RAX: ffffffffffffff10
RAX: 1ffffffff0fa2d21 RBX: 0000000000000286 RCX: 0000000000000001
RDX: dffffc0000000000 RSI: 00000000ffffffff RDI: 0000000000000286
RBP: ffff88808ca10100 R08: 0000000020d90500 R09: 0000000000000001
R10: 0000000000000000 R11: ffff88808ca10100 R12: 0000000000000000
R13: ffffea000235ee40 R14: 0000000000001000 R15: ffff888050d47df0
 lock_is_held include/linux/lockdep.h:437 [inline]
 ___might_sleep+0x1ea/0x2b0 kernel/sched/core.c:6007
 kmap include/linux/highmem.h:59 [inline]
 copy_page_to_iter_iovec lib/iov_iter.c:204 [inline]
 copy_page_to_iter+0x2e6/0xca0 lib/iov_iter.c:723
 pipe_to_user+0xa8/0x160 fs/splice.c:1237
 splice_from_pipe_feed fs/splice.c:502 [inline]
 __splice_from_pipe+0x326/0x7a0 fs/splice.c:626
 vmsplice_to_user+0x190/0x1b0 fs/splice.c:1272
 SYSC_vmsplice fs/splice.c:1353 [inline]
 SyS_vmsplice+0x12a/0x150 fs/splice.c:1334
 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
 entry_SYSCALL_64_after_hwframe+0x46/0xbb
RIP: 0033:0x45de29
RSP: 002b:00007fbbc022dc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000116
RAX: ffffffffffffffda RBX: 0000000000038340 RCX: 000000000045de29
RDX: 0000000000000001 RSI: 0000000020000000 RDI: 0000000000000005
RBP: 000000000118c010 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000118bfd4
R13: 00007ffed9cbc1ff R14: 00007fbbc022e9c0 R15: 000000000118bfd4
Code: 24 10 80 3c 18 00 0f 85 d7 02 00 00 48 83 3d 58 b7 81 06 00 0f 84 54 02 00 00 e8 4d e5 0b 00 fa 66 0f 1f 44 00 00 e8 b1 d5 f6 ff <45> 31 c9 31 d2 31 f6 ff 74 24 50 41 b8 01 00 00 00 b9 02 00 00 

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/10/09 13:00 linux-4.14.y cbfa1702aaf6 fa79ed2a .config console log report info ci2-linux-4-14
* Struck through repros no longer work on HEAD.