INFO: task syz.5.952:9572 blocked for more than 143 seconds.
      Not tainted 6.16.0-rc3-syzkaller-00159-g223e2288f4b8-dirty #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.5.952       state:D
 stack:27320 pid:9572  tgid:9569  ppid:6554   task_flags:0x400140 flags:0x00004004
Call Trace:
 <TASK>
 __schedule+0x16f5/0x4d00
 schedule+0x165/0x360
 schedule_timeout+0x9a/0x270
 wait_for_completion+0x2bf/0x5d0
 __flush_work+0x9b9/0xbc0
 __cancel_work_sync+0xbe/0x110
 hidp_session_remove+0x62/0x260
 l2cap_unregister_user+0x18e/0x1b0
 hidp_connection_del+0xb0/0x170
 hidp_sock_ioctl+0x317/0x560
 sock_do_ioctl+0xdc/0x300
 sock_ioctl+0x576/0x790
 __se_sys_ioctl+0xfc/0x170
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fb73018e929
RSP: 002b:00007fb72dfd5038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007fb7303b6080 RCX: 00007fb73018e929
RDX: 0000200000000000 RSI: 00000000400448c9 RDI: 0000000000000004
RBP: 00007fb730210b39 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007fb7303b6080 R15: 00007ffc8dc10938
 </TASK>
INFO: task khidpd_16c05505:9573 blocked for more than 143 seconds.
      Not tainted 6.16.0-rc3-syzkaller-00159-g223e2288f4b8-dirty #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:khidpd_16c05505 state:D stack:28984 pid:9573  tgid:9573  ppid:2      task_flags:0x208040 flags:0x00004000
Call Trace:
 <TASK>
 __schedule+0x16f5/0x4d00
 schedule+0x165/0x360
 schedule_preempt_disabled+0x13/0x30
 __mutex_lock+0x724/0xe80
 l2cap_unregister_user+0x6a/0x1b0
 hidp_session_thread+0x3c9/0x410
 kthread+0x711/0x8a0
 ret_from_fork+0x3fc/0x770
 ret_from_fork_asm+0x1a/0x30
 </TASK>
INFO: task syz.4.954:9575 blocked for more than 144 seconds.
      Not tainted 6.16.0-rc3-syzkaller-00159-g223e2288f4b8-dirty #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.4.954       state:D stack:28328 pid:9575  tgid:9574  ppid:6555   task_flags:0x400140 flags:0x00004004
Call Trace:
 <TASK>
 __schedule+0x16f5/0x4d00
 schedule+0x165/0x360
 schedule_preempt_disabled+0x13/0x30
 __mutex_lock+0x724/0xe80
 l2cap_chan_connect+0x102/0xe30
 l2cap_sock_connect+0x5c5/0x7a0
 __sys_connect+0x316/0x440
 __x64_sys_connect+0x7a/0x90
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f647798e929
RSP: 002b:00007f6478790038 EFLAGS: 00000246
 ORIG_RAX: 000000000000002a
RAX: ffffffffffffffda RBX: 00007f6477bb5fa0 RCX: 00007f647798e929
RDX: 000000000000000e RSI: 0000200000000080 RDI: 0000000000000005
RBP: 00007f6477a10b39 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f6477bb5fa0 R15: 00007ffcc5632e88
 </TASK>
INFO: task syz.4.954:9576 blocked for more than 144 seconds.
      Not tainted 6.16.0-rc3-syzkaller-00159-g223e2288f4b8-dirty #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.4.954       state:D stack:24808 pid:9576  tgid:9574  ppid:6555   task_flags:0x400140 flags:0x00004004
Call Trace:
 <TASK>
 __schedule+0x16f5/0x4d00
 schedule+0x165/0x360
 schedule_preempt_disabled+0x13/0x30
 rwsem_down_read_slowpath+0x552/0x880
 down_read+0x98/0x2e0
 hidp_session_find+0x1a/0x100
 hidp_connection_del+0x52/0x170
 hidp_sock_ioctl+0x317/0x560
 sock_do_ioctl+0xdc/0x300
 sock_ioctl+0x576/0x790
 __se_sys_ioctl+0xfc/0x170
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f647798e929
RSP: 002b:00007f647876f038 EFLAGS: 00000246
 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f6477bb6080 RCX: 00007f647798e929
RDX: 0000200000000000 RSI: 00000000400448c9 RDI: 0000000000000004
RBP: 00007f6477a10b39 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f6477bb6080 R15: 00007ffcc5632e88
 </TASK>
INFO: task syz.3.960:9601 blocked for more than 144 seconds.
      Not tainted 6.16.0-rc3-syzkaller-00159-g223e2288f4b8-dirty #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.3.960       state:D
 stack:27240 pid:9601  tgid:9600  ppid:6607   task_flags:0x400140 flags:0x00004004
