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) r1 = syz_init_net_socket$bt_hidp(0x1f, 0x3, 0x6) ioctl$sock_bt_hidp_HIDPCONNADD(r1, 0x400448c8, &(0x7f0000000280)={r0, r0, 0xc, 0x0, 0x0, 0x9, 0x1, 0x457, 0x9, 0x9, 0x1, 0x1, 'syz1\x00'}) (async, rerun: 32) r2 = syz_init_net_socket$bt_hci(0x1f, 0x3, 0x1) (rerun: 32) ioctl$sock_bt_hci(r2, 0x400448ca, 0x0) r3 = openat$cdrom(0xffffffffffffff9c, &(0x7f0000000080), 0x2000, 0x0) ioctl$CDROMPLAYBLK(r3, 0x5317, 0x0) (async, rerun: 32) socket$nl_generic(0x10, 0x3, 0x10) (async, rerun: 32) r4 = socket$inet_udplite(0x2, 0x2, 0x88) dup2(r4, 0xffffffffffffffff) prctl$PR_SET_MM_MAP(0x23, 0xe, &(0x7f0000000080)={&(0x7f0000ff0000/0x1000)=nil, &(0x7f0000ffd000/0x3000)=nil, &(0x7f0000ffc000/0x4000)=nil, &(0x7f0000ffc000/0x4000)=nil, &(0x7f0000ff8000/0x4000)=nil, &(0x7f0000ffc000/0x4000)=nil, &(0x7f0000ffb000/0x3000)=nil, &(0x7f0000ffb000/0x3000)=nil, &(0x7f0000ffc000/0x3000)=nil, &(0x7f0000ffa000/0x1000)=nil, &(0x7f0000ffa000/0x2000)=nil, 0x0}, 0x68) (async) bpf$BPF_PROG_RAW_TRACEPOINT_LOAD(0x5, &(0x7f0000000200)={0x10, 0x4, &(0x7f0000000040)=ANY=[], &(0x7f0000000100)='GPL\x00', 0x0, 0x0, 0x0, 0x0, 0x0, '\x00', 0x0, 0xd}, 0x94) (async) sendmsg$NFT_BATCH(0xffffffffffffffff, &(0x7f0000000080)={0x0, 0x0, 0x0}, 0x24004045) (async) r5 = io_uring_setup(0x1b7b, &(0x7f0000000040)={0x0, 0x970, 0x1f480, 0x0, 0x399}) bpf$BPF_PROG_TEST_RUN(0xa, &(0x7f0000000000)={0xffffffffffffffff, 0x18000000000002a0, 0x0, 0x0, 0x0, 0x0, 0x500, 0x60000000, 0x0, 0x0, 0x0, 0x0, 0x2}, 0x50) (async, rerun: 64) io_uring_enter(r5, 0x8ae, 0x6933, 0x17, 0x0, 0xeffd) (async, rerun: 64) r6 = socket$inet6_udplite(0xa, 0x2, 0x88) r7 = socket$nl_route(0x10, 0x3, 0x0) ioctl$sock_SIOCGIFINDEX(r7, 0x8933, &(0x7f00000000c0)={'sit0\x00', 0x0}) ioctl$sock_inet6_SIOCSIFADDR(r6, 0x8916, &(0x7f0000000000)={@dev, 0x1, r8}) (async) syz_emit_ethernet(0x2a, &(0x7f0000000100)={@broadcast, @dev, @void, {@arp={0x806, @ether_ipv4={0x1, 0x800, 0x6, 0xffffffc1, 0x0, @link_local, @multicast1, @broadcast, @initdev={0xac, 0x1e, 0x0, 0x0}}}}}, 0x0) r9 = socket$packet(0x11, 0x3, 0x300) ioctl$ifreq_SIOCGIFINDEX_batadv_mesh(r9, 0x8933, &(0x7f0000000080)={'batadv0\x00', 0x0}) sendto$packet(r9, &(0x7f0000000100)="f257a8ea7bc273dfaeab96850806", 0x2a, 0x0, &(0x7f0000000200)={0x11, 0x0, r10, 0x1, 0x0, 0x6, @link_local}, 0x14) (async, rerun: 32) setsockopt$inet6_mreq(r6, 0x29, 0x1b, &(0x7f0000004c40)={@private1, r8}, 0x14) (rerun: 32) [ 85.591953][ T5343] input: Bluetooth HID Boot Protocol Device as /devices/virtual/bluetooth/hci0/hci0:200/input5 [ 85.713165][ T5344] [ 85.714278][ T5344] ====================================================== [ 85.717215][ T5344] WARNING: possible circular locking dependency detected [ 85.720238][ T5344] syzkaller #0 Not tainted [ 85.721949][ T5344] ------------------------------------------------------ [ 85.724707][ T5344] syz.0.0/5344 is trying to acquire lock: [ 85.726999][ T5344] ffff888011fb9040 ((work_completion)(&(&conn->info_timer)->work)){+.+.}-{0:0}, at: __flush_work+0x100/0xc50 [ 85.731944][ T5344] [ 85.731944][ T5344] but task is already holding lock: [ 85.735254][ T5344] ffff888011fb9338 (&conn->lock#2){+.+.}-{4:4}, at: l2cap_conn_del+0x7b/0x5b0 [ 85.739481][ T5344] [ 85.739481][ T5344] which lock already depends on the new lock. [ 85.739481][ T5344] [ 85.743971][ T5344] [ 85.743971][ T5344] the existing dependency chain (in reverse order) is: [ 85.747880][ T5344] [ 85.747880][ T5344] -> #1 (&conn->lock#2){+.+.}-{4:4}: [ 85.751117][ T5344] __mutex_lock+0x19f/0x1300 [ 85.753353][ T5344] l2cap_info_timeout+0x60/0xa0 [ 85.755706][ T5344] process_scheduled_works+0xaec/0x17a0 [ 85.758329][ T5344] worker_thread+0x89f/0xd90 [ 85.760580][ T5344] kthread+0x726/0x8b0 [ 85.762502][ T5344] ret_from_fork+0x51b/0xa40 [ 85.764756][ T5344] ret_from_fork_asm+0x1a/0x30 [ 85.767047][ T5344] [ 85.767047][ T5344] -> #0 ((work_completion)(&(&conn->info_timer)->work)){+.+.}-{0:0}: [ 85.771432][ T5344] __lock_acquire+0x15a5/0x2cf0 [ 85.773897][ T5344] lock_acquire+0x106/0x330 [ 85.776157][ T5344] __flush_work+0x700/0xc50 [ 85.778343][ T5344] __cancel_work_sync+0xbe/0x110 [ 85.780838][ T5344] l2cap_conn_del+0x402/0x5b0 [ 85.783160][ T5344] hci_conn_hash_flush+0x10d/0x260 [ 85.785810][ T5344] hci_dev_close_sync+0x821/0x10e0 [ 85.788435][ T5344] hci_dev_close+0x108/0x260 [ 85.790870][ T5344] sock_do_ioctl+0x101/0x320 [ 85.793224][ T5344] sock_ioctl+0x5c6/0x7f0 [ 85.795341][ T5344] __se_sys_ioctl+0xfc/0x170 [ 85.797448][ T5344] do_syscall_64+0xe2/0xf80 [ 85.799623][ T5344] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 85.802596][ T5344] [ 85.802596][ T5344] other info that might help us debug this: [ 85.802596][ T5344] [ 85.807127][ T5344] Possible unsafe locking scenario: [ 85.807127][ T5344] [ 85.810322][ T5344] CPU0 CPU1 [ 85.812805][ T5344] ---- ---- [ 85.815225][ T5344] lock(&conn->lock#2); [ 85.817239][ T5344] lock((work_completion)(&(&conn->info_timer)->work)); [ 85.821633][ T5344] lock(&conn->lock#2); [ 85.824554][ T5344] lock((work_completion)(&(&conn->info_timer)->work)); [ 85.827586][ T5344] [ 85.827586][ T5344] *** DEADLOCK *** [ 85.827586][ T5344] [ 85.831131][ T5344] 5 locks held by syz.0.0/5344: [ 85.833262][ T5344] #0: ffff888036274ec0 (&hdev->req_lock){+.+.}-{4:4}, at: hci_dev_close+0x100/0x260 [ 85.837135][ T5344] #1: ffff8880362740c0 (&hdev->lock){+.+.}-{4:4}, at: hci_dev_close_sync+0x640/0x10e0 [ 85.841237][ T5344] #2: ffffffff8f936e88 (hci_cb_list_lock){+.+.}-{4:4}, at: hci_conn_hash_flush+0xa1/0x260 [ 85.845422][ T5344] #3: ffff888011fb9338 (&conn->lock#2){+.+.}-{4:4}, at: l2cap_conn_del+0x7b/0x5b0 [ 85.849506][ T5344] #4: ffffffff8e35a360 (rcu_read_lock){....}-{1:3}, at: __flush_work+0x100/0xc50 [ 85.853670][ T5344] [ 85.853670][ T5344] stack backtrace: [ 85.856338][ T5344] CPU: 0 UID: 0 PID: 5344 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full) [ 85.856353][ T5344] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 85.856361][ T5344] Call Trace: [ 85.856369][ T5344] [ 85.856375][ T5344] dump_stack_lvl+0xe8/0x150 [ 85.856397][ T5344] print_circular_bug+0x2e1/0x300 [ 85.856415][ T5344] check_noncircular+0x12e/0x150 [ 85.856429][ T5344] __lock_acquire+0x15a5/0x2cf0 [ 85.856443][ T5344] ? do_raw_spin_lock+0x12b/0x2f0 [ 85.856461][ T5344] ? __flush_work+0x100/0xc50 [ 85.856474][ T5344] lock_acquire+0x106/0x330 [ 85.856484][ T5344] ? __flush_work+0x100/0xc50 [ 85.856498][ T5344] ? __flush_work+0x100/0xc50 [ 85.856509][ T5344] __flush_work+0x700/0xc50 [ 85.856521][ T5344] ? __flush_work+0x100/0xc50 [ 85.856532][ T5344] ? __flush_work+0x100/0xc50 [ 85.856544][ T5344] ? __pfx___flush_work+0x10/0x10 [ 85.856556][ T5344] ? __pfx_wq_barrier_func+0x10/0x10 [ 85.856571][ T5344] ? __cancel_work_sync+0x5c/0x110 [ 85.856585][ T5344] __cancel_work_sync+0xbe/0x110 [ 85.856599][ T5344] l2cap_conn_del+0x402/0x5b0 [ 85.856616][ T5344] ? __pfx_l2cap_disconn_cfm+0x10/0x10 [ 85.856628][ T5344] hci_conn_hash_flush+0x10d/0x260 [ 85.856644][ T5344] hci_dev_close_sync+0x821/0x10e0 [ 85.856658][ T5344] ? __pfx_hci_dev_close_sync+0x10/0x10 [ 85.856669][ T5344] ? lockdep_hardirqs_on+0x7a/0x110 [ 85.856682][ T5344] ? enable_work+0x1e9/0x220 [ 85.856696][ T5344] hci_dev_close+0x108/0x260 [ 85.856707][ T5344] sock_do_ioctl+0x101/0x320 [ 85.856719][ T5344] ? __pfx_sock_do_ioctl+0x10/0x10 [ 85.856728][ T5344] ? do_futex+0x395/0x420 [ 85.856742][ T5344] sock_ioctl+0x5c6/0x7f0 [ 85.856752][ T5344] ? __pfx_sock_ioctl+0x10/0x10 [ 85.856760][ T5344] ? __fget_files+0x2a/0x420 [ 85.856772][ T5344] ? __fget_files+0x3a0/0x420 [ 85.856783][ T5344] ? __fget_files+0x2a/0x420 [ 85.856794][ T5344] ? bpf_lsm_file_ioctl+0x9/0x20 [ 85.856805][ T5344] ? __pfx_sock_ioctl+0x10/0x10 [ 85.856814][ T5344] __se_sys_ioctl+0xfc/0x170 [ 85.856830][ T5344] do_syscall_64+0xe2/0xf80 [ 85.856846][ T5344] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 85.856856][ T5344] ? trace_irq_disable+0x37/0x100 [ 85.856869][ T5344] ? clear_bhb_loop+0x60/0xb0 [ 85.856881][ T5344] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 85.856892][ T5344] RIP: 0033:0x7f69b0b9acb9 [ 85.856904][ T5344] 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 [ 85.856913][ T5344] RSP: 002b:00007f69b1a25028 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 85.856925][ T5344] RAX: ffffffffffffffda RBX: 00007f69b0e16090 RCX: 00007f69b0b9acb9 [ 85.856933][ T5344] RDX: 0000000000000000 RSI: 00000000400448ca RDI: 0000000000000006 [ 85.856939][ T5344] RBP: 00007f69b0c08bf7 R08: 0000000000000000 R09: 0000000000000000 [ 85.856945][ T5344] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 85.856951][ T5344] R13: 00007f69b0e16128 R14: 00007f69b0e16090 R15: 00007ffede008168 [ 85.856962][ T5344] [ 86.003393][ T4685] Bluetooth: hci0: command tx timeout [ 88.007937][ T4685] Bluetooth: hci0: command tx timeout [ 90.088716][ T4685] Bluetooth: hci0: command tx timeout [ 91.770661][ T797] cfg80211: failed to load regulatory.db