syzbot


INFO: task hung in hidp_session_remove

Status: upstream: reported C repro on 2025/07/30 23:05
Subsystems: kernel
[Documentation on labels]
Reported-by: syzbot+234fdcc5f6633833a35c@syzkaller.appspotmail.com
First crash: 294d, last: 24d
Cause bisection: failed (error log, bisect log)
  
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [kernel?] INFO: task hung in hidp_session_remove 0 (1) 2025/07/30 23:05
Last patch testing requests (3)
Created Duration User Patch Repo Result
2025/08/17 16:29 23m retest repro net report log
2025/07/23 07:18 20m retest repro upstream report log
2025/07/23 07:18 17m retest repro upstream report log

Sample crash report:
INFO: task khidpd_15e20040:5506 blocked for more than 143 seconds.
      Not tainted 6.16.0-rc5-syzkaller-00038-g733923397fd9 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:khidpd_15e20040 state:D stack:29000 pid:5506  tgid:5506  ppid:2      task_flags:0x208040 flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5401 [inline]
 __schedule+0x16f5/0x4d00 kernel/sched/core.c:6790
 __schedule_loop kernel/sched/core.c:6868 [inline]
 schedule+0x165/0x360 kernel/sched/core.c:6883
 schedule_timeout+0x9a/0x270 kernel/time/sleep_timeout.c:75
 do_wait_for_common kernel/sched/completion.c:95 [inline]
 __wait_for_common kernel/sched/completion.c:116 [inline]
 wait_for_common kernel/sched/completion.c:127 [inline]
 wait_for_completion+0x2bf/0x5d0 kernel/sched/completion.c:148
 __flush_work+0x9b9/0xbc0 kernel/workqueue.c:4246
 __cancel_work_sync+0xbe/0x110 kernel/workqueue.c:4366
 hidp_session_remove+0x62/0x260 net/bluetooth/hidp/core.c:1169
 l2cap_unregister_user+0x18e/0x1b0 net/bluetooth/l2cap_core.c:1734
 hidp_session_thread+0x3c9/0x410 net/bluetooth/hidp/core.c:1304
 kthread+0x70e/0x8a0 kernel/kthread.c:464
 ret_from_fork+0x3f9/0x770 arch/x86/kernel/process.c:148
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
 </TASK>
INFO: task syz.0.171:5661 blocked for more than 143 seconds.
      Not tainted 6.16.0-rc5-syzkaller-00038-g733923397fd9 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.0.171       state:D stack:27240 pid:5661  tgid:5661  ppid:5462   task_flags:0x400140 flags:0x00004004
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5401 [inline]
 __schedule+0x16f5/0x4d00 kernel/sched/core.c:6790
 __schedule_loop kernel/sched/core.c:6868 [inline]
 schedule+0x165/0x360 kernel/sched/core.c:6883
 schedule_preempt_disabled+0x13/0x30 kernel/sched/core.c:6940
 __mutex_lock_common kernel/locking/mutex.c:679 [inline]
 __mutex_lock+0x724/0xe80 kernel/locking/mutex.c:747
 l2cap_chan_connect+0x102/0xe30 net/bluetooth/l2cap_core.c:6964
 l2cap_sock_connect+0x5c5/0x7a0 net/bluetooth/l2cap_sock.c:256
 __sys_connect_file net/socket.c:2038 [inline]
 __sys_connect+0x313/0x440 net/socket.c:2057
 __do_sys_connect net/socket.c:2063 [inline]
 __se_sys_connect net/socket.c:2060 [inline]
 __x64_sys_connect+0x7a/0x90 net/socket.c:2060
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f3e5c78e929
RSP: 002b:00007ffe356d7bb8 EFLAGS: 00000246 ORIG_RAX: 000000000000002a
RAX: ffffffffffffffda RBX: 00007f3e5c9b5fa0 RCX: 00007f3e5c78e929
RDX: 000000000000000e RSI: 0000200000000080 RDI: 0000000000000004
RBP: 00007f3e5c810b39 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f3e5c9b5fa0 R14: 00007f3e5c9b5fa0 R15: 0000000000000003
 </TASK>

Showing all locks held in the system:
3 locks held by kworker/0:0/9:
2 locks held by kworker/0:1/10:
1 lock held by khungtaskd/26:
 #0: ffffffff8e13f160 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:331 [inline]
 #0: ffffffff8e13f160 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:841 [inline]
 #0: ffffffff8e13f160 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x2e/0x180 kernel/locking/lockdep.c:6770
2 locks held by getty/5125:
 #0: ffff8880317890a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243
 #1: ffffc9000018e2f0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x43e/0x1400 drivers/tty/n_tty.c:2222
2 locks held by khidpd_15e20040/5506:
 #0: ffff8880330c80b8 (&hdev->lock){+.+.}-{4:4}, at: l2cap_unregister_user+0x6a/0x1b0 net/bluetooth/l2cap_core.c:1728
 #1: ffffffff8f6ae9b0 (hidp_session_sem){++++}-{4:4}, at: hidp_session_remove+0x2c/0x260 net/bluetooth/hidp/core.c:1165
1 lock held by syz.0.171/5661:
 #0: ffff8880330c80b8 (&hdev->lock){+.+.}-{4:4}, at: l2cap_chan_connect+0x102/0xe30 net/bluetooth/l2cap_core.c:6964