Call Trace:
 <TASK>
 __schedule+0x16f5/0x4d00
 schedule+0x165/0x360
 schedule_preempt_disabled+0x13/0x30
 __mutex_lock+0x724/0xe80
 l2cap_chan_connect+0x102/0xe30
 l2cap_sock_connect+0x5c5/0x7a0
 __sys_connect+0x316/0x440
 __x64_sys_connect+0x7a/0x90
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f65eb78e929
RSP: 002b:00007f65ec6c7038 EFLAGS: 00000246
 ORIG_RAX: 000000000000002a
RAX: ffffffffffffffda RBX: 00007f65eb9b5fa0 RCX: 00007f65eb78e929
RDX: 000000000000000e RSI: 0000200000000080 RDI: 0000000000000005
RBP: 00007f65eb810b39 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f65eb9b5fa0 R15: 00007fff739ea898
 </TASK>

Showing all locks held in the system:
1 lock held by khungtaskd/34:
 #0: 
ffffffff8e13ee60
 (
rcu_read_lock
){....}-{1:3}
, at: debug_show_all_locks+0x2e/0x180
2 locks held by getty/5641:
 #0: 
ffff888108dc90a0
 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70
 #1: 
ffffc900025c62f0 (
&ldata->atomic_read_lock){+.+.}-{4:4}
, at: n_tty_read+0x43e/0x1400
3 locks held by kworker/u8:3/5838:
5 locks held by kworker/0:9/6545:
2 locks held by syz.5.952/9572:
 #0: 
ffff88810ea380b8
 (
&hdev->lock){+.+.}-{4:4}
, at: l2cap_unregister_user+0x6a/0x1b0
 #1: ffffffff8f6a1250 (hidp_session_sem){++++}-{4:4}, at: hidp_session_remove+0x2c/0x260
1 lock held by khidpd_16c05505/9573:
 #0: 
ffff88810ea380b8 (&hdev->lock){+.+.}-{4:4}, at: l2cap_unregister_user+0x6a/0x1b0
1 lock held by syz.4.954/9575:
 #0: 
ffff88810ea380b8 (&hdev->lock){+.+.}-{4:4}, at: l2cap_chan_connect+0x102/0xe30
1 lock held by syz.4.954/9576:
 #0: 
ffffffff8f6a1250 (
hidp_session_sem
){++++}-{4:4}
, at: hidp_session_find+0x1a/0x100
1 lock held by syz.3.960/9601:
 #0: ffff88810ea380b8 (&hdev->lock){+.+.}-{4:4}, at: l2cap_chan_connect+0x102/0xe30
1 lock held by syz.7.962/9707:
 #0: ffffffff8f6a1250
 (
hidp_session_sem
){++++}-{4:4}
, at: hidp_session_find+0x1a/0x100
1 lock held by syz.7.962/9710:
 #0: ffffffff8f6a1250 (hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100
1 lock held by syz.6.970/9732:
 #0: 
ffffffff8f6a1250 (hidp_session_sem
){++++}-{4:4}
, at: hidp_session_find+0x1a/0x100
1 lock held by syz.6.970/9736:
 #0: ffffffff8f6a1250 (hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100
1 lock held by syz.8.972/9741:
 #0: ffffffff8f6a1250 (hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100
1 lock held by syz.8.972/9742:
 #0: ffffffff8f6a1250 (hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100
1 lock held by syz.9.978/9825:
 #0: ffffffff8f6a1250 (hidp_session_sem){++++}-{4:4}
, at: hidp_session_find+0x1a/0x100
1 lock held by syz.0.979/9900:
 #0: ffffffff8f6a1250 (hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100
1 lock held by syz.1.982/9946:
 #0: ffffffff8f6a1250 (hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100
1 lock held by syz.1.982/9952:
 #0: ffffffff8f6a1250 (hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100
1 lock held by syz.2.983/10200:
 #0: ffffffff8f6a1250 (hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100
1 lock held by syz.2.983/10201:
 #0: ffffffff8f6a1250 (hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100
1 lock held by syz.3.986/10320:
 #0: ffffffff8f6a1250 (hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100
1 lock held by syz.3.986/10323:
 #0: ffffffff8f6a1250 (hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100
1 lock held by syz.4.988/10352:
 #0: ffffffff8f6a1250 (hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100
1 lock held by syz.4.988/10353:
 #0: ffffffff8f6a1250 (hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100
1 lock held by syz.5.1001/10455:
 #0: ffffffff8f6a1250 (hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100
1 lock held by syz.5.1001/10459:
 #0: ffffffff8f6a1250 (hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100
1 lock held by syz.7.990/10468:
 #0: ffffffff8f6a1250 (hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100
1 lock held by syz.6.1002/10476:
 #0: ffffffff8f6a1250 (hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100
1 lock held by syz.0.1005/10566:
 #0: ffffffff8f6a1250 (hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100
1 lock held by syz.9.1008/10568:
 #0: ffffffff8f6a1250 (hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100
