INFO: task khidpd_15e20040:5855 blocked for more than 143 seconds. Not tainted 6.16.0-rc7-syzkaller-g89be9a83ccf1 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:khidpd_15e20040 state:D stack:29000 pid:5855 tgid:5855 ppid:2 task_flags:0x208040 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:5397 [inline] __schedule+0x16fd/0x4cf0 kernel/sched/core.c:6786 __schedule_loop kernel/sched/core.c:6864 [inline] schedule+0x165/0x360 kernel/sched/core.c:6879 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+0x18b/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+0x3fc/0x770 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 INFO: task syz.0.221:6279 blocked for more than 143 seconds. Not tainted 6.16.0-rc7-syzkaller-g89be9a83ccf1 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.0.221 state:D stack:28152 pid:6279 tgid:6278 ppid:5784 task_flags:0x400140 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5397 [inline] __schedule+0x16fd/0x4cf0 kernel/sched/core.c:6786 __schedule_loop kernel/sched/core.c:6864 [inline] schedule+0x165/0x360 kernel/sched/core.c:6879 schedule_preempt_disabled+0x13/0x30 kernel/sched/core.c:6936 __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:6980 l2cap_sock_connect+0x5c5/0x7a0 net/bluetooth/l2cap_sock.c:256 __sys_connect_file net/socket.c:2038 [inline] __sys_connect+0x316/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:0x7f3cdf38e929 RSP: 002b:00007f3ce0204038 EFLAGS: 00000246 ORIG_RAX: 000000000000002a RAX: ffffffffffffffda RBX: 00007f3cdf5b5fa0 RCX: 00007f3cdf38e929 RDX: 000000000000000e RSI: 0000200000000080 RDI: 0000000000000004 RBP: 00007f3cdf410b39 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f3cdf5b5fa0 R15: 00007ffd23b44698 Showing all locks held in the system: 1 lock held by khungtaskd/26: #0: ffffffff8e13f0e0 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:331 [inline] #0: ffffffff8e13f0e0 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:841 [inline] #0: ffffffff8e13f0e0 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x2e/0x180 kernel/locking/lockdep.c:6770 2 locks held by kswapd1/79: 2 locks held by getty/5125: #0: ffff8880002f10a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243 #1: ffffc900028462f0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x43e/0x1400 drivers/tty/n_tty.c:2222 3 locks held by kworker/0:4/5414: 2 locks held by khidpd_15e20040/5855: #0: ffff88804437c0b8 (&hdev->lock){+.+.}-{4:4}, at: l2cap_unregister_user+0x6a/0x1b0 net/bluetooth/l2cap_core.c:1728 #1: ffffffff8f6af110 (hidp_session_sem){++++}-{4:4}, at: hidp_session_remove+0x2c/0x260 net/bluetooth/hidp/core.c:1165 1 lock held by syz.0.221/6279: #0: ffff88804437c0b8 (&hdev->lock){+.+.}-{4:4}, at: l2cap_chan_connect+0x102/0xe30 net/bluetooth/l2cap_core.c:6980 1 lock held by syz.1.222/6313: #0: ffffffff8f6af110 (hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100 net/bluetooth/hidp/core.c:1026 1 lock held by syz.2.223/6352: #0: ffffffff8f6af110 (hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100 net/bluetooth/hidp/core.c:1026 1 lock held by syz.3.224/6384: #0: ffffffff8f6af110 (hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100 net/bluetooth/hidp/core.c:1026 1 lock held by syz.4.225/6421: #0: ffffffff8f6af110 (hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100 net/bluetooth/hidp/core.c:1026 1 lock held by syz.5.226/6463: #0: ffffffff8f6af110 (hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100 net/bluetooth/hidp/core.c:1026 1 lock held by syz.6.227/6503: #0: ffffffff8f6af110 (hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100 net/bluetooth/hidp/core.c:1026 1 lock held by syz.7.228/6541: #0: ffffffff8f6af110 (hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100 net/bluetooth/hidp/core.c:1026 1 lock held by syz.8.229/6578: #0: ffffffff8f6af110 (hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100 net/bluetooth/hidp/core.c:1026 2 locks held by dhcpcd/6580: #0: ffff8880421db208 (&sb->s_type->i_mutex_key#11){+.+.}-{4:4}, at: inode_lock include/linux/fs.h:869 [inline] #0: ffff8880421db208 (&sb->s_type->i_mutex_key#11){+.+.}-{4:4}, at: __sock_release net/socket.c:646 [inline] #0: ffff8880421db208 (&sb->s_type->i_mutex_key#11){+.+.}-{4:4}, at: sock_close+0x9b/0x240 net/socket.c:1391 #1: ffffffff8e144bf8 (rcu_state.exp_mutex){+.+.}-{4:4}, at: exp_funnel_lock kernel/rcu/tree_exp.h:304 [inline] #1: ffffffff8e144bf8 (rcu_state.exp_mutex){+.+.}-{4:4}, at: synchronize_rcu_expedited+0x2f6/0x730 kernel/rcu/tree_exp.h:998 2 locks held by dhcpcd/6581: #0: ffff88804aec4258 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1667 [inline] #0: ffff88804aec4258 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: packet_do_bind+0x32/0xcd0 net/packet/af_packet.c:3251 #1: ffffffff8e144bf8 (rcu_state.exp_mutex){+.+.}-{4:4}, at: exp_funnel_lock kernel/rcu/tree_exp.h:336 [inline] #1: ffffffff8e144bf8 (rcu_state.exp_mutex){+.+.}-{4:4}, at: synchronize_rcu_expedited+0x3b9/0x730 kernel/rcu/tree_exp.h:998 ============================================= NMI backtrace for cpu 0 CPU: 0 UID: 0 PID: 26 Comm: khungtaskd Not tainted 6.16.0-rc7-syzkaller-g89be9a83ccf1 #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: 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+0x3fc/0x770 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245