INFO: task syz-executor:10484 blocked for more than 143 seconds.
      Not tainted 6.16.0-rc5-syzkaller-00159-g47c84997c686 #0
      Blocked by coredump.
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor    state:D stack:21960 pid:10484 tgid:10484 ppid:1      task_flags:0x40014c flags:0x00004002
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_conn_del+0x23d/0x680
 hci_conn_hash_flush+0x10d/0x230
 hci_dev_close_sync+0xaef/0x1330
 hci_unregister_dev+0x21a/0x510
 vhci_release+0x80/0xd0
 __fput+0x44c/0xa70
 task_work_run+0x1d4/0x260
 do_exit+0x6b5/0x22e0
 do_group_exit+0x21c/0x2d0
 __x64_sys_exit_group+0x3f/0x40
 x64_sys_call+0x21ba/0x21c0
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fd300f8e929
RSP: 002b:00007ffc4a64da98 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fd300f8e929
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000043
RBP: 00007fd300fee8f0 R08: 00007ffc4a64b837 R09: 0000000000000003
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001
R13: 0000000000000003 R14: 00000000ffffffff R15: 00007ffc4a64dc50
 </TASK>
INFO: task khidpd_0c451010:10606 blocked for more than 143 seconds.
      Not tainted 6.16.0-rc5-syzkaller-00159-g47c84997c686 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:khidpd_0c451010 state:D
 stack:29416 pid:10606 tgid:10606 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:
4 locks held by kworker/u8:1/13:
 #0: 
ffff88801b2f6948
 (
(wq_completion)netns
){+.+.}-{0:0}
, at: process_scheduled_works+0x9b4/0x17b0
 #1: 
