INFO: task syz.2.4327:19903 blocked for more than 143 seconds.
      Not tainted 6.16.0-rc5-syzkaller-00212-g9f735b6f8a77 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.2.4327      state:D stack:27752 pid:19903 tgid:19902 ppid:5834   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:0x7f4ca0d8e9a9
RSP: 002b:00007f4c9ebf6038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f4ca0fb5fa0 RCX: 00007f4ca0d8e9a9
RDX: 0000200000000000 RSI: 00000000400448c9 RDI: 0000000000000007
RBP: 00007f4ca0e10d69 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f4ca0fb5fa0 R15: 00007fffcea44558
 </TASK>
INFO: task khidpd_16c05505:19907 blocked for more than 143 seconds.
      Not tainted 6.16.0-rc5-syzkaller-00212-g9f735b6f8a77 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:khidpd_16c05505 state:D stack:29416 pid:19907 tgid:19907 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.4393:20160 blocked for more than 143 seconds.
      Not tainted 6.16.0-rc5-syzkaller-00212-g9f735b6f8a77 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.1.4393      state:D stack:25928 pid:20160 tgid:20159 ppid:5829   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:0x7f6e3ef8e9a9
RSP: 002b:00007f6e3fee1038 EFLAGS: 00000246 ORIG_RAX: 000000000000002a
RAX: ffffffffffffffda RBX: 00007f6e3f1b5fa0 RCX: 00007f6e3ef8e9a9
RDX: 000000000000000e RSI: 0000200000000a40 RDI: 0000000000000007
RBP: 00007f6e3f010d69 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f6e3f1b5fa0 R15: 00007ffdf4b1c9f8
 </TASK>

Showing all locks held in the system:
3 locks held by kworker/1:0/24:
 #0: 
