INFO: task syz.3.929:9195 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.3.929       state:D stack:25352 pid:9195  tgid:9193  ppid:8978   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_add+0x21e/0x1a50
 hidp_sock_ioctl+0x36c/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:0x7f6b24f8e929
RSP: 002b:00007f6b22df6038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f6b251b5fa0 RCX: 00007f6b24f8e929
RDX: 0000200000000340 RSI: 00000000400448c8 RDI: 0000000000000007
RBP: 00007f6b25010b39 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f6b251b5fa0 R15: 00007ffc5e205ff8
 </TASK>
INFO: task syz.3.929:9198 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.3.929       state:D stack:24200 pid:9198  tgid:9193  ppid:8978   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:0x7f6b24f8e929
RSP: 002b:00007f6b22dd5038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f6b251b6080 RCX: 00007f6b24f8e929
RDX: 0000200000000000 RSI: 00000000400448c9 RDI: 0000000000000007
RBP: 00007f6b25010b39 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f6b251b6080 R15: 00007ffc5e205ff8
 </TASK>
INFO: task syz.4.930:9196 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.4.930       state:D stack:26088 pid:9196  tgid:9194  ppid:8992   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:0x7fc42ed8e929
RSP: 002b:00007fc42fb25038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007fc42efb5fa0 RCX: 00007fc42ed8e929
RDX: 0000200000000000 RSI: 00000000400448c9 RDI: 0000000000000004
RBP: 00007fc42ee10b39 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007fc42efb5fa0 R15: 00007ffe3f9e5668
 </TASK>
INFO: task khidpd_16bf5505:9197 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:khidpd_16bf5505 state:D stack:29416 pid:9197  tgid:9197  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.931:9201 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.931       state:D stack:24120 pid:9201  tgid:9199  ppid:5814   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:0x7fc4b9f8e929
RSP: 002b:00007fc4bad86038 EFLAGS: 00000246
 ORIG_RAX: 000000000000002a
RAX: ffffffffffffffda RBX: 00007fc4ba1b6080 RCX: 00007fc4b9f8e929
RDX: 000000000000000e RSI: 0000200000000080 RDI: 0000000000000008
RBP: 00007fc4ba010b39 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007fc4ba1b6080 R15: 00007fff8b83c088
 </TASK>

Showing all locks held in the system:
1 lock held by pool_workqueue_/3:
 #0: 
ffff88804b039f98 (
&rq->__lock
){-.-.}-{2:2}
, at: raw_spin_rq_lock_nested+0x2a/0x140
5 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: 
ffffffff8f5033d0 (
pernet_ops_rwsem){++++}-{4:4}, at: cleanup_net+0xf7/0x800
 #3: ffffffff8f50ffc8 (rtnl_mutex){+.+.}-{4:4}, at: default_device_exit_batch+0xdc/0x890
 #4: ffffffff8e144978 (rcu_state.exp_mutex){+.+.}-{4:4}, at: synchronize_rcu_expedited+0x2f6/0x730
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/1:1/47:
3 locks held by kworker/u10:3/65:
 #0: ffff88801a489148 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0
 #1: ffffc9000173fbc0 ((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/5642:
 #0: ffff88810fc610a0 (&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
3 locks held by kworker/u8:2/5828:
 #0: ffff88802105e948
 (
(wq_completion)ipv6_addrconf
){+.+.}-{0:0}
, at: process_scheduled_works+0x9b4/0x17b0
 #1: 