ffffc90000107bc0
 (net_cleanup_work
){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0
 #2: ffffffff8f510c10 (pernet_ops_rwsem){++++}-{4:4}, at: cleanup_net+0xf7/0x800
 #3: ffff888136639f98 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2a/0x140
5 locks held by kworker/u9:0/26:
 #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: ffffffff99ce89d8 (&obj_hash[i].lock){-.-.}-{2:2}, at: debug_object_assert_init+0xb4/0x380
 #4: ffffffff8e13f160 (
rcu_read_lock){....}-{1:3}, at: unwind_next_frame+0xa5/0x2390
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: ffff8881167a6148 ((wq_completion)hci1#2){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0
 #1: ffffc900007cfbc0 ((work_completion)(&hdev->rx_work)){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0
 #2: ffff88811ab0c0b8 (&hdev->lock){+.+.}-{4:4}, at: hci_remote_features_evt+0x9b/0x8e0
 #3: ffffffff8f685a88 (hci_cb_list_lock){+.+.}-{4:4}, at: hci_remote_features_evt+0x516/0x8e0
3 locks held by kworker/u10:8/1094:
 #0: 
ffff88801bfd8948 ((wq_completion)ib-unreg-wq){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0
 #1: ffffc90007117bc0 ((work_completion)(&device->unregistration_work)){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0
 #2: ffff88811d1846d0 (&device->unregistration_lock){+.+.}-{4:4}, at: __ib_unregister_device+0x284/0x3f0
4 locks held by kworker/u11:1/5220:
 #0: 
ffff888121020148
 (
(wq_completion)hci3
#2
){+.+.}-{0:0}
, at: process_scheduled_works+0x9b4/0x17b0
 #1: 
ffffc90008b27bc0
 (
(work_completion)(&hdev->rx_work)
){+.+.}-{0:0}
, at: process_scheduled_works+0x9ef/0x17b0
 #2: 
ffff88810c0140b8
 (
&hdev->lock
){+.+.}-{4:4}
, at: hci_remote_features_evt+0x9b/0x8e0
 #3: ffffffff8f685a88 (hci_cb_list_lock){+.+.}-{4:4}
, at: hci_remote_features_evt+0x516/0x8e0
2 locks held by getty/5655:
 #0: ffff88810b32a0a0 (&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
4 locks held by kworker/u11:2/5826:
 #0: ffff888119a18948 ((wq_completion)hci6#2){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0
 #1: ffffc90003d5fbc0 ((work_completion)(&hdev->rx_work)){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0
 #2: ffff88803c8840b8 (&hdev->lock){+.+.}-{4:4}, at: hci_remote_features_evt+0x9b/0x8e0
 #3: ffffffff8f685a88 (hci_cb_list_lock){+.+.}-{4:4}, at: hci_remote_features_evt+0x516/0x8e0
4 locks held by kworker/u11:3/5829:
 #0: ffff88810c83f948 (
(wq_completion)hci7
#2){+.+.}-{0:0}
, at: process_scheduled_works+0x9b4/0x17b0
 #1: 
ffffc90003d9fbc0
 ((work_completion)(&hdev->rx_work)){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0
 #2: ffff8881142740b8 (&hdev->lock){+.+.}-{4:4}, at: hci_remote_features_evt+0x9b/0x8e0
 #3: ffffffff8f685a88 (hci_cb_list_lock){+.+.}-{4:4}, at: hci_remote_features_evt+0x516/0x8e0
4 locks held by kworker/u11:4/5832:
 #0: ffff888111ad4948 ((wq_completion)hci5#2){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0
 #1: 
ffffc90003dbfbc0
 (
(work_completion)(&hdev->rx_work)
){+.+.}-{0:0}
, at: process_scheduled_works+0x9ef/0x17b0
 #2: 
ffff8880381800b8
 (&hdev->lock
){+.+.}-{4:4}
, at: hci_remote_features_evt+0x9b/0x8e0
 #3: 
ffffffff8f685a88
 (
hci_cb_list_lock
){+.+.}-{4:4}
, at: hci_remote_features_evt+0x516/0x8e0
4 locks held by kworker/u11:5/5834:
 #0: 
ffff88811c63e148 (
(wq_completion)hci4
#2){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0
 #1: ffffc90003ddfbc0 ((work_completion)(&hdev->rx_work)){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0
 #2: 
ffff8881220840b8
 (
&hdev->lock
){+.+.}-{4:4}
, at: hci_remote_features_evt+0x9b/0x8e0
 #3: 
ffffffff8f685a88
 (
hci_cb_list_lock
){+.+.}-{4:4}
, at: hci_remote_features_evt+0x516/0x8e0
4 locks held by kworker/u11:6/5835:
 #0: 
ffff88812e22e948
 (
(wq_completion)hci9
#2
){+.+.}-{0:0}
, at: process_scheduled_works+0x9b4/0x17b0
 #1: 
ffffc90003defbc0
 (
(work_completion)(&hdev->rx_work)
){+.+.}-{0:0}
, at: process_scheduled_works+0x9ef/0x17b0
 #2: 
ffff8881287d00b8
 (
&hdev->lock
){+.+.}-{4:4}
, at: hci_remote_features_evt+0x9b/0x8e0
 #3: ffffffff8f685a88 (hci_cb_list_lock){+.+.}-{4:4}
, at: hci_remote_features_evt+0x516/0x8e0
1 lock held by udevd/5837:
 #0: 
ffff8880201ad358
 (
&disk->open_mutex
){+.+.}-{4:4}
, at: bdev_open+0xe0/0xd30
8 locks held by kworker/0:6/5890:
5 locks held by syz-executor/10484:
 #0: 
ffff88802670cdc0
 (
&hdev->req_lock
){+.+.}-{4:4}
, at: hci_unregister_dev+0x212/0x510
 #1: ffff88802670c0b8 (&hdev->lock){+.+.}-{4:4}, at: hci_dev_close_sync+0x66a/0x1330
 #2: ffffffff8f685a88 (hci_cb_list_lock){+.+.}-{4:4}, at: hci_conn_hash_flush+0xa1/0x230
 #3: 
ffff88811cc7f338
 (
&conn->lock
#2){+.+.}-{4:4}
, at: l2cap_conn_del+0x70/0x680
 #4: 
ffffffff8f6aeb30
 (
hidp_session_sem
){++++}-{4:4}, at: hidp_session_remove+0x2c/0x260
1 lock held by khidpd_0c451010/10606:
 #0: ffff88802670c0b8 (&hdev->lock){+.+.}-{4:4}, at: l2cap_unregister_user+0x6a/0x1b0
2 locks held by syz.1.986/10657:
 #0: 
ffffffff8f6abba8 (
rfcomm_ioctl_mutex){+.+.}-{4:4}
, at: rfcomm_dev_ioctl+0x232/0x1d40
 #1: 
ffff88811ab0c0b8
 (
&hdev->lock){+.+.}-{4:4}
, at: rfcomm_reparent_device+0x4a/0x450
1 lock held by syz.3.1101/11167:
 #0: 
ffff88810c0140b8
 (
&hdev->lock
){+.+.}-{4:4}
, at: l2cap_chan_connect+0x102/0xe30
1 lock held by syz.4.1154/11397:
 #0: 
ffffffff8f6abba8 (rfcomm_ioctl_mutex){+.+.}-{4:4}, at: rfcomm_dev_ioctl+0x232/0x1d40
4 locks held by kworker/u11:7/11404:
 #0: ffff88811d980148 ((wq_completion)hci8
#2){+.+.}-{0:0}
, at: process_scheduled_works+0x9b4/0x17b0
 #1: ffffc9000460fbc0 ((work_completion)(&hdev->rx_work)){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0
 #2: ffff88812e8380b8 (&hdev->lock){+.+.}-{4:4}, at: hci_remote_features_evt+0x9b/0x8e0
 #3: ffffffff8f685a88 (hci_cb_list_lock){+.+.}-{4:4}, at: hci_remote_features_evt+0x516/0x8e0
1 lock held by syz.5.1178/11491:
 #0: ffff8881142740b8 (&hdev->lock){+.+.}-{4:4}, at: l2cap_chan_connect+0x102/0xe30
4 locks held by kworker/u11:8/11497:
 #0: ffff88811cab6148 ((wq_completion)hci11#2){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0
 #1: ffffc900024bfbc0 ((work_completion)(&hdev->rx_work)
){+.+.}-{0:0}
, at: process_scheduled_works+0x9ef/0x17b0
 #2: ffff888038e780b8
 (
&hdev->lock
){+.+.}-{4:4}
, at: hci_remote_features_evt+0x9b/0x8e0
 #3: 
ffffffff8f685a88
 (
hci_cb_list_lock
){+.+.}-{4:4}, at: hci_remote_features_evt+0x516/0x8e0
1 lock held by syz.6.1191/11558:
 #0: ffff88812e8380b8
 (
&hdev->lock
){+.+.}-{4:4}
, at: l2cap_chan_connect+0x102/0xe30
4 locks held by kworker/u11:9/11564:
 #0: 
ffff8881199f9948 (
(wq_completion)hci10
#2
){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0
 #1: ffffc9000657fbc0 ((work_completion)(&hdev->rx_work)){+.+.}-{0:0}
, at: process_scheduled_works+0x9ef/0x17b0
 #2: ffff8881317000b8 (
&hdev->lock
){+.+.}-{4:4}, at: hci_remote_features_evt+0x9b/0x8e0
 #3: 
ffffffff8f685a88
 (
hci_cb_list_lock
){+.+.}-{4:4}
, at: hci_remote_features_evt+0x516/0x8e0

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

NMI backtrace for cpu 1
CPU: 1 UID: 0 PID: 34 Comm: khungtaskd Not tainted 6.16.0-rc5-syzkaller-00159-g47c84997c686 #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: 5890 Comm: kworker/0:6 Not tainted 6.16.0-rc5-syzkaller-00159-g47c84997c686 #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:kernel_text_address+0x1c/0xe0
Code: 90 90 90 90 90 90 90 90 90 90 90 90 90 90 66 0f 1f 00 55 41 56 53 48 81 ff 00 00 00 81 0f 93 c0 48 81 ff ac fa 72 8b 0f 92 c1 <bd> 01 00 00 00 84 c8 75 0c 48 89 fb e8 a3 57 a6 ff 85 c0 74 0c 89
RSP: 0018:ffffc90000007758 EFLAGS: 00000287
RAX: 0000000000000001 RBX: ffffffff85f757be RCX: 4b4ee09a94136601
RDX: 0000000000000004 RSI: ffffffff8db86598 RDI: ffffffff85f757be
RBP: ffffc90000007830 R08: ffffc9000464f7b0 R09: 0000000000000000
R10: ffffc900000077f8 R11: fffff52000000f01 R12: ffff888021049cc0
R13: 0000000000000000 R14: dffffc0000000000 R15: 1ffff92000000efe
FS:  0000000000000000(0000) GS:ffff8880b861b000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055db9e9702a8 CR3: 00000001120d0000 CR4: 00000000000006f0
Call Trace:
 <IRQ>
 __kernel_text_address+0xd/0x40
 unwind_get_return_address+0x4d/0x90
 arch_stack_walk+0xfc/0x150
 stack_trace_save+0x9c/0xe0
 kasan_save_track+0x3e/0x80
 kasan_save_free_info+0x46/0x50
 __kasan_slab_free+0x62/0x70
 kfree+0x18e/0x440
 slab_free_after_rcu_debug+0x60/0x2a0
 rcu_core+0xca8/0x1710
 handle_softirqs+0x286/0x870
 __irq_exit_rcu+0xca/0x1f0
 irq_exit_rcu+0x9/0x30
 sysvec_apic_timer_interrupt+0xa6/0xc0
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x1a/0x20
RIP: 0010:vprintk_emit+0x58f/0x7a0
Code: 85 32 01 00 00 e8 61 2f 1f 00 41 89 df 4d 85 f6 48 8b 1c 24 75 07 e8 50 2f 1f 00 eb 06 e8 49 2f 1f 00 fb 48 c7 c7 e0 33 13 8e <31> f6 ba 01 00 00 00 31 c9 41 b8 01 00 00 00 45 31 c9 53 e8 c9 36
RSP: 0018:ffffc9000464f060 EFLAGS: 00000293
RAX: ffffffff81a10727 RBX: ffffffff81a105e4 RCX: ffff888021049cc0
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff8e1333e0
RBP: ffffc9000464f170 R08: ffffffff8fa1f3f7 R09: 1ffffffff1f43e7e
R10: dffffc0000000000 R11: fffffbfff1f43e7f R12: dffffc0000000000
R13: 1ffff920008c9e10 R14: 0000000000000200 R15: 000000000000003a
 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>
