INFO: task syz.1.464:7512 blocked for more than 143 seconds.
      Not tainted 6.16.0-rc5-syzkaller-00159-g47c84997c686-dirty #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.1.464       state:D stack:27752 pid:7512  tgid:7511  ppid:5841   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:0x7f7d0a38e929
RSP: 002b:00007f7d0b27e038 EFLAGS: 00000246
 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f7d0a5b5fa0 RCX: 00007f7d0a38e929
RDX: 0000200000000000 RSI: 00000000400448c9 RDI: 0000000000000006
RBP: 00007f7d0a410ca1 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f7d0a5b5fa0 R15: 00007fffb4fe1698
 </TASK>
INFO: task khidpd_16c05505:7513 blocked for more than 143 seconds.
      Not tainted 6.16.0-rc5-syzkaller-00159-g47c84997c686-dirty #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:khidpd_16c05505 state:D stack:29440 pid:7513  tgid:7513  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>

Showing all locks held in the system:
1 lock held by khungtaskd/34:
 #0: ffffffff8e13f160 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x2e/0x180
4 locks held by kworker/0:2/793:
2 locks held by getty/5656:
 #0: 
ffff888022dbb0a0
 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70
 #1: ffffc9000276f2f0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x43e/0x1400
2 locks held by syz.1.464/7512:
 #0: ffff888111b0c0b8 (&hdev->lock){+.+.}-{4:4}, at: l2cap_unregister_user+0x6a/0x1b0
 #1: ffffffff8f6acd30 (hidp_session_sem){++++}-{4:4}, at: hidp_session_remove+0x2c/0x260
1 lock held by khidpd_16c05505/7513:
 #0: ffff888111b0c0b8 (&hdev->lock){+.+.}-{4:4}, at: l2cap_unregister_user+0x6a/0x1b0
1 lock held by syz.3.673/8266:
 #0: ffffffff8f6acd30 (hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100
1 lock held by syz.3.673/8272:
 #0: ffffffff8f6acd30 (hidp_session_sem){++++}-{4:4}, at: hidp_get_connlist+0x97/0x2b0
1 lock held by syz.4.1223/10287:
 #0: ffffffff8f6acd30 (hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100
1 lock held by syz.5.1442/11068:
 #0: 
ffffffff8f6acd30 (hidp_session_sem){++++}-{4:4}, at: hidp_get_connlist+0x97/0x2b0
1 lock held by syz.5.1442/11069:
 #0: ffffffff8f6acd30 (hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100
2 locks held by kworker/u8:5/11312:
1 lock held by syz.0.1532/11356:
 #0: ffffffff8f6acd30 (hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100
1 lock held by syz.2.1568/11481:
 #0: ffffffff8f6acd30 (hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100
1 lock held by syz.6.1573/11536:
 #0: ffffffff8f6acd30 (hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100
1 lock held by syz.6.1573/11537:
 #0: ffffffff8f6acd30 (hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100
1 lock held by dhcpcd-run-hook/12793:

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

NMI backtrace for cpu 1
CPU: 1 UID: 0 PID: 34 Comm: khungtaskd Not tainted 6.16.0-rc5-syzkaller-00159-g47c84997c686-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: 793 Comm: kworker/0:2 Not tainted 6.16.0-rc5-syzkaller-00159-g47c84997c686-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:memmove+0xf6/0x1b0
Code: 00 00 66 90 48 83 fa 20 72 50 48 81 fa a8 02 00 00 72 05 40 38 fe 74 bc 48 01 d6 48 01 d7 48 83 ea 20 48 83 ea 20 4c 8b 5e f8 <4c> 8b 56 f0 4c 8b 4e e8 4c 8b 46 e0 48 8d 76 e0 4c 89 5f f8 4c 89
RSP: 0018:ffffc90004dd6b18 EFLAGS: 00000287
RAX: ffffffff99aee897 RBX: 0000000000000017 RCX: ffffffff81a1311f
RDX: fffffffffffffff3 RSI: ffffffff99aee8b3 RDI: ffffffff99aee8ca
RBP: ffffc90004dd6c50 R08: 722d302e36312e36 R09: 616b7a79732d3563
R10: 3130302d72656c6c R11: 206465746e696174 R12: 0000000000000073
R13: ffffffff99aee880 R14: 0000000000000000 R15: 0000000000000073
FS:  0000000000000000(0000) GS:ffff8880b8626000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fd59df9d690 CR3: 000000001eca6000 CR4: 00000000000006f0
Call Trace:
 <TASK>
 record_print_text+0x24f/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>