1 lock held by syz.9.1008/10569:
 #0: ffffffff8f6a1250 (hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100
1 lock held by syz.8.1009/10573:
 #0: ffffffff8f6a1250 (hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100
1 lock held by syz.8.1009/10574:
 #0: ffffffff8f6a1250 (hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100
1 lock held by syz.3.1012/10651:
 #0: ffffffff8f6a1250 (hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100
1 lock held by syz.3.1012/10652:
 #0: ffffffff8f6a1250 (hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100
1 lock held by syz.1.1014/10654:
 #0: ffffffff8f6a1250 (hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100
1 lock held by syz.1.1014/10657:
 #0: 
ffffffff8f6a1250
 (
hidp_session_sem
){++++}-{4:4}
, at: hidp_session_find+0x1a/0x100
1 lock held by syz.2.1015/10656:
 #0: ffffffff8f6a1250 (hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100
1 lock held by syz.5.1020/10726:
 #0: ffffffff8f6a1250 (hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100
1 lock held by syz.5.1020/10736:
 #0: ffffffff8f6a1250 (hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100
1 lock held by syz.4.1021/10758:
 #0: ffffffff8f6a1250 (hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100
1 lock held by syz.7.1028/10780:
 #0: ffffffff8f6a1250 (hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100
1 lock held by syz.7.1028/10781:
 #0: 
ffffffff8f6a1250
 (
hidp_session_sem
){++++}-{4:4}
, at: hidp_session_find+0x1a/0x100
1 lock held by syz.7.1028/10782:
 #0: ffffffff8f6a1250
 (hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100

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

NMI backtrace for cpu 1
CPU: 1 UID: 0 PID: 34 Comm: khungtaskd Not tainted 6.16.0-rc3-syzkaller-00159-g223e2288f4b8-dirty #0 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
Call Trace:
 <TASK>
 dump_stack_lvl+0x189/0x250
 nmi_cpu_backtrace+0x39e/0x3d0
 nmi_trigger_cpumask_backtrace+0x17a/0x300
 watchdog+0xfee/0x1030
 kthread+0x711/0x8a0
 ret_from_fork+0x3fc/0x770
 ret_from_fork_asm+0x1a/0x30
 </TASK>
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 UID: 0 PID: 6545 Comm: kworker/0:9 Not tainted 6.16.0-rc3-syzkaller-00159-g223e2288f4b8-dirty #0 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
Workqueue: events hidp_session_dev_work
RIP: 0010:__sanitizer_cov_trace_switch+0x7/0x130
Code: 0a 20 e9 cc 3e a9 09 cc 66 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 48 8b 06 <48> 8b 4e 08 48 83 c1 f8 48 c1 c1 3d 48 83 f9 02 7f 1e 48 85 c9 74
RSP: 0018:ffffc900025ae868 EFLAGS: 00000293
RAX: 0000000000000002 RBX: 0000000000000005 RCX: ffff88802265b980
RDX: 0000000000000000 RSI: ffffffff8f881cb0 RDI: 0000000000000005
RBP: ffffffff8b8b8284 R08: ffffc900025aebaf R09: 0000000000000007
R10: ffffc900025aebaf R11: fffff520004b5d76 R12: ffffc900025ae9c0
R13: ffffc900025ae918 R14: 0000000000000405 R15: ffffffff8b8b8284
FS:  0000000000000000(0000) GS:ffff8880b8650000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f9f2cb97000 CR3: 000000010efb4000 CR4: 00000000000006f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 format_decode+0x2f/0xe30
 vsnprintf+0x102/0xf00
 sprintf+0xd9/0x120
 info_print_prefix+0x1f3/0x310
 record_print_text+0x154/0x430
 printk_get_next_message+0x26d/0x7b0
 console_flush_all+0x4ca/0xc40
 console_unlock+0xc4/0x270
 vprintk_emit+0x5b7/0x7a0
 dev_vprintk_emit+0x337/0x3f0
 dev_printk_emit+0xe0/0x130
 _dev_warn+0x10a/0x160
 hid_parser_main+0x8b8/0xc40
 hid_open_report+0x85b/0xee0
 hid_generic_probe+0x3d/0x90
 hid_device_probe+0x3a0/0x710
 really_probe+0x26d/0x9a0
 __driver_probe_device+0x18c/0x2f0
 driver_probe_device+0x4f/0x430
 __device_attach_driver+0x2ce/0x530
 bus_for_each_drv+0x251/0x2e0
 __device_attach+0x2b8/0x400
 bus_probe_device+0x185/0x260
 device_add+0x7b6/0xb50
 hid_add_device+0x398/0x540
 hidp_session_dev_work+0x45/0x160
 process_scheduled_works+0xae1/0x17b0
 worker_thread+0x8a0/0xda0
 kthread+0x711/0x8a0
 ret_from_fork+0x3fc/0x770
 ret_from_fork_asm+0x1a/0x30
 </TASK>
