syzbot


INFO: task hung in uhid_char_write (2)

Status: auto-obsoleted due to no activity on 2025/06/06 08:46
Subsystems: kernel
[Documentation on labels]
First crash: 151d, last: 151d
Similar bugs (1)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: task hung in uhid_char_write input 1 12 333d 557d 0/29 auto-obsoleted due to no activity on 2024/12/06 12:52

Sample crash report:
INFO: task syz.0.2330:15548 blocked for more than 143 seconds.
      Not tainted 6.14.0-rc5-syzkaller-00214-g21e4543a2e2f #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.0.2330      state:D stack:27632 pid:15548 tgid:15540 ppid:5824   task_flags:0x400040 flags:0x00000004
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5378 [inline]
 __schedule+0xf43/0x5890 kernel/sched/core.c:6765
 __schedule_loop kernel/sched/core.c:6842 [inline]
 schedule+0xe7/0x350 kernel/sched/core.c:6857
 schedule_timeout+0x244/0x280 kernel/time/sleep_timeout.c:75
 do_wait_for_common kernel/sched/completion.c:95 [inline]
 __wait_for_common+0x3e1/0x600 kernel/sched/completion.c:116
 __flush_work+0x7d8/0xcd0 kernel/workqueue.c:4244
 __cancel_work_sync+0x10c/0x130 kernel/workqueue.c:4364
 uhid_dev_destroy drivers/hid/uhid.c:584 [inline]
 uhid_char_write+0xbff/0x10b0 drivers/hid/uhid.c:761
 vfs_write+0x24c/0x1150 fs/read_write.c:677
 ksys_write+0x207/0x250 fs/read_write.c:731
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f848798d169
RSP: 002b:00007f84888b2038 EFLAGS: 00000246
 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f8487ba6080 RCX: 00007f848798d169
RDX: 0000000000000004 RSI: 0000400000002c80 RDI: 0000000000000004
RBP: 00007f8487a0e2a0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f8487ba6080 R15: 00007ffee24f2d78
 </TASK>

Showing all locks held in the system:
1 lock held by khungtaskd/31:
 #0: 
ffffffff8e1bd0c0
 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:337 [inline]
 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline]
 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x7f/0x390 kernel/locking/lockdep.c:6746
8 locks held by kworker/1:2/118:
2 locks held by getty/5577:
 #0: 
ffff888035ee80a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x24/0x80 drivers/tty/tty_ldisc.c:243
 #1: ffffc90002fe62f0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0xfba/0x1480 drivers/tty/n_tty.c:2211
2 locks held by kworker/u8:18/6411:
 #0: ffff88814768b948 ((wq_completion)iou_exit){+.+.}-{0:0}, at: process_one_work+0x1293/0x1ba0 kernel/workqueue.c:3213
 #1: ffffc9000b607d18 ((work_completion)(&ctx->exit_work)){+.+.}-{0:0}, at: process_one_work+0x921/0x1ba0 kernel/workqueue.c:3214
9 locks held by kworker/0:0/11505:
 #0: ffff888144aaf948 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: process_one_work+0x1293/0x1ba0 kernel/workqueue.c:3213
 #1: ffffc900039ffd18 ((work_completion)(&hub->events)){+.+.}-{0:0}, at: process_one_work+0x921/0x1ba0 kernel/workqueue.c:3214
 #2: ffff888028e20190 (&dev->mutex){....}-{4:4}, at: device_lock include/linux/device.h:1030 [inline]
 #2: ffff888028e20190 (&dev->mutex){....}-{4:4}, at: hub_event+0x1c1/0x4e10 drivers/usb/core/hub.c:5861
 #3: ffff888028e22098 (&hub->status_mutex){+.+.}-{4:4}, at: hub_ext_port_status+0x5e/0x670 drivers/usb/core/hub.c:621
 #4: ffff8880b8628a88 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x2c1/0x8e0 kernel/sched/psi.c:987
 #5: ffffc90000007d68 ((work_completion)(&bh->bh)){+.-.}-{0:0}, at: process_one_work+0x921/0x1ba0 kernel/workqueue.c:3214
 #6: ffff888144ffb330 (&bh->lock){..-.}-{3:3}, at: spin_lock_irq include/linux/spinlock.h:376 [inline]
 #6: ffff888144ffb330 (&bh->lock){..-.}-{3:3}, at: usb_giveback_urb_bh+0x2d3/0x570 drivers/usb/core/hcd.c:1692
 #7: ffff888030daa920 (&kcov->lock){..-.}-{3:3}, at: spin_lock include/linux/spinlock.h:351 [inline]
 #7: ffff888030daa920 (&kcov->lock){..-.}-{3:3}, at: kcov_remote_stop+0x148/0x5f0 kernel/kcov.c:1040
 #8: ffff8880b863ec18 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested kernel/sched/core.c:606 [inline]
 #8: ffff8880b863ec18 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x7e/0x130 kernel/sched/core.c:591
1 lock held by syz.0.2330/15548:
 #0: ffffffff8e1c8538 (rcu_state.exp_mutex){+.+.}-{4:4}, at: exp_funnel_lock+0x282/0x3b0 kernel/rcu/tree_exp.h:302
1 lock held by syz.5.2715/16936:
 #0: ffffffff8e1c8400 (rcu_state.barrier_mutex){+.+.}-{4:4}, at: rcu_barrier+0x48/0x700 kernel/rcu/tree.c:3741

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

NMI backtrace for cpu 1
CPU: 1 UID: 0 PID: 31 Comm: khungtaskd Not tainted 6.14.0-rc5-syzkaller-00214-g21e4543a2e2f #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:94 [inline]
 dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:120
 nmi_cpu_backtrace+0x27b/0x390 lib/nmi_backtrace.c:113
 nmi_trigger_cpumask_backtrace+0x29c/0x300 lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:162 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:236 [inline]
 watchdog+0xf62/0x12b0 kernel/hung_task.c:399
 kthread+0x3af/0x750 kernel/kthread.c:464
 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:148
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
 </TASK>
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0 skipped: idling at native_safe_halt arch/x86/include/asm/irqflags.h:48 [inline]
NMI backtrace for cpu 0 skipped: idling at arch_safe_halt arch/x86/include/asm/irqflags.h:106 [inline]
NMI backtrace for cpu 0 skipped: idling at acpi_safe_halt+0x1a/0x20 drivers/acpi/processor_idle.c:111

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/03/08 08:42 upstream 21e4543a2e2f 7e3bd60d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root INFO: task hung in uhid_char_write
* Struck through repros no longer work on HEAD.