syzbot


INFO: task hung in serio_unregister_port (3)

Status: auto-obsoleted due to no activity on 2026/01/15 01:35
Subsystems: input
[Documentation on labels]
First crash: 104d, last: 104d
Similar bugs (2)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: task hung in serio_unregister_port input 1 1 597d 597d 0/29 auto-obsoleted due to no activity on 2024/09/09 01:57
upstream INFO: task hung in serio_unregister_port (2) input 1 1 374d 374d 0/29 auto-obsoleted due to no activity on 2025/04/19 16:42

Sample crash report:
INFO: task syz.2.2416:18591 blocked for more than 150 seconds.
      Not tainted syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.2.2416      state:D stack:25608 pid:18591 tgid:18591 ppid:5846   task_flags:0x400040 flags:0x00080002
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5325 [inline]
 __schedule+0x1798/0x4cc0 kernel/sched/core.c:6929
 __schedule_loop kernel/sched/core.c:7011 [inline]
 schedule+0x165/0x360 kernel/sched/core.c:7026
 schedule_preempt_disabled+0x13/0x30 kernel/sched/core.c:7083
 __mutex_lock_common kernel/locking/mutex.c:676 [inline]
 __mutex_lock+0x7e6/0x1350 kernel/locking/mutex.c:760
 class_mutex_constructor include/linux/mutex.h:228 [inline]
 serio_unregister_port+0x2f/0x190 drivers/input/serio/serio.c:677
 userio_char_release+0x80/0xc0 drivers/input/serio/userio.c:105
 __fput+0x44c/0xa70 fs/file_table.c:468
 task_work_run+0x1d4/0x260 kernel/task_work.c:227
 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline]
 exit_to_user_mode_loop+0xe9/0x130 kernel/entry/common.c:43
 exit_to_user_mode_prepare include/linux/irq-entry-common.h:225 [inline]
 syscall_exit_to_user_mode_work include/linux/entry-common.h:175 [inline]
 syscall_exit_to_user_mode include/linux/entry-common.h:210 [inline]
 do_syscall_64+0x2bd/0xfa0 arch/x86/entry/syscall_64.c:100
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fcf2358eec9
RSP: 002b:00007fcf2390fb88 EFLAGS: 00000246 ORIG_RAX: 00000000000001b4
RAX: 0000000000000000 RBX: 00000000000963e5 RCX: 00007fcf2358eec9
RDX: 0000000000000000 RSI: 000000000000001e RDI: 0000000000000003
RBP: 00007fcf237e7da0 R08: 0000000000000001 R09: 000000102390fe7f
R10: 0000001b2fd20000 R11: 0000000000000246 R12: 00007fcf237e5fac
R13: 00007fcf237e5fa0 R14: ffffffffffffffff R15: 00007fcf2390fca0
 </TASK>

Showing all locks held in the system:
1 lock held by khungtaskd/31:
 #0: ffffffff8e13d2e0 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:331 [inline]
 #0: ffffffff8e13d2e0 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:867 [inline]
 #0: ffffffff8e13d2e0 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x2e/0x180 kernel/locking/lockdep.c:6775
2 locks held by acpid/5182:
1 lock held by udevd/5197:
1 lock held by dhcpcd/5492:
2 locks held by getty/5587:
 #0: ffff88814dbdc0a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243
 #1: ffffc9000332b2f0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x43e/0x1400 drivers/tty/n_tty.c:2222
2 locks held by syz-executor/5814:
7 locks held by kworker/1:6/5922:
2 locks held by kworker/1:7/14390:
 #0: ffff8880b863a058 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0xad/0x140 kernel/sched/core.c:646
 #1: ffff8880b8724048 (psi_seq){-.-.}-{0:0}, at: psi_task_switch+0x53/0x880 kernel/sched/psi.c:933
3 locks held by kworker/0:0/14395:
3 locks held by kworker/0:8/14397:
 #0: 
