syzbot


INFO: task hung in uhid_char_write

Status: auto-obsoleted due to no activity on 2024/12/06 12:52
Subsystems: input
[Documentation on labels]
First crash: 359d, last: 135d

Sample crash report:
INFO: task syz.0.2589:11996 blocked for more than 143 seconds.
      Not tainted 6.11.0-rc6-syzkaller-00268-g788220eee30d #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.0.2589      state:D stack:28160 pid:11996 tgid:11988 ppid:8250   flags:0x00000004
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5188 [inline]
 __schedule+0xe37/0x5490 kernel/sched/core.c:6529
 __schedule_loop kernel/sched/core.c:6606 [inline]
 schedule+0xe7/0x350 kernel/sched/core.c:6621
 schedule_timeout+0x258/0x2a0 kernel/time/timer.c:2557
 do_wait_for_common kernel/sched/completion.c:95 [inline]
 __wait_for_common+0x3de/0x5f0 kernel/sched/completion.c:116
 __flush_work+0x776/0xc30 kernel/workqueue.c:4212
 __cancel_work_sync+0x10c/0x130 kernel/workqueue.c:4332
 uhid_dev_destroy drivers/hid/uhid.c:584 [inline]
 uhid_char_write+0xc0b/0x10c0 drivers/hid/uhid.c:761
 vfs_write+0x29a/0x1140 fs/read_write.c:588
 ksys_write+0x1f8/0x260 fs/read_write.c:643
 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:0x7f08c9f7cef9
RSP: 002b:00007f08cad0b038 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f08ca136058 RCX: 00007f08c9f7cef9
RDX: 0000000000000004 RSI: 00000000200011c0 RDI: 0000000000000003
RBP: 00007f08c9fef046 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000001 R14: 00007f08ca136058 R15: 00007ffcdad97e68
 </TASK>

Showing all locks held in the system:
3 locks held by kworker/0:1/9:
1 lock held by khungtaskd/30:
 #0: ffffffff8ddb9fe0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:326 [inline]
 #0: ffffffff8ddb9fe0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:838 [inline]
 #0: ffffffff8ddb9fe0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x75/0x340 kernel/locking/lockdep.c:6626
2 locks held by getty/4982:
 #0: ffff888034c390a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x24/0x80 drivers/tty/tty_ldisc.c:243
 #1: ffffc90002efe2f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xfc8/0x1490 drivers/tty/n_tty.c:2211
3 locks held by kworker/1:3/5278:
3 locks held by kworker/1:5/5282:
 #0: ffff88801ac80948 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x1277/0x1b40 kernel/workqueue.c:3206
 #1: ffffc90003987d80 ((work_completion)(&data->fib_event_work)){+.+.}-{0:0}, at: process_one_work+0x921/0x1b40 kernel/workqueue.c:3207
 #2: ffff888032194240 (&data->fib_lock){+.+.}-{3:3}, at: nsim_fib_event_work+0x1bb/0x26d0 drivers/net/netdevsim/fib.c:1489
3 locks held by kworker/0:7/5314:
1 lock held by syz.0.2589/11996:
 #0: ffff888062ff8068 (&uhid->devlock){+.+.}-{3:3}, at: uhid_char_write+0x71/0x10c0 drivers/hid/uhid.c:731
4 locks held by syz-executor/12230:
3 locks held by kworker/1:6/12354:
 #0: ffff88801ac80948 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x1277/0x1b40 kernel/workqueue.c:3206
 #1: ffffc90003eefd80 ((work_completion)(&data->fib_event_work)){+.+.}-{0:0}, at: process_one_work+0x921/0x1b40 kernel/workqueue.c:3207
 #2: ffff88804df2e240 (&data->fib_lock){+.+.}-{3:3}, at: nsim_fib_event_work+0x1bb/0x26d0 drivers/net/netdevsim/fib.c:1489
1 lock held by syz-executor/12955:
1 lock held by syz-executor/12966:

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