ffffc9000340fbc0
 ((work_completion)(&(&net->ipv6.addr_chk_work)->work)
){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0
 #2: 
ffffffff8f50ffc8
 (rtnl_mutex
){+.+.}-{4:4}, at: addrconf_verify_work+0x19/0x30
1 lock held by syz.3.929/9195:
 #0: ffffffff8f6a1250 (hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100
1 lock held by syz.3.929/9198:
 #0: ffffffff8f6a1250 (hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100
2 locks held by syz.4.930/9196:
 #0: ffff8880250280b8 (&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_16bf5505/9197:
 #0: ffff8880250280b8 (&hdev->lock){+.+.}-{4:4}, at: l2cap_unregister_user+0x6a/0x1b0
1 lock held by syz.2.931/9201:
 #0: ffff8880250280b8 (&hdev->lock){+.+.}-{4:4}, at: l2cap_chan_connect+0x102/0xe30
4 locks held by kworker/u11:5/9212:
 #0: ffff888030f43948 ((wq_completion)hci2){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0
 #1: ffffc9000381fbc0 ((work_completion)(&hdev->cmd_sync_work)){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0
 #2: ffff888025028dc0 (&hdev->req_lock){+.+.}-{4:4}, at: hci_cmd_sync_work+0x1d4/0x3a0
 #3: ffff8880250280b8 (&hdev->lock){+.+.}-{4:4}, at: hci_abort_conn_sync+0x1eb/0xdf0
2 locks held by kworker/u8:5/9233:
1 lock held by syz.5.932/9283:
 #0: 
ffffffff8f6a1250 (hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100
1 lock held by syz.5.932/9286:
 #0: ffffffff8f6a1250 (hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100
1 lock held by syz.7.934/9285:
 #0: ffffffff8f6a1250 (hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100
1 lock held by syz.6.941/9310:
 #0: 
ffffffff8f6a1250
 (hidp_session_sem
){++++}-{4:4}
, at: hidp_session_find+0x1a/0x100
1 lock held by syz.6.941/9311:
 #0: 
ffffffff8f6a1250
 (hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100
1 lock held by syz.8.947/9393:
 #0: ffffffff8f6a1250 (hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100
1 lock held by syz.9.953/9414:
 #0: 
ffffffff8f6a1250
 (
hidp_session_sem
){++++}-{4:4}
, at: hidp_session_find+0x1a/0x100
1 lock held by syz.3.963/9545:
 #0: ffffffff8f6a1250
 (
hidp_session_sem){++++}-{4:4}
, at: hidp_session_find+0x1a/0x100
1 lock held by syz.1.975/9592:
 #0: ffffffff8f6a1250 (hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100
1 lock held by syz.4.979/9697:
 #0: ffffffff8f6a1250 (hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100
1 lock held by syz.4.979/9699:
 #0: ffffffff8f6a1250 (hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100
1 lock held by syz.2.980/9703:
 #0: ffffffff8f6a1250 (hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100
1 lock held by syz.2.980/9706:
 #0: ffffffff8f6a1250 (hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100
1 lock held by syz.5.988/9846:
 #0: ffffffff8f6a1250 (hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100
1 lock held by syz.5.988/9849:
 #0: ffffffff8f6a1250 (hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100
1 lock held by syz.7.995/9879:
 #0: ffffffff8f6a1250 (hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100
1 lock held by syz.7.995/9880:
 #0: ffffffff8f6a1250 (hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100
1 lock held by syz.6.999/9968:
 #0: ffffffff8f6a1250 (hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100
1 lock held by syz.6.999/9973:
 #0: ffffffff8f6a1250 (hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100
1 lock held by syz.8.997/9990:
 #0: ffffffff8f6a1250 (
hidp_session_sem
){++++}-{4:4}, at: hidp_session_find+0x1a/0x100
2 locks held by syz-executor/10087:
 #0: ffffffff8fa14d08 (&ops->srcu#2){.+.+}-{0:0}, at: rtnl_link_ops_get+0x23/0x250
 #1: ffffffff8f50ffc8 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_newlink+0x8db/0x1c70
1 lock held by syz.3.1007/10096:
 #0: ffffffff8f6a1250 (hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100
1 lock held by syz.3.1007/10099:
 #0: ffffffff8f6a1250 (hidp_session_sem){++++}-{4:4}, at: hidp_session_find+0x1a/0x100
1 lock held by syz.9.1008/10102:
 #0: ffffffff8f50ffc8 (rtnl_mutex){+.+.}-{4:4}, at: tun_chr_close+0x3e/0x1c0

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

NMI backtrace for cpu 0
CPU: 0 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 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 UID: 0 PID: 47 Comm: kworker/1: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:move_right+0x0/0xa0
Code: c0 f6 e9 79 ff ff ff e8 ee e4 5c f6 48 01 eb 48 83 c3 04 e9 9d fd ff ff 66 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 <55> 41 57 41 56 41 54 53 41 89 ce 89 d5 49 89 f7 48 89 fb e8 b8 e4
RSP: 0018:ffffc9000075e888 EFLAGS: 00000296
RAX: 0000000000000003 RBX: ffffc9000075ebb2 RCX: 0000000000000003
RDX: 0000000000000003 RSI: ffffc9008075ebad RDI: ffffc9000075ebaf
RBP: 00000000fffffffd R08: ffff888104af1cc0 R09: 0000000000000008
R10: 0000000000000007 R11: 0000000000000000 R12: 0000000000000003
R13: 0000000000000000 R14: ffffc9008075ebad R15: 0000000000000003
FS:  0000000000000000(0000) GS:ffff8881a3c50000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fff9422dfe8 CR3: 000000000df38000 CR4: 00000000000006f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 widen_string+0x85/0x2a0
 vsnprintf+0x739/0xf00
 sprintf+0xd9/0x120
 info_print_prefix+0x1f3/0x310
 record_print_text+0x154/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>