1 lock held by syz.1.172/5698:
 #0: ffffffff8f6ae9b0 (hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100 net/bluetooth/hidp/core.c:1026
1 lock held by syz.2.173/5730:
 #0: ffffffff8f6ae9b0 (hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100 net/bluetooth/hidp/core.c:1026
1 lock held by syz.3.174/5761:
 #0: ffffffff8f6ae9b0 (hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100 net/bluetooth/hidp/core.c:1026
1 lock held by syz.4.175/5805:
 #0: ffffffff8f6ae9b0 (hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100 net/bluetooth/hidp/core.c:1026
1 lock held by syz.5.176/5841:
 #0: ffffffff8f6ae9b0 (hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100 net/bluetooth/hidp/core.c:1026
1 lock held by syz.6.177/5879:
 #0: ffffffff8f6ae9b0 (hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100 net/bluetooth/hidp/core.c:1026
1 lock held by syz.7.178/5914:
 #0: ffffffff8f6ae9b0 (hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100 net/bluetooth/hidp/core.c:1026
1 lock held by syz.8.179/5957:
 #0: ffffffff8f6ae9b0 (hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100 net/bluetooth/hidp/core.c:1026

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

NMI backtrace for cpu 0
CPU: 0 UID: 0 PID: 26 Comm: khungtaskd Not tainted 6.16.0-rc5-syzkaller-00038-g733923397fd9 #0 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
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:158 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:307 [inline]
 watchdog+0xfee/0x1030 kernel/hung_task.c:470
 kthread+0x70e/0x8a0 kernel/kthread.c:464
 ret_from_fork+0x3f9/0x770 arch/x86/kernel/process.c:148
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
 </TASK>

Crashes (32):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/07/09 06:50 upstream 733923397fd9 f4e5e155 .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root INFO: task hung in hidp_session_remove
2025/06/28 17:24 upstream aaf724ed6926 fc9d8ee5 .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root INFO: task hung in hidp_session_remove
2025/07/27 07:08 net afd8c2c9e2e2 fb8f743d .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: task hung in hidp_session_remove
2025/08/03 14:20 net 1dbf1d590d10 7368264b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: task hung in hidp_session_remove
2025/07/28 05:29 net afd8c2c9e2e2 fb8f743d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: task hung in hidp_session_remove
2025/07/26 03:00 net 0d9cfc9b8cb1 fb8f743d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: task hung in hidp_session_remove
2025/07/02 17:27 net 561aa0e22b70 0cd59a8f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: task hung in hidp_session_remove
2025/07/01 04:32 net 60f7f4afaf6d 6e83b42d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: task hung in hidp_session_remove
2025/06/06 16:37 net 82cbd06f327f f61267d4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: task hung in hidp_session_remove
2025/05/15 08:32 net 09db7a4d287d a4fa04ef .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: task hung in hidp_session_remove
2025/05/10 01:09 net 12f4ee312c95 bb813bcc .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: task hung in hidp_session_remove
2025/05/05 03:41 net ebd297a2affa b0714e37 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: task hung in hidp_session_remove
2025/04/25 12:36 net 087a9eb9e597 e3715315 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: task hung in hidp_session_remove
2025/04/21 05:56 net 750d0ac001e8 2a20f901 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: task hung in hidp_session_remove
2025/04/20 03:22 net 750d0ac001e8 2a20f901 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: task hung in hidp_session_remove
2025/04/08 12:33 net 69ae94725f4f a775275d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: task hung in hidp_session_remove
2025/03/31 06:08 net 2ea396448f26 d3999433 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: task hung in hidp_session_remove
2025/03/28 09:16 net 1a9239bb4253 6c09fb82 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: task hung in hidp_session_remove
2025/03/26 17:24 net c7d82913d5f9 89d30d73 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: task hung in hidp_session_remove
2025/03/02 17:50 net a466fd7e9faf c3901742 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: task hung in hidp_session_remove
2025/02/17 10:43 net 071ed42cff4f 40a34ec9 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: task hung in hidp_session_remove
2024/12/28 00:36 net a024e377efed d3ccff63 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: task hung in hidp_session_remove
2024/12/22 19:05 net 30b981796b94 b4fbdbd4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: task hung in hidp_session_remove
2024/12/12 21:13 net 15bfb14727bc 941924eb .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: task hung in hidp_session_remove
2024/11/16 22:32 net 8ffade77b633 cfe3a04a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: task hung in hidp_session_remove
2024/11/05 22:02 net 9eaff63bfb59 3a465482 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: task hung in hidp_session_remove
2025/07/27 09:47 net-next fa582ca7e187 fb8f743d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce INFO: task hung in hidp_session_remove
2025/07/04 05:50 net-next 5f712c3877f9 76ad128c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce INFO: task hung in hidp_session_remove
2025/06/28 09:45 net-next f22e6fdf7b33 fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce INFO: task hung in hidp_session_remove
2025/05/24 00:29 net-next ea15e046263b f8cc0c83 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce INFO: task hung in hidp_session_remove
2025/04/24 18:08 net-next cd7276ecac9c 9c80ffa0 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce INFO: task hung in hidp_session_remove
2024/11/07 12:04 net-next 720d33143276 df3dc63b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce INFO: task hung in hidp_session_remove
* Struck through repros no longer work on HEAD.