ffff88813ff19948
 (
(wq_completion)events
){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3238 [inline]
){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0 kernel/workqueue.c:3346
 #1: ffffc900048ffba0 (free_ipc_work){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3239 [inline]
 #1: ffffc900048ffba0 (free_ipc_work){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0 kernel/workqueue.c:3346
 #2: ffffffff8e142d78 (rcu_state.exp_mutex){+.+.}-{4:4}, at: exp_funnel_lock kernel/rcu/tree_exp.h:311 [inline]
 #2: ffffffff8e142d78 (rcu_state.exp_mutex){+.+.}-{4:4}, at: synchronize_rcu_expedited+0x2f6/0x730 kernel/rcu/tree_exp.h:957
5 locks held by syz.2.2416/18591:
 #0: ffffffff8ef695a8 (serio_mutex){+.+.}-{4:4}, at: class_mutex_constructor include/linux/mutex.h:228 [inline]
 #0: ffffffff8ef695a8 (serio_mutex){+.+.}-{4:4}, at: serio_unregister_port+0x2f/0x190 drivers/input/serio/serio.c:677
 #1: ffff88807c04b2e8 (&dev->mutex){....}-{4:4}, at: device_lock include/linux/device.h:914 [inline]
 #1: ffff88807c04b2e8 (&dev->mutex){....}-{4:4}, at: __device_driver_lock drivers/base/dd.c:1096 [inline]
 #1: ffff88807c04b2e8 (&dev->mutex){....}-{4:4}, at: device_release_driver_internal+0xb6/0x800 drivers/base/dd.c:1294
 #2: ffff88807c04b1d8 (&serio->drv_mutex){+.+.}-{4:4}, at: class_mutex_constructor include/linux/mutex.h:228 [inline]
 #2: ffff88807c04b1d8 (&serio->drv_mutex){+.+.}-{4:4}, at: serio_disconnect_driver drivers/input/serio/serio.c:59 [inline]
 #2: ffff88807c04b1d8 (&serio->drv_mutex){+.+.}-{4:4}, at: serio_driver_remove+0x2e/0xd0 drivers/input/serio/serio.c:755
 #3: ffffffff8ef78e08 (psmouse_mutex){+.+.}-{4:4}, at: psmouse_disconnect+0x1dc/0x8c0 drivers/input/mouse/psmouse-base.c:1488
 #4: ffffffff8ef6ee28 (input_mutex){+.+.}-{4:4}, at: class_mutex_constructor include/linux/mutex.h:228 [inline]
 #4: ffffffff8ef6ee28 (input_mutex){+.+.}-{4:4}, at: __input_unregister_device+0x328/0x640 drivers/input/input.c:2187
4 locks held by syz.0.2421/18627:
 #0: ffff888032370dc8 (&hdev->req_lock){+.+.}-{4:4}, at: hci_dev_do_close net/bluetooth/hci_core.c:499 [inline]
 #0: ffff888032370dc8 (&hdev->req_lock){+.+.}-{4:4}, at: hci_unregister_dev+0x212/0x510 net/bluetooth/hci_core.c:2715
 #1: ffff8880323700b8 (&hdev->lock){+.+.}-{4:4}, at: hci_dev_close_sync+0x66a/0x1330 net/bluetooth/hci_sync.c:5291
 #2: ffffffff8f649c28 (hci_cb_list_lock){+.+.}-{4:4}, at: hci_disconn_cfm include/net/bluetooth/hci_core.h:2118 [inline]
 #2: ffffffff8f649c28 (hci_cb_list_lock){+.+.}-{4:4}, at: hci_conn_hash_flush+0xa1/0x230 net/bluetooth/hci_conn.c:2602
 #3: 
ffff888027ef6338 (&conn->lock
#2
){+.+.}-{4:4}
, at: l2cap_conn_del+0x70/0x680 net/bluetooth/l2cap_core.c:1762
2 locks held by kworker/u8:3/18713:
 #0: 
ffff8881466b9148
 (
(wq_completion)iou_exit
){+.+.}-{0:0}
, at: process_one_work kernel/workqueue.c:3238 [inline]
, at: process_scheduled_works+0x9b4/0x17b0 kernel/workqueue.c:3346
 #1: ffffc900001f7ba0 ((work_completion)(&ctx->exit_work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3239 [inline]
 #1: ffffc900001f7ba0 ((work_completion)(&ctx->exit_work)){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0 kernel/workqueue.c:3346
5 locks held by syz-executor/18717:
2 locks held by dhcpcd/18719:
 #0: 
ffff8880298ee258 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1679 [inline]
ffff8880298ee258 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: packet_do_bind+0x32/0xcd0 net/packet/af_packet.c:3197
 #1: ffffffff8e142d78 (rcu_state.exp_mutex){+.+.}-{4:4}, at: exp_funnel_lock kernel/rcu/tree_exp.h:343 [inline]
 #1: ffffffff8e142d78 (rcu_state.exp_mutex){+.+.}-{4:4}, at: synchronize_rcu_expedited+0x3b9/0x730 kernel/rcu/tree_exp.h:957
1 lock held by dhcpcd/18721:
 #0: ffff888068adc258 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1679 [inline]
 #0: ffff888068adc258 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: packet_do_bind+0x32/0xcd0 net/packet/af_packet.c:3197
1 lock held by dhcpcd/18723:
 #0: 
ffff88806a10e258 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1679 [inline]
ffff88806a10e258 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: packet_do_bind+0x32/0xcd0 net/packet/af_packet.c:3197
1 lock held by dhcpcd/18724:
 #0: 
ffff888094a9e258 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1679 [inline]
ffff888094a9e258 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: packet_do_bind+0x32/0xcd0 net/packet/af_packet.c:3197

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

NMI backtrace for cpu 1
CPU: 1 UID: 0 PID: 31 Comm: khungtaskd Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/2025
Call Trace:
 <TASK>
 dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120
 nmi_cpu_backtrace+0x39e/0x3d0 lib/nmi_backtrace.c:113
 nmi_trigger_cpumask_backtrace+0x17a/0x300 lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:160 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:332 [inline]
 watchdog+0xf60/0xfa0 kernel/hung_task.c:495
 kthread+0x711/0x8a0 kernel/kthread.c:463
 ret_from_fork+0x4bc/0x870 arch/x86/kernel/process.c:158
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
 </TASK>
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 UID: 0 PID: 18717 Comm: syz-executor Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/2025
RIP: 0010:__sanitizer_cov_trace_pc+0x0/0x70 kernel/kcov.c:210
Code: 89 fb e8 23 00 00 00 48 8b 3d 24 72 e0 0b 48 89 de 5b e9 63 81 5a 00 cc cc cc 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 <f3> 0f 1e fa 48 8b 04 24 65 48 8b 0c 25 08 50 91 92 65 8b 15 28 0c
RSP: 0018:ffffc9000c44ef08 EFLAGS: 00000246
RAX: 0000000000000002 RBX: 0000000000000025 RCX: 0000000000000001
RDX: ffffffff8b488744 RSI: ffffffff8f8550d0 RDI: 0000000000000025
RBP: ffffffff8b6b91a5 R08: ffff888056828000 R09: 0000000000000002
R10: 0000000000000025 R11: 0000000000000000 R12: ffffffff8b6b91a6
R13: ffffc9000c44efb8 R14: 0000000000000001 R15: ffffffff8b6b91a5
FS:  0000555581f3e500(0000) GS:ffff888125d0b000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fc3b1f42fc1 CR3: 0000000044e68000 CR4: 00000000003526f0
Call Trace:
 <TASK>
 format_decode+0xb0/0xe30 lib/vsprintf.c:2671
 vsnprintf+0x102/0xf00 lib/vsprintf.c:2869
 sprintf+0xd9/0x120 lib/vsprintf.c:3089
 print_time kernel/printk/printk.c:1354 [inline]
 info_print_prefix+0x155/0x310 kernel/printk/printk.c:1380
 record_print_text+0x154/0x420 kernel/printk/printk.c:1429
 printk_get_next_message+0x26d/0x7b0 kernel/printk/printk.c:2997
 console_emit_next_record kernel/printk/printk.c:3065 [inline]
 console_flush_all+0x4ca/0xb10 kernel/printk/printk.c:3199
 __console_flush_and_unlock kernel/printk/printk.c:3258 [inline]
 console_unlock+0xbb/0x190 kernel/printk/printk.c:3298
 vprintk_emit+0x4c5/0x590 kernel/printk/printk.c:2423
 _printk+0xcf/0x120 kernel/printk/printk.c:2448
 show_free_areas mm/show_mem.c:383 [inline]
 __show_mem+0x1bab/0x21e0 mm/show_mem.c:408
 warn_alloc_show_mem mm/page_alloc.c:3943 [inline]
 warn_alloc+0x2dd/0x310 mm/page_alloc.c:3968
 __vmalloc_area_node mm/vmalloc.c:3706 [inline]
 __vmalloc_node_range_noprof+0x690/0x12d0 mm/vmalloc.c:3897
 vmalloc_user_noprof+0xad/0xf0 mm/vmalloc.c:4050
 kcov_ioctl+0x55/0x640 kernel/kcov.c:716
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:597 [inline]
 __se_sys_ioctl+0xfc/0x170 fs/ioctl.c:583
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xfa/0xfa0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f6dfa98eacb
Code: 00 48 89 44 24 18 31 c0 48 8d 44 24 60 c7 04 24 10 00 00 00 48 89 44 24 08 48 8d 44 24 20 48 89 44 24 10 b8 10 00 00 00 0f 05 <89> c2 3d 00 f0 ff ff 77 1c 48 8b 44 24 18 64 48 2b 04 25 28 00 00
RSP: 002b:00007ffdab00af40 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000080000 RCX: 00007f6dfa98eacb
RDX: 0000000000080000 RSI: ffffffff80086301 RDI: 00000000000000d9
RBP: 00007f6dfabe6128 R08: 00000000000000d8 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000003 R14: 0000000000000009 R15: 0000000000000000
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/10/17 01:28 upstream 98ac9cc4b445 19568248 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce INFO: task hung in serio_unregister_port
* Struck through repros no longer work on HEAD.