INFO: task kworker/u11:0:55 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:kworker/u11:0   state:D stack:25512 pid:55    tgid:55    ppid:2      task_flags:0x4208060 flags:0x00004000
Workqueue: hci2 hci_cmd_sync_work
Call Trace:
 <TASK>
 __schedule+0x16f5/0x4d00
 schedule+0x165/0x360
 schedule_preempt_disabled+0x13/0x30
 __mutex_lock+0x724/0xe80
 hci_abort_conn_sync+0x1eb/0xdf0
 hci_cmd_sync_work+0x213/0x3a0
 process_scheduled_works+0xae1/0x17b0
 worker_thread+0x8a0/0xda0
 kthread+0x711/0x8a0
 ret_from_fork+0x3fc/0x770
 ret_from_fork_asm+0x1a/0x30
 </TASK>
INFO: task syz.1.495:7532 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.1.495       state:D stack:27512 pid:7532  tgid:7531  ppid:5826   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:0x7f207158e929
RSP: 002b:00007f2072411038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f20717b5fa0 RCX: 00007f207158e929
RDX: 0000200000000000 RSI: 00000000400448c9 RDI: 0000000000000004
RBP: 00007f2071610b39 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f20717b5fa0 R15: 00007ffef82e7558
 </TASK>
INFO: task khidpd_16c05505:7533 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:29416 pid:7533  tgid:7533  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.2.498:7538 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.2.498       state:D stack:28328 pid:7538  tgid:7537  ppid:5823   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:0x7fbf0758e929
RSP: 002b:00007fbf08310038 EFLAGS: 00000246 ORIG_RAX: 000000000000002a
RAX: ffffffffffffffda RBX: 00007fbf077b5fa0 RCX: 00007fbf0758e929
RDX: 000000000000000e RSI: 0000200000000080 RDI: 0000000000000005
RBP: 00007fbf07610b39 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007fbf077b5fa0 R15: 00007ffc0f849618
 </TASK>
INFO: task syz.2.498:7539 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.2.498       state:D
 stack:28712 pid:7539  tgid:7537  ppid:5823   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:0x7fbf0758e929
RSP: 002b:00007fbf053f6038 EFLAGS: 00000246
 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007fbf077b6080 RCX: 00007fbf0758e929
RDX: 0000200000000000 RSI: 00000000400448c9 RDI: 0000000000000004
RBP: 00007fbf07610b39 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007fbf077b6080 R15: 00007ffc0f849618
 </TASK>
INFO: task syz.0.500:7543 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.0.500       state:D stack:26184 pid:7543  tgid:7542  ppid:5819   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:0x7f1dd7b8e929
RSP: 002b:00007f1dd8947038 EFLAGS: 00000246 ORIG_RAX: 000000000000002a
RAX: ffffffffffffffda RBX: 00007f1dd7db5fa0 RCX: 00007f1dd7b8e929
RDX: 000000000000000e RSI: 0000200000000080 RDI: 0000000000000006
RBP: 00007f1dd7c10b39 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f1dd7db5fa0 R15: 00007fff83c28e68
 </TASK>
INFO: task syz.0.500:7544 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.0.500       state:D
 stack:28328 pid:7544  tgid:7542  ppid:5819   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:0x7f1dd7b8e929
RSP: 002b:00007f1dd8926038 EFLAGS: 00000246
 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f1dd7db6080 RCX: 00007f1dd7b8e929
RDX: 0000200000000000 RSI: 00000000400448c9 RDI: 0000000000000004
RBP: 00007f1dd7c10b39 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f1dd7db6080 R15: 00007fff83c28e68
 </TASK>

Showing all locks held in the system:
3 locks held by kworker/0:0/9:
8 locks held by kworker/0:1/10:
3 locks held by kworker/u8:1/13:
 #0: 
