program: r0 = syz_init_net_socket$bt_l2cap(0x1f, 0x2, 0x0) connect$bt_l2cap(r0, &(0x7f0000000080)={0x1f, 0x0, @fixed={'\xaa\xaa\xaa\xaa\xaa', 0x10}, 0x7ff}, 0xe) (async) r1 = socket$netlink(0x10, 0x3, 0x14) (async) r2 = syz_init_net_socket$802154_dgram(0x24, 0x2, 0x0) getsockopt$WPAN_WANTACK(r2, 0x0, 0x0, &(0x7f00000000c0), &(0x7f0000000100)=0x4) (async, rerun: 32) sendmsg$RDMA_NLDEV_CMD_NEWLINK(r1, &(0x7f00000002c0)={0x0, 0x0, &(0x7f0000001200)={&(0x7f0000000000)={0x38, 0x1403, 0x1, 0x0, 0x0, "", [{{0x9, 0x2, 'syz1\x00'}, {0x8, 0x41, 'siw\x00'}, {0x14, 0x33, 'team_slave_0\x00'}}]}, 0x38}}, 0x0) (async, rerun: 32) r3 = socket$inet_icmp_raw(0x2, 0x3, 0x1) r4 = openat$kvm(0x0, &(0x7f0000000000), 0x101000, 0x0) ioctl$KVM_CHECK_EXTENSION(r4, 0xae03, 0x2d) setsockopt$inet_int(r3, 0x0, 0x3, &(0x7f0000000180)=0x4, 0x4) syz_emit_ethernet(0x46, &(0x7f0000000000)={@link_local={0x3}, @multicast, @void, {@ipv4={0x800, @icmp={{0x5, 0x4, 0x0, 0x0, 0x38, 0x0, 0x0, 0x0, 0x1, 0x0, @initdev={0xac, 0x1e, 0x0, 0x0}, @local}, @time_exceeded={0x3, 0x4, 0x0, 0x12, 0x0, 0x3f18, {0x5, 0x2, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1, 0x0, @loopback, @loopback}, "00186371ae9b1c47"}}}}}, 0x0) (async, rerun: 32) sendmsg$RDMA_NLDEV_CMD_NEWLINK(r1, &(0x7f00000002c0)={0x0, 0x0, &(0x7f0000000040)={&(0x7f0000000000)={0x38, 0x1403, 0x1, 0x70bd24, 0x0, "", [{{0x9, 0x2, 'syz1\x00'}, {0x8, 0x41, 'siw\x00'}, {0x14, 0x33, 'team_slave_0\x00'}}]}, 0x38}}, 0x0) (rerun: 32) r5 = syz_init_net_socket$bt_hidp(0x1f, 0x3, 0x6) ioctl$sock_bt_hidp_HIDPCONNADD(r5, 0x400448c8, &(0x7f0000000280)={r0, r0, 0xc, 0x1, &(0x7f0000000340)='\x00', 0x9, 0x1, 0x457, 0x9, 0x9, 0x1, 0x1, 'syz1\x00'}) r6 = syz_init_net_socket$bt_hci(0x1f, 0x3, 0x1) ioctl$sock_bt_hci(r6, 0x400448ca, 0x0) [ 84.546580][ T5328] siw: device registration error -23 [ 84.560685][ T5328] siw: device registration error -23 [ 84.563283][ T5328] siw: device registration error -23 [ 84.565669][ T5328] siw: device registration error -23 [ 84.568149][ T5328] siw: device registration error -23 [ 84.580598][ T5328] siw: device registration error -23 [ 84.589492][ T5328] siw: device registration error -23 [ 84.592347][ T5328] siw: device registration error -23 [ 84.623558][ T5326] iwpm_register_pid: Unable to send a nlmsg (client = 2) [ 84.655648][ T5326] infiniband syz1: RDMA CMA: cma_listen_on_dev, error -98 [ 84.736453][ T5322] hid-multitouch 0005:0457:0009.0002: unknown main item tag 0x0 [ 84.748872][ T5328] Zero length message leads to an empty skb [ 84.754407][ T5322] hid-multitouch 0005:0457:0009.0002: hidraw1: BLUETOOTH HID v0.09 Device [syz1] on aa:aa:aa:aa:aa:aa [ 84.805788][ T5325] [ 84.806908][ T5325] ====================================================== [ 84.809926][ T5325] WARNING: possible circular locking dependency detected [ 84.813006][ T5325] syzkaller #0 Not tainted [ 84.814978][ T5325] ------------------------------------------------------ [ 84.817941][ T5325] syz.0.0/5325 is trying to acquire lock: [ 84.820469][ T5325] ffff8880123c6040 ((work_completion)(&(&conn->info_timer)->work)){+.+.}-{0:0}, at: __flush_work+0x100/0xc50 [ 84.825659][ T5325] [ 84.825659][ T5325] but task is already holding lock: [ 84.828867][ T5325] ffff8880123c6338 (&conn->lock#2){+.+.}-{4:4}, at: l2cap_conn_del+0x7b/0x5b0 [ 84.832840][ T5325] [ 84.832840][ T5325] which lock already depends on the new lock. [ 84.832840][ T5325] [ 84.837119][ T5325] [ 84.837119][ T5325] the existing dependency chain (in reverse order) is: [ 84.841051][ T5325] [ 84.841051][ T5325] -> #1 (&conn->lock#2){+.+.}-{4:4}: [ 84.844463][ T5325] __mutex_lock+0x19f/0x1300 [ 84.846723][ T5325] l2cap_info_timeout+0x60/0xa0 [ 84.849273][ T5325] process_scheduled_works+0xaec/0x17a0 [ 84.851974][ T5325] worker_thread+0xda6/0x1360 [ 84.854263][ T5325] kthread+0x726/0x8b0 [ 84.856353][ T5325] ret_from_fork+0x51b/0xa40 [ 84.858581][ T5325] ret_from_fork_asm+0x1a/0x30 [ 84.860906][ T5325] [ 84.860906][ T5325] -> #0 ((work_completion)(&(&conn->info_timer)->work)){+.+.}-{0:0}: [ 84.865359][ T5325] __lock_acquire+0x15a5/0x2cf0 [ 84.867727][ T5325] lock_acquire+0x106/0x330 [ 84.870006][ T5325] __flush_work+0x700/0xc50 [ 84.872251][ T5325] __cancel_work_sync+0xbe/0x110 [ 84.874693][ T5325] l2cap_conn_del+0x402/0x5b0 [ 84.876940][ T5325] hci_conn_hash_flush+0x10d/0x260 [ 84.879465][ T5325] hci_dev_close_sync+0x821/0x10e0 [ 84.881962][ T5325] hci_dev_close+0x108/0x260 [ 84.884174][ T5325] sock_do_ioctl+0x101/0x320 [ 84.886385][ T5325] sock_ioctl+0x5c6/0x7f0 [ 84.888534][ T5325] __se_sys_ioctl+0xfc/0x170 [ 84.890929][ T5325] do_syscall_64+0xe2/0xf80 [ 84.893043][ T5325] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 84.895740][ T5325] [ 84.895740][ T5325] other info that might help us debug this: [ 84.895740][ T5325] [ 84.900067][ T5325] Possible unsafe locking scenario: [ 84.900067][ T5325] [ 84.903337][ T5325] CPU0 CPU1 [ 84.905669][ T5325] ---- ---- [ 84.907986][ T5325] lock(&conn->lock#2); [ 84.909886][ T5325] lock((work_completion)(&(&conn->info_timer)->work)); [ 84.913683][ T5325] lock(&conn->lock#2); [ 84.916603][ T5325] lock((work_completion)(&(&conn->info_timer)->work)); [ 84.919548][ T5325] [ 84.919548][ T5325] *** DEADLOCK *** [ 84.919548][ T5325] [ 84.922891][ T5325] 5 locks held by syz.0.0/5325: [ 84.925003][ T5325] #0: ffff888011ef4ec0 (&hdev->req_lock){+.+.}-{4:4}, at: hci_dev_close+0x100/0x260 [ 84.929070][ T5325] #1: ffff888011ef40c0 (&hdev->lock){+.+.}-{4:4}, at: hci_dev_close_sync+0x640/0x10e0 [ 84.933180][ T5325] #2: ffffffff8fb3b268 (hci_cb_list_lock){+.+.}-{4:4}, at: hci_conn_hash_flush+0xa1/0x260 [ 84.937377][ T5325] #3: ffff8880123c6338 (&conn->lock#2){+.+.}-{4:4}, at: l2cap_conn_del+0x7b/0x5b0 [ 84.941159][ T5325] #4: ffffffff8e55a360 (rcu_read_lock){....}-{1:3}, at: __flush_work+0x100/0xc50 [ 84.944819][ T5325] [ 84.944819][ T5325] stack backtrace: [ 84.947100][ T5325] CPU: 0 UID: 0 PID: 5325 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full) [ 84.947113][ T5325] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 84.947120][ T5325] Call Trace: [ 84.947128][ T5325] [ 84.947133][ T5325] dump_stack_lvl+0xe8/0x150 [ 84.947151][ T5325] print_circular_bug+0x2e1/0x300 [ 84.947164][ T5325] check_noncircular+0x12e/0x150 [ 84.947175][ T5325] __lock_acquire+0x15a5/0x2cf0 [ 84.947191][ T5325] ? do_raw_spin_lock+0x12b/0x2f0 [ 84.947207][ T5325] ? __flush_work+0x100/0xc50 [ 84.947218][ T5325] lock_acquire+0x106/0x330 [ 84.947232][ T5325] ? __flush_work+0x100/0xc50 [ 84.947244][ T5325] ? __flush_work+0x100/0xc50 [ 84.947253][ T5325] __flush_work+0x700/0xc50 [ 84.947264][ T5325] ? __flush_work+0x100/0xc50 [ 84.947275][ T5325] ? __flush_work+0x100/0xc50 [ 84.947286][ T5325] ? __pfx___flush_work+0x10/0x10 [ 84.947296][ T5325] ? __pfx_wq_barrier_func+0x10/0x10 [ 84.947315][ T5325] ? __cancel_work_sync+0x5c/0x110 [ 84.947323][ T5325] __cancel_work_sync+0xbe/0x110 [ 84.947330][ T5325] l2cap_conn_del+0x402/0x5b0 [ 84.947340][ T5325] ? __pfx_l2cap_disconn_cfm+0x10/0x10 [ 84.947347][ T5325] hci_conn_hash_flush+0x10d/0x260 [ 84.947357][ T5325] hci_dev_close_sync+0x821/0x10e0 [ 84.947365][ T5325] ? __pfx_hci_dev_close_sync+0x10/0x10 [ 84.947371][ T5325] ? lockdep_hardirqs_on+0x7a/0x110 [ 84.947378][ T5325] ? enable_work+0x1fd/0x230 [ 84.947386][ T5325] hci_dev_close+0x108/0x260 [ 84.947393][ T5325] sock_do_ioctl+0x101/0x320 [ 84.947404][ T5325] ? __pfx_sock_do_ioctl+0x10/0x10 [ 84.947413][ T5325] ? do_futex+0x333/0x420 [ 84.947424][ T5325] sock_ioctl+0x5c6/0x7f0 [ 84.947434][ T5325] ? __pfx_sock_ioctl+0x10/0x10 [ 84.947453][ T5325] ? __fget_files+0x2a/0x420 [ 84.947464][ T5325] ? __fget_files+0x3a0/0x420 [ 84.947472][ T5325] ? __fget_files+0x2a/0x420 [ 84.947482][ T5325] ? bpf_lsm_file_ioctl+0x9/0x20 [ 84.947493][ T5325] ? __pfx_sock_ioctl+0x10/0x10 [ 84.947506][ T5325] __se_sys_ioctl+0xfc/0x170 [ 84.947520][ T5325] do_syscall_64+0xe2/0xf80 [ 84.947531][ T5325] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 84.947541][ T5325] ? trace_irq_disable+0x37/0x100 [ 84.947552][ T5325] ? clear_bhb_loop+0x60/0xb0 [ 84.947564][ T5325] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 84.947575][ T5325] RIP: 0033:0x7f520839aeb9 [ 84.947586][ T5325] Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48 [ 84.947595][ T5325] RSP: 002b:00007f5209290028 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 84.947607][ T5325] RAX: ffffffffffffffda RBX: 00007f5208615fa0 RCX: 00007f520839aeb9 [ 84.947613][ T5325] RDX: 0000000000000000 RSI: 00000000400448ca RDI: 000000000000000a [ 84.947618][ T5325] RBP: 00007f5208408c1f R08: 0000000000000000 R09: 0000000000000000 [ 84.947622][ T5325] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 84.947626][ T5325] R13: 00007f5208616038 R14: 00007f5208615fa0 R15: 00007ffde220ebf8 [ 84.947633][ T5325] [ 85.079104][ T5303] Bluetooth: hci0: command tx timeout [ 85.148137][ T5334] fido_id[5334]: Failed to open report descriptor at '/sys/devices/virtual/bluetooth/hci0/hci0:200/report_descriptor': No such file or directory [ 87.089055][ T5303] Bluetooth: hci0: command tx timeout [ 89.168496][ T5303] Bluetooth: hci0: command tx timeout