ffff88801a480d48
 ((wq_completion)events
){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0
 #1: 
ffffc900001c7bc0
 ((work_completion)(&data->fib_event_work)
){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0
 #2: ffff888113abd240 (&data->fib_lock){+.+.}-{4:4}, at: nsim_fib_event_work+0x26b/0x3180
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/u11:0/54:
 #0: ffff888023251948 ((wq_completion)hci2){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0
 #1: ffffc900007cfbc0 ((work_completion)(&hdev->cmd_sync_work)){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0
 #2: ffff88802875cdc0 (&hdev->req_lock){+.+.}-{4:4}, at: hci_cmd_sync_work+0x1d4/0x3a0
 #3: ffff88802875c0b8 (&hdev->lock){+.+.}-{4:4}, at: hci_abort_conn_sync+0x1eb/0xdf0
2 locks held by getty/5660:
 #0: ffff888100e890a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70
 #1: ffffc900029062f0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x43e/0x1400
3 locks held by kworker/u8:2/5840:
3 locks held by kworker/0:3/5880:
2 locks held by syz.2.4327/19903:
 #0: ffff88802875c0b8 (&hdev->lock){+.+.}-{4:4}, at: l2cap_unregister_user+0x6a/0x1b0
 #1: ffffffff8f6acd70 (hidp_session_sem){++++}-{4:4}, at: hidp_session_remove+0x2c/0x260
1 lock held by khidpd_16c05505/19907:
 #0: ffff88802875c0b8 (&hdev->lock){+.+.}-{4:4}, at: l2cap_unregister_user+0x6a/0x1b0
1 lock held by syz.1.4393/20160:
 #0: ffff88802875c0b8 (&hdev->lock){+.+.}-{4:4}, at: l2cap_chan_connect+0x102/0xe30
1 lock held by syz.3.4663/21094:
 #0: ffffffff8f6acd70 (hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100
1 lock held by syz.0.4992/22249:
 #0: ffffffff8f6acd70 (hidp_session_sem){++++}-{4:4}, at: hidp_get_connlist+0x97/0x2b0
1 lock held by syz.5.5126/22757:
 #0: ffffffff8f6acd70 (hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100
1 lock held by syz.6.5194/22964:
 #0: ffffffff8f6acd70 (hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100
1 lock held by syz.6.5194/22969:
 #0: 
ffffffff8f6acd70
 (
hidp_session_sem
){++++}-{4:4}
, at: hidp_get_connlist+0x97/0x2b0
1 lock held by syz.4.5246/23124:
 #0: 
ffffffff8f6acd70
 (
hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100
1 lock held by syz.4.5246/23125:
 #0: 
ffffffff8f6acd70 (
hidp_session_sem
){++++}-{4:4}
, at: hidp_session_find+0x1a/0x100
1 lock held by syz.7.5350/23530:
 #0: ffffffff8f6acd70 (hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100
1 lock held by syz.7.5350/23531:
 #0: 
ffffffff8f6acd70
 (
hidp_session_sem){++++}-{4:4}
, at: hidp_session_find+0x1a/0x100
1 lock held by syz.8.5484/23949:
 #0: 
ffffffff8f6acd70
 (
hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100
3 locks held by syz-executor/24260:
 #0: ffff888062bf4dc0 (&hdev->req_lock){+.+.}-{4:4}, at: hci_unregister_dev+0x212/0x510
 #1: 
ffff888062bf40b8 (
&hdev->lock){+.+.}-{4:4}, at: hci_dev_close_sync+0x66a/0x1330
 #2: ffffffff8f683cc8 (hci_cb_list_lock){+.+.}-{4:4}
, at: hci_conn_hash_flush+0xa1/0x230
5 locks held by kworker/u9:12/24324:
 #0: ffff88804b039f98 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2a/0x140
 #1: ffff88804b023f08 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x39a/0x6d0
 #2: ffff88804b025958
 (&base->lock){-.-.}-{2:2}, at: __mod_timer+0x1ae/0xf30
 #3: ffffffff99d29958 (&obj_hash[i].lock){-.-.}-{2:2}, at: debug_object_activate+0xbb/0x420
 #4: ffffffff8e13f160 (rcu_read_lock){....}-{1:3}, at: unwind_next_frame+0xa5/0x2390
5 locks held by syz.9.5599/24365:
 #0: ffff8880397b4dc0 (&hdev->req_lock){+.+.}-{4:4}, at: hci_unregister_dev+0x212/0x510
 #1: 
ffff8880397b40b8
 (
&hdev->lock){+.+.}-{4:4}, at: hci_dev_close_sync+0x66a/0x1330
 #2: ffffffff8f683cc8 (hci_cb_list_lock){+.+.}-{4:4}, at: hci_conn_hash_flush+0xa1/0x230
 #3: ffff88806295fb38 (&conn->lock#2){+.+.}-{4:4}, at: l2cap_conn_del+0x70/0x680
 #4: ffffffff8e144c78 (rcu_state.exp_mutex){+.+.}-{4:4}, at: synchronize_rcu_expedited+0x2f6/0x730
3 locks held by syz.2.5601/24372:
 #0: ffff888060bb0dc0 (&hdev->req_lock){+.+.}-{4:4}, at: hci_unregister_dev+0x212/0x510
 #1: ffff888060bb00b8 (&hdev->lock){+.+.}-{4:4}, at: hci_dev_close_sync+0x66a/0x1330
 #2: ffffffff8f683cc8 (hci_cb_list_lock){+.+.}-{4:4}, at: hci_conn_hash_flush+0xa1/0x230

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

NMI backtrace for cpu 1
CPU: 1 UID: 0 PID: 34 Comm: khungtaskd Not tainted 6.16.0-rc5-syzkaller-00212-g9f735b6f8a77 #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: 5880 Comm: kworker/0:3 Not tainted 6.16.0-rc5-syzkaller-00212-g9f735b6f8a77 #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_out+0x7c/0xc0
Code: 1e 7a fc 44 89 f9 d3 e5 49 83 c6 40 4c 89 f0 48 c1 e8 03 42 80 3c 20 00 74 08 4c 89 f7 e8 2c 32 dc fc 41 03 2e 89 d8 89 ea ee <5b> 41 5c 41 5e 41 5f 5d c3 cc cc cc cc cc 44 89 f9 80 e1 07 38 c1
RSP: 0018:ffffc900041aec50 EFLAGS: 00000002
RAX: 0000000000000037 RBX: 0000000000000037 RCX: 0000000000000000
RDX: 00000000000003f8 RSI: 0000000000000000 RDI: 0000000000000020
RBP: 00000000000003f8 R08: ffff888108750237 R09: 1ffff110210ea046
R10: dffffc0000000000 R11: ffffffff85460db0 R12: dffffc0000000000
R13: ffffffff99aee88b R14: ffffffff99df32e0 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff8880b8626000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000200000002ac0 CR3: 0000000026fd0000 CR4: 00000000000006f0
Call Trace:
 <TASK>
 serial8250_console_write+0x1410/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>
