INFO: task syz.0.295:6880 blocked for more than 143 seconds.
      Not tainted 6.16.0-rc3-syzkaller-00159-g223e2288f4b8 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.0.295       state:D stack:27368 pid:6880  tgid:6878  ppid:5814   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:0x7fd75ed8e929
RSP: 002b:00007fd75fbca038 EFLAGS: 00000246
 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007fd75efb5fa0 RCX: 00007fd75ed8e929
RDX: 0000200000000000 RSI: 00000000400448c9 RDI: 0000000000000005
RBP: 00007fd75ee10b39 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007fd75efb5fa0 R15: 00007ffe6ea952d8
 </TASK>
INFO: task khidpd_16c05505:6881 blocked for more than 143 seconds.
      Not tainted 6.16.0-rc3-syzkaller-00159-g223e2288f4b8 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:khidpd_16c05505 state:D stack:29416 pid:6881  tgid:6881  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.1.297:6884 blocked for more than 143 seconds.
      Not tainted 6.16.0-rc3-syzkaller-00159-g223e2288f4b8 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.1.297       state:D
 stack:28888 pid:6884  tgid:6882  ppid:5809   task_flags:0x400040 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:0x7fc17498e929
RSP: 002b:00007fc175732038 EFLAGS: 00000246 ORIG_RAX: 000000000000002a
RAX: ffffffffffffffda RBX: 00007fc174bb6080 RCX: 00007fc17498e929
RDX: 000000000000000e RSI: 0000200000000040 RDI: 0000000000000007
RBP: 00007fc174a10b39 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007fc174bb6080 R15: 00007ffc074b6a28
 </TASK>
INFO: task syz.1.297:6885 blocked for more than 144 seconds.
      Not tainted 6.16.0-rc3-syzkaller-00159-g223e2288f4b8 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.1.297       state:D
 stack:28904 pid:6885  tgid:6882  ppid:5809   task_flags:0x400040 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:0x7fc17498e929
RSP: 002b:00007fc175711038 EFLAGS: 00000246 ORIG_RAX: 000000000000002a
RAX: ffffffffffffffda RBX: 00007fc174bb6160 RCX: 00007fc17498e929
RDX: 000000000000000e RSI: 0000200000000040 RDI: 0000000000000007
RBP: 00007fc174a10b39 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000001 R14: 00007fc174bb6160 R15: 00007ffc074b6a28
 </TASK>
INFO: task syz.2.299:6896 blocked for more than 144 seconds.
      Not tainted 6.16.0-rc3-syzkaller-00159-g223e2288f4b8 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.2.299       state:D
 stack:28032 pid:6896  tgid:6894  ppid:5818   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:0x7efcee18e929
RSP: 002b:00007efcebff6038 EFLAGS: 00000246
 ORIG_RAX: 000000000000002a
RAX: ffffffffffffffda RBX: 00007efcee3b6080 RCX: 00007efcee18e929
RDX: 000000000000000a RSI: 0000200000000240 RDI: 0000000000000008
RBP: 00007efcee210b39 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007efcee3b6080 R15: 00007fff23007d38
 </TASK>

Showing all locks held in the system:
8 locks held by kworker/0:0/9:
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/5636:
 #0: ffff88810dd790a0 (&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
2 locks held by syz.0.295/6880:
 #0: 
ffff88810a79c0b8 (&hdev->lock){+.+.}-{4:4}, at: l2cap_unregister_user+0x6a/0x1b0
 #1: ffffffff8f6a1170 (hidp_session_sem){++++}-{4:4}, at: hidp_session_remove+0x2c/0x260
1 lock held by khidpd_16c05505/6881:
 #0: ffff88810a79c0b8 (&hdev->lock){+.+.}-{4:4}, at: l2cap_unregister_user+0x6a/0x1b0
1 lock held by syz.1.297/6884:
 #0: ffff88810a79c0b8 (&hdev->lock){+.+.}-{4:4}, at: l2cap_chan_connect+0x102/0xe30
1 lock held by syz.1.297/6885:
 #0: ffff88810a79c0b8 (&hdev->lock){+.+.}-{4:4}, at: l2cap_chan_connect+0x102/0xe30
1 lock held by syz.2.299/6896:
 #0: 
ffff88810a79c0b8
 (
&hdev->lock
){+.+.}-{4:4}
, at: l2cap_chan_connect+0x102/0xe30
4 locks held by kworker/u11:3/6914:
 #0: 