ffff888107222948 (
(wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0
 #1: ffffc90000107bc0 ((work_completion)(&(&ifa->dad_work)->work)){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0
 #2: ffffffff8f50ffc8 (rtnl_mutex){+.+.}-{4:4}, at: addrconf_dad_work+0x112/0x14b0
1 lock held by khungtaskd/34:
 #0: ffffffff8e13ee60 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x2e/0x180
4 locks held by kworker/u11:0/55:
 #0: ffff88810eccc148 ((wq_completion)hci2){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0
 #1: ffffc900007dfbc0 ((work_completion)(&hdev->cmd_sync_work)){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0
 #2: ffff8881070ccdc0 (&hdev->req_lock){+.+.}-{4:4}, at: hci_cmd_sync_work+0x1d4/0x3a0
 #3: ffff8881070cc0b8 (&hdev->lock){+.+.}-{4:4}, at: hci_abort_conn_sync+0x1eb/0xdf0
2 locks held by kworker/u13:0/57:
 #0: ffff888022723948 ((wq_completion)nbd0-recv){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0
 #1: ffffc90000a0fbc0 ((work_completion)(&args->work)){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0
3 locks held by kworker/u10:3/2236:
 #0: ffff88801a489148 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0
 #1: ffffc9000adf7bc0 ((linkwatch_work).work){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0
 #2: ffffffff8f50ffc8 (rtnl_mutex){+.+.}-{4:4}, at: linkwatch_event+0xe/0x60
2 locks held by getty/5640:
 #0: ffff8881070190a0 (&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.1.495/7532:
 #0: ffff8881070cc0b8 (&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/7533:
 #0: ffff8881070cc0b8 (&hdev->lock){+.+.}-{4:4}, at: l2cap_unregister_user+0x6a/0x1b0
1 lock held by syz.2.498/7538:
 #0: ffff8881070cc0b8 (&hdev->lock){+.+.}-{4:4}, at: l2cap_chan_connect+0x102/0xe30
1 lock held by syz.2.498/7539:
 #0: 
ffffffff8f6a1250
 (
hidp_session_sem
){++++}-{4:4}, at: hidp_session_find+0x1a/0x100
1 lock held by syz.0.500/7543:
 #0: ffff8881070cc0b8 (&hdev->lock
){+.+.}-{4:4}
, at: l2cap_chan_connect+0x102/0xe30
1 lock held by syz.0.500/7544:
 #0: 
ffffffff8f6a1250
 (
hidp_session_sem
){++++}-{4:4}, at: hidp_session_find+0x1a/0x100
1 lock held by syz.3.501/7612:
 #0: 
ffffffff8f6a1250
 (
hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100
1 lock held by syz.4.506/7644:
 #0: ffffffff8f6a1250 (hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100
1 lock held by syz.5.507/7649:
 #0: ffffffff8f6a1250 (hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100
1 lock held by syz.5.507/7650:
 #0: ffffffff8f6a1250 (hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100
1 lock held by syz.6.508/7709:
 #0: ffffffff8f6a1250 (hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100
1 lock held by syz.6.508/7710:
 #0: ffffffff8f6a1250 (hidp_session_sem){++++}-{4:4}
, at: hidp_session_find+0x1a/0x100
1 lock held by syz.7.511/7739:
 #0: 
ffffffff8f6a1250
 (hidp_session_sem
){++++}-{4:4}
, at: hidp_session_find+0x1a/0x100
1 lock held by syz.8.521/7771:
 #0: 
ffffffff8f6a1250
 (
hidp_session_sem
){++++}-{4:4}, at: hidp_session_find+0x1a/0x100
1 lock held by syz.8.521/7772:
 #0: ffffffff8f6a1250 (hidp_session_sem){++++}-{4:4}
, at: hidp_session_find+0x1a/0x100
1 lock held by syz.9.528/7831:
 #0: 
ffffffff8f6a1250
 (
hidp_session_sem
){++++}-{4:4}
, at: hidp_session_find+0x1a/0x100
1 lock held by syz.9.528/7832:
 #0: ffffffff8f6a1250
 (
hidp_session_sem){++++}-{4:4}
, at: hidp_session_find+0x1a/0x100
1 lock held by syz.1.529/7844:
 #0: ffffffff8f6a1250
 (
hidp_session_sem
){++++}-{4:4}
, at: hidp_session_find+0x1a/0x100
1 lock held by syz.0.536/7883:
 #0: ffffffff8f6a1250
 (
hidp_session_sem
){++++}-{4:4}, at: hidp_session_find+0x1a/0x100
1 lock held by syz.0.536/7884:
 #0: 
ffffffff8f6a1250 (
hidp_session_sem
){++++}-{4:4}, at: hidp_session_find+0x1a/0x100
1 lock held by syz.2.542/7937:
 #0: ffffffff8f6a1250 (hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100
1 lock held by syz.3.547/7955:
 #0: ffffffff8f6a1250 (
hidp_session_sem){++++}-{4:4}
, at: hidp_session_find+0x1a/0x100
1 lock held by syz.4.551/7997:
 #0: ffffffff8f6a1250
 (
hidp_session_sem){++++}-{4:4}
, at: hidp_session_find+0x1a/0x100
1 lock held by syz.5.552/8044:
 #0: ffffffff8f6a1250 (
hidp_session_sem
){++++}-{4:4}
, at: hidp_session_find+0x1a/0x100
1 lock held by syz.6.560/8082:
 #0: ffffffff8f6a1250
 (hidp_session_sem
){++++}-{4:4}
, at: hidp_session_find+0x1a/0x100
1 lock held by syz.7.562/8111:
 #0: ffffffff8f6a1250
 (
hidp_session_sem){++++}-{4:4}
, at: hidp_session_find+0x1a/0x100
1 lock held by syz.7.562/8112:
 #0: ffffffff8f6a1250
 (
hidp_session_sem
){++++}-{4:4}
, at: hidp_session_find+0x1a/0x100
1 lock held by syz.8.568/8170:
 #0: 