NMI backtrace for cpu 0
CPU: 0 UID: 0 PID: 30 Comm: khungtaskd Not tainted 6.11.0-rc6-syzkaller-00268-g788220eee30d #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:93 [inline]
 dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:119
 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:223 [inline]
 watchdog+0xf0c/0x1240 kernel/hung_task.c:379
 kthread+0x2c1/0x3a0 kernel/kthread.c:389
 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
 </TASK>
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 UID: 0 PID: 12966 Comm: syz-executor Not tainted 6.11.0-rc6-syzkaller-00268-g788220eee30d #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024
RIP: 0010:__lock_release kernel/locking/lockdep.c:5464 [inline]
RIP: 0010:lock_release+0x318/0x6f0 kernel/locking/lockdep.c:5780
Code: 04 02 84 c0 74 08 3c 03 0f 8e fc 02 00 00 48 89 ea 45 89 a7 d8 0a 00 00 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 80 3c 02 00 <0f> 85 9e 03 00 00 49 8d bf d0 0a 00 00 48 8b 6d 00 48 b8 00 00 00
RSP: 0018:ffffc9000413f708 EFLAGS: 00000046
RAX: dffffc0000000000 RBX: 1ffff92000827ee3 RCX: ffffc9000413f758
RDX: 1ffff110069c6ca6 RSI: ffff88813fffa810 RDI: ffff888034e36552
RBP: ffff888034e36530 R08: 0000000000000000 R09: fffffbfff2028963
R10: ffffffff90144b1f R11: 0000000000000000 R12: 0000000000000002
R13: 0000000000000003 R14: ffff888034e364d8 R15: ffff888034e35a00
FS:  0000000000000000(0000) GS:ffff8880b8900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055705edb2680 CR3: 000000007a6dc000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <TASK>
 seqcount_lockdep_reader_access include/linux/seqlock.h:73 [inline]
 read_seqbegin include/linux/seqlock.h:772 [inline]
 zone_span_seqbegin include/linux/memory_hotplug.h:151 [inline]
 page_outside_zone_boundaries mm/page_alloc.c:434 [inline]
 bad_range+0xb7/0x440 mm/page_alloc.c:453
 __free_one_page+0x10e/0xb40 mm/page_alloc.c:779
 free_pcppages_bulk+0x2f1/0x620 mm/page_alloc.c:1194
 free_unref_page_commit+0x515/0xfe0 mm/page_alloc.c:2594
 free_unref_page+0x74d/0xe40 mm/page_alloc.c:2642
 vfree+0x181/0x7a0 mm/vmalloc.c:3367
 kcov_put kernel/kcov.c:438 [inline]
 kcov_put+0x2a/0x40 kernel/kcov.c:434
 kcov_close+0x10/0x20 kernel/kcov.c:534
 __fput+0x408/0xbb0 fs/file_table.c:422
 task_work_run+0x14e/0x250 kernel/task_work.c:228
 exit_task_work include/linux/task_work.h:40 [inline]
 do_exit+0xaa3/0x2bb0 kernel/exit.c:882
 do_group_exit+0xd3/0x2a0 kernel/exit.c:1031
 get_signal+0x25fb/0x2770 kernel/signal.c:2917
 arch_do_signal_or_restart+0x90/0x7e0 arch/x86/kernel/signal.c:310
 exit_to_user_mode_loop kernel/entry/common.c:111 [inline]
 exit_to_user_mode_prepare include/linux/entry-common.h:328 [inline]
 __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline]
 syscall_exit_to_user_mode+0x150/0x2a0 kernel/entry/common.c:218
 do_syscall_64+0xda/0x250 arch/x86/entry/common.c:89
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f882db7ed8c
Code: Unable to access opcode bytes at 0x7f882db7ed62.
RSP: 002b:00007ffde74c7e70 EFLAGS: 00000293 ORIG_RAX: 000000000000002c
RAX: 0000000000000028 RBX: 00007f882e864620 RCX: 00007f882db7ed8c
RDX: 0000000000000028 RSI: 00007f882e864670 RDI: 0000000000000003
RBP: 0000000000000000 R08: 00007ffde74c7ec4 R09: 000000000000000c
R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000003
R13: 0000000000000000 R14: 00007f882e864670 R15: 0000000000000000
 </TASK>

Crashes (12):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/09/07 12:41 upstream 788220eee30d 9750182a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root INFO: task hung in uhid_char_write
2024/09/03 18:12 upstream 67784a74e258 512328ba .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root INFO: task hung in uhid_char_write
2024/09/01 03:59 upstream e8784b0aef62 1eda0d14 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root INFO: task hung in uhid_char_write
2024/08/26 11:42 upstream 5be63fc19fca d7d32352 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root INFO: task hung in uhid_char_write
2024/08/15 09:55 upstream 9d5906799f7d e4bacdaf .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root INFO: task hung in uhid_char_write
2024/08/03 17:02 upstream 17712b7ea075 1786a2a8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root INFO: task hung in uhid_char_write
2024/06/22 04:05 upstream 66cc544fd75c edc5149a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root INFO: task hung in uhid_char_write
2024/06/18 02:25 upstream 2ccbdf43d5e7 1f11cfd7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root INFO: task hung in uhid_char_write
2024/06/13 07:14 upstream cea2a26553ac 2aa5052f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root INFO: task hung in uhid_char_write
2024/03/19 10:16 upstream fe46a7dd189e baa80228 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root INFO: task hung in uhid_char_write
2024/03/17 02:34 upstream fe46a7dd189e d615901c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root INFO: task hung in uhid_char_write
2024/01/27 05:02 upstream 168174d78157 cc4a4020 .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.