syzbot
INFO: task hung in hub_port_init (2)
Status:
upstream: reported on 2026/09/28 21:15
Reported-by: syzbot+7668e25a562e60bc31ce@syzkaller.appspotmail.com
First crash: 59d, last: 23d
Sample crash report:
INFO: task kworker/1:5:5853 blocked for more than 145 seconds.
Not tainted syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:kworker/1:5 state:D stack:22520 pid:5853 ppid:2 flags:0x00004000
Workqueue: usb_hub_wq hub_event
Call Trace:
<TASK>
context_switch kernel/sched/core.c:5393 [inline]
__schedule+0x156f/0x4720 kernel/sched/core.c:6722
schedule+0xbd/0x170 kernel/sched/core.c:6796
usb_kill_urb+0x1d3/0x300 drivers/usb/core/urb.c:713
usb_start_wait_urb+0x22b/0x580 drivers/usb/core/message.c:74
usb_internal_control_msg drivers/usb/core/message.c:117 [inline]
usb_control_msg+0x235/0x3e0 drivers/usb/core/message.c:167
get_bMaxPacketSize0 drivers/usb/core/hub.c:4823 [inline]
hub_port_init+0xc0a/0x2720 drivers/usb/core/hub.c:5019
hub_port_connect drivers/usb/core/hub.c:5468 [inline]
hub_port_connect_change drivers/usb/core/hub.c:5679 [inline]
port_event drivers/usb/core/hub.c:5843 [inline]
hub_event+0x25ef/0x4a80 drivers/usb/core/hub.c:5925
process_one_work kernel/workqueue.c:2657 [inline]
process_scheduled_works+0xa60/0x1600 kernel/workqueue.c:2734
worker_thread+0xa5e/0xfe0 kernel/workqueue.c:2815
kthread+0x2fa/0x390 kernel/kthread.c:388
ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:152
ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:293
</TASK>
Showing all locks held in the system:
1 lock held by khungtaskd/29:
#0: ffffffff8e1322e0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:334 [inline]
#0: ffffffff8e1322e0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:786 [inline]
#0: ffffffff8e1322e0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x290 kernel/locking/lockdep.c:6669
2 locks held by getty/5547:
#0: ffff88814c6f90a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243
#1: ffffc9000327e2f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x43a/0x1400 drivers/tty/n_tty.c:2217
5 locks held by kworker/1:5/5853:
#0: ffff88801be9e538 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2632 [inline]
#0: ffff88801be9e538 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: process_scheduled_works+0x975/0x1600 kernel/workqueue.c:2734
#1: ffffc9000482fd00 ((work_completion)(&hub->events)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2632 [inline]
#1: ffffc9000482fd00 ((work_completion)(&hub->events)){+.+.}-{0:0}, at: process_scheduled_works+0x975/0x1600 kernel/workqueue.c:2734
#2: ffff88802720c1d8 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:1094 [inline]
#2: ffff88802720c1d8 (&dev->mutex){....}-{3:3}, at: hub_event+0x188/0x4a80 drivers/usb/core/hub.c:5871
#3: ffff88802720f558 (&port_dev->status_lock){+.+.}-{3:3}, at: usb_lock_port drivers/usb/core/hub.c:3225 [inline]
#3: ffff88802720f558 (&port_dev->status_lock){+.+.}-{3:3}, at: hub_port_connect drivers/usb/core/hub.c:5436 [inline]
#3: ffff88802720f558 (&port_dev->status_lock){+.+.}-{3:3}, at: hub_port_connect_change drivers/usb/core/hub.c:5679 [inline]
#3: ffff88802720f558 (&port_dev->status_lock){+.+.}-{3:3}, at: port_event drivers/usb/core/hub.c:5843 [inline]
#3: ffff88802720f558 (&port_dev->status_lock){+.+.}-{3:3}, at: hub_event+0x2270/0x4a80 drivers/usb/core/hub.c:5925
#4: ffff888027220668 (hcd->address0_mutex){+.+.}-{3:3}, at: hub_port_connect drivers/usb/core/hub.c:5437 [inline]
#4: ffff888027220668 (hcd->address0_mutex){+.+.}-{3:3}, at: hub_port_connect_change drivers/usb/core/hub.c:5679 [inline]
#4: ffff888027220668 (hcd->address0_mutex){+.+.}-{3:3}, at: port_event drivers/usb/core/hub.c:5843 [inline]
#4: ffff888027220668 (hcd->address0_mutex){+.+.}-{3:3}, at: hub_event+0x229b/0x4a80 drivers/usb/core/hub.c:5925
=============================================
NMI backtrace for cpu 1
CPU: 1 PID: 29 Comm: khungtaskd Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/07/2026
Call Trace:
<TASK>
dump_stack_lvl+0x18c/0x250 lib/dump_stack.c:106
nmi_cpu_backtrace+0x3a6/0x3e0 lib/nmi_backtrace.c:113
nmi_trigger_cpumask_backtrace+0x17a/0x2f0 lib/nmi_backtrace.c:62
trigger_all_cpu_backtrace include/linux/nmi.h:160 [inline]
check_hung_uninterruptible_tasks kernel/hung_task.c:222 [inline]
watchdog+0xf59/0xfa0 kernel/hung_task.c:379
kthread+0x2fa/0x390 kernel/kthread.c:388
ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:152
ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:293
</TASK>
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 5141 Comm: klogd Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/07/2026
RIP: 0010:preempt_count arch/x86/include/asm/preempt.h:27 [inline]
RIP: 0010:check_kcov_mode kernel/kcov.c:178 [inline]
RIP: 0010:write_comp_data kernel/kcov.c:241 [inline]
RIP: 0010:__sanitizer_cov_trace_switch+0x65/0xe0 kernel/kcov.c:346
Code: 57 41 56 41 54 53 48 8d 4c 09 01 48 8b 54 24 20 65 4c 8b 05 4d d4 7b 7e 45 31 c9 eb 08 49 ff c1 4c 39 c8 74 77 4e 8b 54 ce 10 <65> 44 8b 1d 3b d4 7b 7e 41 81 e3 00 01 ff 00 74 13 41 81 fb 00 01
RSP: 0018:ffffc900032d7810 EFLAGS: 00000202
RAX: 0000000000000012 RBX: 0000000000000000 RCX: 0000000000000001
RDX: ffffffff8a883106 RSI: ffffffff8f75ad60 RDI: 0000000000000000
RBP: ffffffff8aeb9281 R08: ffff88807e07bc00 R09: 0000000000000010
R10: 0000000000000011 R11: 0000000000000000 R12: ffffc900832d7aff
R13: ffffc900032d7b00 R14: 0000000000000001 R15: ffffffff8aeb9280
FS: 00007f5866720c80(0000) GS:ffff8880b8c00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000110c4625f3 CR3: 000000002fcd5000 CR4: 00000000003506f0
Call Trace:
<TASK>
vsnprintf+0x106/0x1ba0 lib/vsprintf.c:2779
sprintf+0xe8/0x140 lib/vsprintf.c:3027
print_syslog kernel/printk/printk.c:1320 [inline]
info_print_prefix+0xdd/0x360 kernel/printk/printk.c:1350
record_print_text+0x182/0x4a0 kernel/printk/printk.c:1402
syslog_print+0x3cb/0x630 kernel/printk/printk.c:1613
do_syslog+0x575/0x820 kernel/printk/printk.c:1732
__do_sys_syslog kernel/printk/printk.c:1824 [inline]
__se_sys_syslog kernel/printk/printk.c:1822 [inline]
__x64_sys_syslog+0x7c/0x90 kernel/printk/printk.c:1822
do_syscall_x64 arch/x86/entry/common.c:46 [inline]
do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:76
entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f58668eaa37
Code: 73 01 c3 48 8b 0d c1 f3 0c 00 f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 67 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 91 f3 0c 00 f7 d8 64 89 01 48
RSP: 002b:00007fff7ba6ed68 EFLAGS: 00000206 ORIG_RAX: 0000000000000067
RAX: ffffffffffffffda RBX: 00007f5866a8a490 RCX: 00007f58668eaa37
RDX: 00000000000003ff RSI: 00007f5866a8a490 RDI: 0000000000000002
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000004000 R11: 0000000000000206 R12: 00007f5866a8a490
R13: 00007f5866a67dfe R14: 00007f5866a8a607 R15: 00007f5866a8a607
</TASK>
* Struck through repros no longer work on HEAD.