ffffffff8f6a1250
 (
hidp_session_sem
){++++}-{4:4}
, at: hidp_session_find+0x1a/0x100
1 lock held by syz.1.569/8260:
 #0: 
ffffffff8f6a1250
 (
hidp_session_sem
){++++}-{4:4}
, at: hidp_session_find+0x1a/0x100
1 lock held by syz.1.569/8264:
 #0: 
ffffffff8f6a1250
 (
hidp_session_sem){++++}-{4:4}
, at: hidp_session_find+0x1a/0x100
1 lock held by syz.0.571/8374:
 #0: ffffffff8f6a1250 (hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100
1 lock held by syz.0.571/8376:
 #0: ffffffff8f6a1250 (hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100
1 lock held by syz.2.582/8551:
 #0: ffffffff8f6a1250
 (
hidp_session_sem
){++++}-{4:4}, at: hidp_session_find+0x1a/0x100
2 locks held by syz-executor/8588:
 #0: 
ffffffff8f50ffc8
 (
rtnl_mutex
){+.+.}-{4:4}, at: tun_chr_close+0x3e/0x1c0
 #1: 
ffffffff8e144978
 (
rcu_state.exp_mutex
){+.+.}-{4:4}
, at: synchronize_rcu_expedited+0x2f6/0x730
1 lock held by syz.3.585/8605:
 #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: 10 Comm: kworker/0:1 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:memset_orig+0x70/0xb0
Code: 48 89 47 28 48 89 47 30 48 89 47 38 48 8d 7f 40 75 d8 0f 1f 84 00 00 00 00 00 89 d1 83 e1 38 74 14 c1 e9 03 66 0f 1f 44 00 00 <ff> c9 48 89 07 48 8d 7f 08 75 f5 83 e2 07 74 0a ff ca 88 07 48 8d
RSP: 0018:ffffc900000d6a98 EFLAGS: 00000206
RAX: 0000000000000000 RBX: ffffffff8e01ae60 RCX: 0000000000000003
RDX: 0000000000000018 RSI: 0000000000000000 RDI: ffffc900000d6b80
RBP: ffffc900000d6c20 R08: ffffc900000d6b97 R09: 0000000000000000
R10: ffffc900000d6b80 R11: fffff5200001ad73 R12: ffffffff8e02ad60
R13: 000000000000000d R14: ffffffff8e0915e0 R15: ffffc900000d6c30
FS:  0000000000000000(0000) GS:ffff8880b8650000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055bef91f1768 CR3: 000000001fb92000 CR4: 00000000000006f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 _prb_read_valid+0x201/0xa90
 prb_read_valid+0x3c/0x60
 printk_get_next_message+0x15c/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>
