program: bpf$PROG_LOAD(0x5, &(0x7f0000000640)={0xc, 0xe, &(0x7f0000001f80)=ANY=[], &(0x7f0000000240)='syzkaller\x00', 0x0, 0x0, 0x0, 0x0, 0x0, '\x00', 0x0, @fallback=0xa, 0xffffffffffffffff, 0x8, &(0x7f0000000000), 0x8, 0x10, &(0x7f0000000000)={0x0, 0xa}, 0x10}, 0x94) 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 = socket$packet(0x11, 0x3, 0x300) syz_genetlink_get_family_id$nl80211(&(0x7f0000000200), 0xffffffffffffffff) r2 = bpf$MAP_CREATE_TAIL_CALL(0x0, &(0x7f0000000580)=ANY=[@ANYBLOB="0300000004000000040000000a00000000000000", @ANYRES32=0x1, @ANYBLOB='\x00'/20, @ANYRES32=0x0, @ANYRES32, @ANYBLOB="0000030000000800001282000000000000fe91c3da401f286b0021cd5d52330000000000e60008000000"], 0x48) bpf$MAP_LOOKUP_ELEM(0x1, &(0x7f0000000f40)={r2, &(0x7f0000000200), 0x0}, 0x20) ioctl$sock_ipv6_tunnel_SIOCDELTUNNEL(0xffffffffffffffff, 0x89f2, &(0x7f00000001c0)={'syztnl1\x00', &(0x7f0000000100)={'syztnl1\x00', 0x0, 0x29, 0x4, 0x6, 0x200, 0x0, @private2={0xfc, 0x2, '\x00', 0x1}, @mcast2, 0x7, 0x7800, 0xecb, 0xfff}}) bind$packet(r1, &(0x7f0000000380)={0x11, 0x6, r3, 0x1, 0x40}, 0x14) r4 = syz_init_net_socket$bt_hidp(0x1f, 0x3, 0x6) ioctl$sock_bt_hidp_HIDPCONNADD(r4, 0x400448c8, &(0x7f0000000280)={r0, r0, 0xc, 0x1, &(0x7f0000000340)='\x00', 0x9, 0x1, 0x457, 0x9, 0x9, 0x1, 0x1, 'syz1\x00'}) syz_usb_connect$hid(0x0, 0x36, &(0x7f00000000c0)=ANY=[@ANYBLOB="1201000000000040341a02080000000000010902", @ANYRES8=r0, @ANYRESDEC=r2], 0x0) r5 = syz_init_net_socket$bt_l2cap(0x1f, 0x1, 0x0) bind$bt_l2cap(r5, &(0x7f0000000500)={0x1f, 0x0, @fixed={'\xaa\xaa\xaa\xaa\xaa', 0x12}, 0x4, 0x1}, 0xe) listen(r5, 0x3) r6 = openat$kvm(0xffffffffffffff9c, &(0x7f0000000100), 0x0, 0x0) r7 = ioctl$KVM_CREATE_VM(r6, 0xae01, 0x0) r8 = ioctl$KVM_CREATE_VCPU(r7, 0xae41, 0x0) syz_kvm_setup_cpu$x86(0xffffffffffffffff, r8, &(0x7f0000000000/0x18000)=nil, &(0x7f0000000140)=[@text64={0x40, 0x0}], 0x1, 0x74, 0x0, 0x0) syz_emit_vhci(&(0x7f0000000540)=ANY=[@ANYBLOB="043e1f0a"], 0x22) syz_clone(0x11, 0x0, 0x0, 0x0, 0x0, 0x0) r9 = syz_open_dev$usbmon(&(0x7f0000000140), 0x0, 0xc0041) poll(&(0x7f0000000180)=[{r9, 0x2140}], 0x1, 0x9) openat$snapshot(0xffffffffffffff9c, &(0x7f0000000040), 0x800, 0x0) r10 = openat$uhid(0xffffffffffffff9c, &(0x7f00000004c0), 0x2, 0x0) close_range(r10, 0xffffffffffffffff, 0x2) syz_open_dev$hidraw(&(0x7f0000000080), 0x0, 0x202) write$UHID_DESTROY(r10, &(0x7f0000000040), 0x4) syz_usb_connect(0x0, 0x36, &(0x7f00000003c0)=ANY=[@ANYRESHEX=r2, @ANYRES64=r4], 0x0) syz_open_dev$midi(&(0x7f0000000000), 0x3, 0x88c02) [ 84.766780][ T4667] Bluetooth: hci0: command tx timeout [ 84.853513][ T5321] hid-multitouch 0005:0457:0009.0002: unknown main item tag 0x0 [ 84.869622][ T5321] hid-multitouch 0005:0457:0009.0002: hidraw1: BLUETOOTH HID v0.09 Device [syz1] on aa:aa:aa:aa:aa:aa [ 85.117980][ T4844] usb 5-1: new high-speed USB device number 2 using dummy_hcd [ 85.270985][ T4844] usb 5-1: config index 0 descriptor too short (expected 12548, got 36) [ 85.274625][ T4844] usb 5-1: config 52 has too many interfaces: 56, using maximum allowed: 32 [ 85.279214][ T4844] usb 5-1: config 52 has an invalid descriptor of length 52, skipping remainder of the config [ 85.283565][ T4844] usb 5-1: config 52 has 0 interfaces, different from the descriptor's value: 56 [ 85.287180][ T4844] usb 5-1: New USB device found, idVendor=1a34, idProduct=0802, bcdDevice= 0.00 [ 85.291545][ T4844] usb 5-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0 [ 85.742609][ T5328] Bluetooth: hci0: Opcode 0x0c1a failed: -4 [ 85.745809][ T5328] Bluetooth: hci0: Opcode 0x0406 failed: -4 [ 85.787441][ T5328] [ 85.788653][ T5328] ====================================================== [ 85.791621][ T5328] WARNING: possible circular locking dependency detected [ 85.794754][ T5328] syzkaller #0 Not tainted [ 85.796727][ T5328] ------------------------------------------------------ [ 85.799727][ T5328] syz.0.0/5328 is trying to acquire lock: [ 85.802074][ T5328] ffff8880509ca040 ((work_completion)(&(&conn->info_timer)->work)){+.+.}-{0:0}, at: __flush_work+0xd2/0xbc0 [ 85.807421][ T5328] [ 85.807421][ T5328] but task is already holding lock: [ 85.810823][ T5328] ffff8880509ca338 (&conn->lock#2){+.+.}-{4:4}, at: l2cap_conn_del+0x70/0x680 [ 85.814578][ T5328] [ 85.814578][ T5328] which lock already depends on the new lock. [ 85.814578][ T5328] [ 85.818944][ T5328] [ 85.818944][ T5328] the existing dependency chain (in reverse order) is: [ 85.823563][ T5328] [ 85.823563][ T5328] -> #1 (&conn->lock#2){+.+.}-{4:4}: [ 85.827286][ T5328] lock_acquire+0x120/0x360 [ 85.829685][ T5328] __mutex_lock+0x187/0x1350 [ 85.831934][ T5328] l2cap_info_timeout+0x60/0xa0 [ 85.834332][ T5328] process_scheduled_works+0xae1/0x17b0 [ 85.836932][ T5328] worker_thread+0x8a0/0xda0 [ 85.839451][ T5328] kthread+0x711/0x8a0 [ 85.841441][ T5328] ret_from_fork+0x4bc/0x870 [ 85.843686][ T5328] ret_from_fork_asm+0x1a/0x30 [ 85.845880][ T5328] [ 85.845880][ T5328] -> #0 ((work_completion)(&(&conn->info_timer)->work)){+.+.}-{0:0}: [ 85.850424][ T5328] validate_chain+0xb9b/0x2140 [ 85.852769][ T5328] __lock_acquire+0xab9/0xd20 [ 85.855328][ T5328] lock_acquire+0x120/0x360 [ 85.857609][ T5328] __flush_work+0x6b8/0xbc0 [ 85.859766][ T5328] __cancel_work_sync+0xbe/0x110 [ 85.862078][ T5328] l2cap_conn_del+0x4f0/0x680 [ 85.864415][ T5328] l2cap_connect_cfm+0x11d/0x1040 [ 85.866943][ T5328] hci_conn_failed+0x1ce/0x310 [ 85.869474][ T5328] hci_abort_conn_sync+0x658/0xe30 [ 85.871962][ T5328] hci_disconnect_all_sync+0x1b5/0x350 [ 85.874810][ T5328] hci_suspend_sync+0x3fc/0xc60 [ 85.877106][ T5328] hci_suspend_dev+0x28d/0x4d0 [ 85.879429][ T5328] hci_suspend_notifier+0xf2/0x290 [ 85.881706][ T5328] notifier_call_chain+0x1b6/0x3e0 [ 85.883860][ T5328] blocking_notifier_call_chain_robust+0x85/0x100 [ 85.886892][ T5328] pm_notifier_call_chain_robust+0x2c/0x60 [ 85.889761][ T5328] snapshot_open+0x19c/0x280 [ 85.892314][ T5328] misc_open+0x2d5/0x350 [ 85.894435][ T5328] chrdev_open+0x4cc/0x5e0 [ 85.896577][ T5328] do_dentry_open+0x953/0x13f0 [ 85.898817][ T5328] vfs_open+0x3b/0x340 [ 85.900826][ T5328] path_openat+0x2ee5/0x3830 [ 85.903076][ T5328] do_filp_open+0x1fa/0x410 [ 85.905324][ T5328] do_sys_openat2+0x121/0x1c0 [ 85.907296][ T5328] __x64_sys_openat+0x138/0x170 [ 85.909839][ T5328] do_syscall_64+0xfa/0xfa0 [ 85.912699][ T5328] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 85.915382][ T5328] [ 85.915382][ T5328] other info that might help us debug this: [ 85.915382][ T5328] [ 85.919797][ T5328] Possible unsafe locking scenario: [ 85.919797][ T5328] [ 85.923077][ T5328] CPU0 CPU1 [ 85.925203][ T5328] ---- ---- [ 85.927287][ T5328] lock(&conn->lock#2); [ 85.929084][ T5328] lock((work_completion)(&(&conn->info_timer)->work)); [ 85.933192][ T5328] lock(&conn->lock#2); [ 85.935946][ T5328] lock((work_completion)(&(&conn->info_timer)->work)); [ 85.938816][ T5328] [ 85.938816][ T5328] *** DEADLOCK *** [ 85.938816][ T5328] [ 85.942069][ T5328] 8 locks held by syz.0.0/5328: [ 85.944235][ T5328] #0: ffffffff8e776fc8 (misc_mtx){+.+.}-{4:4}, at: misc_open+0x51/0x350 [ 85.947955][ T5328] #1: ffffffff8dded0a8 (system_transition_mutex){+.+.}-{4:4}, at: lock_system_sleep+0x4a/0x70 [ 85.952164][ T5328] #2: ffffffff8de107b0 ((pm_chain_head).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain_robust+0x65/0x100 [ 85.957413][ T5328] #3: ffff888033914dc8 (&hdev->req_lock){+.+.}-{4:4}, at: hci_suspend_dev+0x285/0x4d0 [ 85.961451][ T5328] #4: ffff8880339140b8 (&hdev->lock){+.+.}-{4:4}, at: hci_abort_conn_sync+0x242/0xe30 [ 85.965485][ T5328] #5: ffffffff8f437268 (hci_cb_list_lock){+.+.}-{4:4}, at: hci_conn_failed+0x165/0x310 [ 85.969812][ T5328] #6: ffff8880509ca338 (&conn->lock#2){+.+.}-{4:4}, at: l2cap_conn_del+0x70/0x680 [ 85.973932][ T5328] #7: ffffffff8df3d2e0 (rcu_read_lock){....}-{1:3}, at: __flush_work+0xd2/0xbc0 [ 85.977562][ T5328] [ 85.977562][ T5328] stack backtrace: [ 85.980498][ T5328] CPU: 0 UID: 0 PID: 5328 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full) [ 85.980513][ T5328] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 [ 85.980521][ T5328] Call Trace: [ 85.980527][ T5328] [ 85.980531][ T5328] dump_stack_lvl+0x189/0x250 [ 85.980545][ T5328] ? __pfx_dump_stack_lvl+0x10/0x10 [ 85.980558][ T5328] ? __pfx__printk+0x10/0x10 [ 85.980569][ T5328] ? print_lock_name+0xde/0x100 [ 85.980580][ T5328] print_circular_bug+0x2ee/0x310 [ 85.980594][ T5328] check_noncircular+0x134/0x160 [ 85.980608][ T5328] validate_chain+0xb9b/0x2140 [ 85.980620][ T5328] ? do_raw_spin_lock+0x121/0x290 [ 85.980633][ T5328] ? look_up_lock_class+0x74/0x170 [ 85.980645][ T5328] ? register_lock_class+0x51/0x320 [ 85.980657][ T5328] __lock_acquire+0xab9/0xd20 [ 85.980668][ T5328] ? __flush_work+0xd2/0xbc0 [ 85.980681][ T5328] lock_acquire+0x120/0x360 [ 85.980692][ T5328] ? __flush_work+0xd2/0xbc0 [ 85.980705][ T5328] ? __flush_work+0xd2/0xbc0 [ 85.980717][ T5328] __flush_work+0x6b8/0xbc0 [ 85.980729][ T5328] ? __flush_work+0xd2/0xbc0 [ 85.980741][ T5328] ? __flush_work+0xd2/0xbc0 [ 85.980753][ T5328] ? __pfx___flush_work+0x10/0x10 [ 85.980765][ T5328] ? __pfx_wq_barrier_func+0x10/0x10 [ 85.980774][ T5328] ? __pfx___cancel_work+0x10/0x10 [ 85.980782][ T5328] ? hci_conn_drop+0x14d/0x280 [ 85.980792][ T5328] __cancel_work_sync+0xbe/0x110 [ 85.980803][ T5328] l2cap_conn_del+0x4f0/0x680 [ 85.980821][ T5328] l2cap_connect_cfm+0x11d/0x1040 [ 85.980835][ T5328] ? __pfx_l2cap_connect_cfm+0x10/0x10 [ 85.980850][ T5328] ? __pfx_l2cap_connect_cfm+0x10/0x10 [ 85.980861][ T5328] hci_conn_failed+0x1ce/0x310 [ 85.980874][ T5328] ? hci_abort_conn_sync+0x24e/0xe30 [ 85.980887][ T5328] hci_abort_conn_sync+0x658/0xe30 [ 85.980900][ T5328] ? __lock_acquire+0xab9/0xd20 [ 85.980911][ T5328] ? __pfx_hci_abort_conn_sync+0x10/0x10 [ 85.980923][ T5328] ? hci_disconnect_all_sync+0x2e/0x350 [ 85.980936][ T5328] ? hci_disconnect_all_sync+0x2e/0x350 [ 85.980950][ T5328] ? hci_disconnect_all_sync+0x2e/0x350 [ 85.980963][ T5328] hci_disconnect_all_sync+0x1b5/0x350 [ 85.980977][ T5328] hci_suspend_sync+0x3fc/0xc60 [ 85.980991][ T5328] ? __pfx___mutex_lock+0x10/0x10 [ 85.981004][ T5328] ? enable_work+0x258/0x2c0 [ 85.981016][ T5328] ? __pfx_hci_suspend_sync+0x10/0x10 [ 85.981029][ T5328] ? mgmt_pending_find+0x152/0x170 [ 85.981042][ T5328] ? hci_cmd_sync_cancel_sync+0xc9/0x190 [ 85.981052][ T5328] hci_suspend_dev+0x28d/0x4d0 [ 85.981064][ T5328] ? __pfx_hci_suspend_dev+0x10/0x10 [ 85.981074][ T5328] ? rcu_barrier+0x474/0x570 [ 85.981090][ T5328] hci_suspend_notifier+0xf2/0x290 [ 85.981101][ T5328] notifier_call_chain+0x1b6/0x3e0 [ 85.981114][ T5328] blocking_notifier_call_chain_robust+0x85/0x100 [ 85.981127][ T5328] pm_notifier_call_chain_robust+0x2c/0x60 [ 85.981138][ T5328] snapshot_open+0x19c/0x280 [ 85.981149][ T5328] ? __pfx_snapshot_open+0x10/0x10 [ 85.981159][ T5328] misc_open+0x2d5/0x350 [ 85.981170][ T5328] chrdev_open+0x4cc/0x5e0 [ 85.981185][ T5328] ? __pfx_chrdev_open+0x10/0x10 [ 85.981200][ T5328] ? fsnotify_open_perm_and_set_mode+0x113/0x610 [ 85.981216][ T5328] ? __pfx_chrdev_open+0x10/0x10 [ 85.981228][ T5328] do_dentry_open+0x953/0x13f0 [ 85.981247][ T5328] vfs_open+0x3b/0x340 [ 85.981255][ T5328] ? path_openat+0x2ecd/0x3830 [ 85.981266][ T5328] path_openat+0x2ee5/0x3830 [ 85.981289][ T5328] ? __pfx___kfence_alloc+0x10/0x10 [ 85.981297][ T5328] ? __kfence_alloc+0x2b2/0x3b0 [ 85.981306][ T5328] ? do_sys_openat2+0xbc/0x1c0 [ 85.981312][ T5328] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 85.981320][ T5328] ? __pfx_path_openat+0x10/0x10 [ 85.981329][ T5328] do_filp_open+0x1fa/0x410 [ 85.981336][ T5328] ? __lock_acquire+0xab9/0xd20 [ 85.981343][ T5328] ? __pfx_do_filp_open+0x10/0x10 [ 85.981352][ T5328] ? _raw_spin_unlock+0x28/0x50 [ 85.981359][ T5328] ? alloc_fd+0x64c/0x6c0 [ 85.981370][ T5328] do_sys_openat2+0x121/0x1c0 [ 85.981376][ T5328] ? __pfx_do_sys_openat2+0x10/0x10 [ 85.981384][ T5328] ? rcu_is_watching+0x15/0xb0 [ 85.981391][ T5328] __x64_sys_openat+0x138/0x170 [ 85.981398][ T5328] do_syscall_64+0xfa/0xfa0 [ 85.981407][ T5328] ? lockdep_hardirqs_on+0x9c/0x150 [ 85.981417][ T5328] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 85.981426][ T5328] ? clear_bhb_loop+0x60/0xb0 [ 85.981436][ T5328] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 85.981447][ T5328] RIP: 0033:0x7f2b9358efc9 [ 85.981458][ T5328] Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 a8 ff ff ff f7 d8 64 89 01 48 [ 85.981466][ T5328] RSP: 002b:00007f2b9445c038 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 [ 85.981479][ T5328] RAX: ffffffffffffffda RBX: 00007f2b937e5fa0 RCX: 00007f2b9358efc9 [ 85.981488][ T5328] RDX: 0000000000000800 RSI: 0000200000000040 RDI: ffffffffffffff9c [ 85.981495][ T5328] RBP: 00007f2b93611f91 R08: 0000000000000000 R09: 0000000000000000 [ 85.981502][ T5328] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 85.981508][ T5328] R13: 00007f2b937e6038 R14: 00007f2b937e5fa0 R15: 00007fffb849a228 [ 85.981519][ T5328] [ 86.728642][ T56] cfg80211: failed to load regulatory.db [ 87.687832][ T4667] Bluetooth: hci0: command 0x040f tx timeout [ 89.769927][ T4667] Bluetooth: hci0: command 0x040f tx timeout [ 90.328834][ T4844] usb 5-1: string descriptor 0 read error: -32