ffff88810a992148 ((wq_completion)hci2){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0
 #1: ffffc9000725fbc0 ((work_completion)(&hdev->cmd_sync_work)){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0
 #2: 
ffff88810a79cdc0 (&hdev->req_lock){+.+.}-{4:4}, at: hci_cmd_sync_work+0x1d4/0x3a0
 #3: ffff88810a79c0b8 (&hdev->lock){+.+.}-{4:4}, at: hci_abort_conn_sync+0x1eb/0xdf0
1 lock held by syz.4.305/6992:
 #0: ffffffff8f6a1170 (hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100
1 lock held by syz.4.305/6995:
 #0: ffffffff8f6a1170 (hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100
1 lock held by syz.3.307/7000:
 #0: ffffffff8f6a1170 (hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100
1 lock held by syz.5.302/6999:
 #0: ffffffff8f6a1170 (hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100
1 lock held by syz.5.302/7001:
 #0: ffffffff8f6a1170
 (
hidp_session_sem
){++++}-{4:4}, at: hidp_session_find+0x1a/0x100
1 lock held by syz.6.311/7097:
 #0: ffffffff8f6a1170 (hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100
1 lock held by syz.6.311/7101:
 #0: ffffffff8f6a1170 (hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100
1 lock held by syz.7.313/7103:
 #0: ffffffff8f6a1170 (hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100
1 lock held by syz.8.324/7141:
 #0: ffffffff8f6a1170 (hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100
1 lock held by syz.8.324/7142:
 #0: 
ffffffff8f6a1170 (hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100
1 lock held by syz.9.325/7197:
 #0: ffffffff8f6a1170 (hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100
1 lock held by syz.9.325/7198:
 #0: ffffffff8f6a1170 (hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100
1 lock held by syz.0.328/7214:
 #0: ffffffff8f6a1170 (hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100
1 lock held by syz.0.328/7217:
 #0: ffffffff8f6a1170 (hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100
1 lock held by syz.1.336/7236:
 #0: ffffffff8f6a1170 (hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100
1 lock held by syz.1.336/7237:
 #0: ffffffff8f6a1170 (hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100
1 lock held by syz.2.346/7340:
 #0: ffffffff8f6a1170 (hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100
1 lock held by syz.4.351/7357:
 #0: ffffffff8f6a1170 (hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100
1 lock held by syz.4.351/7358:
 #0: ffffffff8f6a1170 (hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100
1 lock held by syz.3.360/7385:
 #0: 
ffffffff8f6a1170
 (
hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100
1 lock held by syz.5.361/7446:
 #0: ffffffff8f6a1170 (hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100
1 lock held by syz.6.362/7449:
 #0: ffffffff8f6a1170 (hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100
1 lock held by syz.7.363/7473:
 #0: ffffffff8f6a1170 (hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100
1 lock held by syz.7.363/7474:
 #0: ffffffff8f6a1170 (hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100
1 lock held by syz.8.371/7581:
 #0: ffffffff8f6a1170 (hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100
1 lock held by syz.8.371/7587:
 #0: ffffffff8f6a1170 (hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100
1 lock held by syz.9.374/7594:
 #0: ffffffff8f6a1170 (hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100
1 lock held by syz.0.378/7619:
 #0: 
ffffffff8f6a1170
 (
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 #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: 9 Comm: kworker/0:0 Not tainted 6.16.0-rc3-syzkaller-00159-g223e2288f4b8 #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:io_serial_in+0x77/0xc0
Code: e8 de 08 79 fc 44 89 f9 d3 e3 49 83 c6 40 4c 89 f0 48 c1 e8 03 42 80 3c 20 00 74 08 4c 89 f7 e8 7f 8c dc fc 41 03 1e 89 da ec <0f> b6 c0 5b 41 5c 41 5e 41 5f e9 da 4c 22 06 cc 44 89 f9 80 e1 07
RSP: 0018:ffffc900000c6c58 EFLAGS: 00000006
RAX: 1ffffffff33b9205 RBX: 00000000000003f9 RCX: 0000000000000000
RDX: 00000000000003f9 RSI: 0000000000000000 RDI: 0000000000000020
RBP: ffffc900000c6e30 R08: 0000000000000003 R09: 0000000000000004
R10: dffffc0000000000 R11: ffffffff85474540 R12: dffffc0000000000
R13: dffffc0000000000 R14: ffffffff99dc9760 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff8880b8650000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000200000001880 CR3: 000000000df38000 CR4: 00000000000006f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 serial8250_console_write+0x584/0x1ba0
 console_flush_all+0x728/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>
