program: r0 = socket$nl_netfilter(0x10, 0x3, 0xc) sendmsg$IPSET_CMD_CREATE(r0, &(0x7f0000000240)={0x0, 0x0, &(0x7f0000000180)={&(0x7f0000000000)={0x4c, 0x2, 0x6, 0x801, 0xe4340000, 0x0, {}, [@IPSET_ATTR_PROTOCOL={0x5, 0x1, 0x6}, @IPSET_ATTR_SETNAME={0x9, 0x2, 'syz1\x00'}, @IPSET_ATTR_REVISION={0x5}, @IPSET_ATTR_FAMILY={0x5, 0x5, 0x2}, @IPSET_ATTR_TYPENAME={0x12, 0x3, 'hash:net,port\x00'}]}, 0x4c}}, 0x2) r1 = socket$nl_netfilter(0x10, 0x3, 0xc) sendmsg$NFT_BATCH(r1, &(0x7f0000007040)={0x0, 0x0, &(0x7f0000007000)={&(0x7f0000000000)={{0x14, 0x10, 0x1, 0x0, 0x0, {0x2}}, [@NFT_MSG_NEWTABLE={0x20, 0x0, 0xa, 0x101, 0x0, 0x0, {0xa}, [@NFTA_TABLE_NAME={0x9, 0x1, 'syz0\x00'}]}, @NFT_MSG_NEWTABLE={0x28, 0x0, 0xa, 0x801, 0x0, 0x0, {0xa}, [@NFTA_TABLE_NAME={0x9, 0x1, 'syz0\x00'}, @NFTA_TABLE_FLAGS={0x8, 0x2, 0x1, 0x0, 0x2}]}], {0x14}}, 0x70}}, 0x0) r2 = socket$nl_generic(0x10, 0x3, 0x10) r3 = syz_genetlink_get_family_id$nl80211(&(0x7f00000001c0), 0xffffffffffffffff) sendmsg$NL80211_CMD_SET_QOS_MAP(r2, &(0x7f00000004c0)={&(0x7f0000000140)={0x10, 0x0, 0x0, 0x20}, 0xc, &(0x7f0000000200)={&(0x7f0000000380)={0x8c, r3, 0x800, 0x70bd29, 0x25dfdbfc, {{}, {@val={0x8}, @void}}, [@NL80211_ATTR_QOS_MAP={0x14, 0xc7, {[{0xc2, 0x5}, {0x1, 0x3}, {0x7, 0x6}, {0x3, 0x5}], "a9f05187df331c0e"}}, @NL80211_ATTR_QOS_MAP={0x26, 0xc7, {[{0x9, 0x6}, {0x5, 0x6}, {0xb, 0x3}, {0x4}, {0x7, 0x3}, {0x4, 0x5}, {0x8}, {0x1, 0x1}, {0x6, 0x1}, {0x0, 0x5}, {0x1, 0x2}, {0x9}, {0x8, 0x5}], "501d6ad87746b2fe"}}, @NL80211_ATTR_QOS_MAP={0xe, 0xc7, {[{0x0, 0x7}], "26387762ea648be7"}}, @NL80211_ATTR_QOS_MAP={0x14, 0xc7, {[{0x2, 0x5}, {0x8, 0x4}, {0x31, 0x3}, {0x9, 0x4}], "0725beae2f4c49c1"}}, @NL80211_ATTR_QOS_MAP={0x10, 0xc7, {[{0xfc, 0x3}, {0x9, 0x7}], "b85c5f37be60b917"}}]}, 0x8c}, 0x1, 0x0, 0x0, 0x800}, 0x0) r4 = openat$kvm(0xffffffffffffff9c, &(0x7f0000000080), 0x0, 0x0) r5 = ioctl$KVM_CREATE_VM(r4, 0xae01, 0x0) r6 = ioctl$KVM_CREATE_VCPU(r5, 0xae41, 0x2) ioctl$KVM_GET_MSRS_cpu(r6, 0xc008ae88, &(0x7f0000000100)={0x1, 0x0, [{0x611, 0x0, 0x7}]}) r7 = socket$nl_netfilter(0x10, 0x3, 0xc) sendmsg$IPSET_CMD_CREATE(r7, &(0x7f0000000040)={0x0, 0x0, &(0x7f0000000080)={&(0x7f0000000440)={0x48, 0x2, 0x6, 0x5, 0x0, 0x0, {}, [@IPSET_ATTR_REVISION={0x5}, @IPSET_ATTR_SETNAME={0x9, 0x2, 'syz2\x00'}, @IPSET_ATTR_FAMILY={0x5, 0x5, 0x2}, @IPSET_ATTR_PROTOCOL={0x5, 0x1, 0x6}, @IPSET_ATTR_TYPENAME={0x10, 0x3, 'hash:ip,mac\x00'}]}, 0x48}}, 0x0) r8 = socket$nl_netfilter(0x10, 0x3, 0xc) recvmsg(r8, &(0x7f0000001700)={0x0, 0x0, 0x0}, 0x10000) sendmsg$IPSET_CMD_LIST(r8, &(0x7f0000000100)={0x0, 0x0, &(0x7f00000000c0)={&(0x7f0000000040)={0x1c, 0x7, 0x6, 0x801, 0x0, 0x0, {0xa, 0x0, 0x4}, [@IPSET_ATTR_PROTOCOL={0x5}]}, 0x1c}, 0x1, 0x0, 0x0, 0x20000005}, 0x80) r9 = syz_init_net_socket$bt_l2cap(0x1f, 0x2, 0x0) connect$bt_l2cap(r9, &(0x7f0000000080)={0x1f, 0x0, @fixed={'\xaa\xaa\xaa\xaa\xaa', 0x10}, 0x7ff}, 0xe) r10 = syz_init_net_socket$bt_hidp(0x1f, 0x3, 0x6) ioctl$sock_bt_hidp_HIDPCONNADD(r10, 0x400448c8, &(0x7f0000000280)={r9, r9, 0xc, 0x1, &(0x7f0000000340)='\x00', 0x9, 0x1, 0x457, 0x9, 0x9, 0x1, 0x1, 'syz1\x00'}) r11 = socket$nl_xfrm(0x10, 0x3, 0x6) sendmsg$nl_xfrm(r11, &(0x7f0000000280)={0x0, 0x0, &(0x7f0000000180)={&(0x7f0000000200)=@delpolicy={0x5c, 0x14, 0x1, 0x0, 0x0, {{@in6=@rand_addr=' \x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02', @in6=@mcast2}}, [@sec_ctx={0xc, 0x8, {0x8, 0x8, 0x0, 0x0, 0xffffffffffffffa2}}]}, 0x5c}}, 0x0) r12 = syz_init_net_socket$bt_hci(0x1f, 0x3, 0x1) ioctl$sock_bt_hci(r12, 0x400448ca, 0x0) [ 85.768224][ T5296] hid-multitouch 0005:0457:0009.0002: unknown main item tag 0x0 [ 85.799086][ T5296] hid-multitouch 0005:0457:0009.0002: hidraw1: BLUETOOTH HID v0.09 Device [syz1] on aa:aa:aa:aa:aa:aa [ 85.828643][ T5328] [ 85.829867][ T5328] ====================================================== [ 85.832901][ T5328] WARNING: possible circular locking dependency detected [ 85.835624][ T5328] syzkaller #0 Not tainted [ 85.837610][ T5328] ------------------------------------------------------ [ 85.840642][ T5328] syz.0.0/5328 is trying to acquire lock: [ 85.843201][ T5328] ffff888040d53040 ((work_completion)(&(&conn->info_timer)->work)){+.+.}-{0:0}, at: __flush_work+0xd2/0xbc0 [ 85.848301][ T5328] [ 85.848301][ T5328] but task is already holding lock: [ 85.851549][ T5328] ffff888040d53338 (&conn->lock#2){+.+.}-{4:4}, at: l2cap_conn_del+0x70/0x680 [ 85.855556][ T5328] [ 85.855556][ T5328] which lock already depends on the new lock. [ 85.855556][ T5328] [ 85.860923][ T5328] [ 85.860923][ T5328] the existing dependency chain (in reverse order) is: [ 85.865004][ T5328] [ 85.865004][ T5328] -> #1 (&conn->lock#2){+.+.}-{4:4}: [ 85.869108][ T5328] lock_acquire+0x120/0x360 [ 85.871844][ T5328] __mutex_lock+0x187/0x1350 [ 85.874120][ T5328] l2cap_info_timeout+0x60/0xa0 [ 85.876607][ T5328] process_scheduled_works+0xae1/0x17b0 [ 85.879262][ T5328] worker_thread+0x8a0/0xda0 [ 85.881538][ T5328] kthread+0x711/0x8a0 [ 85.883449][ T5328] ret_from_fork+0x4bc/0x870 [ 85.885652][ T5328] ret_from_fork_asm+0x1a/0x30 [ 85.887977][ T5328] [ 85.887977][ T5328] -> #0 ((work_completion)(&(&conn->info_timer)->work)){+.+.}-{0:0}: [ 85.892447][ T5328] validate_chain+0xb9b/0x2140 [ 85.894672][ T5328] __lock_acquire+0xab9/0xd20 [ 85.897247][ T5328] lock_acquire+0x120/0x360 [ 85.899082][ T5328] __flush_work+0x6b8/0xbc0 [ 85.900986][ T5328] __cancel_work_sync+0xbe/0x110 [ 85.903448][ T5328] l2cap_conn_del+0x4f0/0x680 [ 85.905744][ T5328] hci_conn_hash_flush+0x10d/0x230 [ 85.908062][ T5328] hci_dev_close_sync+0xaef/0x1330 [ 85.910490][ T5328] hci_dev_close+0x108/0x200 [ 85.912721][ T5328] sock_do_ioctl+0xdc/0x300 [ 85.914747][ T5328] sock_ioctl+0x576/0x790 [ 85.916801][ T5328] __se_sys_ioctl+0xfc/0x170 [ 85.918910][ T5328] do_syscall_64+0xfa/0xfa0 [ 85.920978][ T5328] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 85.923719][ T5328] [ 85.923719][ T5328] other info that might help us debug this: [ 85.923719][ T5328] [ 85.928190][ T5328] Possible unsafe locking scenario: [ 85.928190][ T5328] [ 85.931367][ T5328] CPU0 CPU1 [ 85.933636][ T5328] ---- ---- [ 85.935974][ T5328] lock(&conn->lock#2); [ 85.937867][ T5328] lock((work_completion)(&(&conn->info_timer)->work)); [ 85.942044][ T5328] lock(&conn->lock#2); [ 85.944887][ T5328] lock((work_completion)(&(&conn->info_timer)->work)); [ 85.948204][ T5328] [ 85.948204][ T5328] *** DEADLOCK *** [ 85.948204][ T5328] [ 85.952019][ T5328] 5 locks held by syz.0.0/5328: [ 85.954208][ T5328] #0: ffff888042ed8dc8 (&hdev->req_lock){+.+.}-{4:4}, at: hci_dev_close+0x100/0x200 [ 85.958361][ T5328] #1: ffff888042ed80b8 (&hdev->lock){+.+.}-{4:4}, at: hci_dev_close_sync+0x66a/0x1330 [ 85.962565][ T5328] #2: ffffffff8f437268 (hci_cb_list_lock){+.+.}-{4:4}, at: hci_conn_hash_flush+0xa1/0x230 [ 85.967051][ T5328] #3: ffff888040d53338 (&conn->lock#2){+.+.}-{4:4}, at: l2cap_conn_del+0x70/0x680 [ 85.971145][ T5328] #4: ffffffff8df3d2e0 (rcu_read_lock){....}-{1:3}, at: __flush_work+0xd2/0xbc0 [ 85.975157][ T5328] [ 85.975157][ T5328] stack backtrace: [ 85.977817][ T5328] CPU: 0 UID: 0 PID: 5328 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full) [ 85.977834][ T5328] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 [ 85.977841][ T5328] Call Trace: [ 85.977847][ T5328] [ 85.977854][ T5328] dump_stack_lvl+0x189/0x250 [ 85.977873][ T5328] ? __pfx_dump_stack_lvl+0x10/0x10 [ 85.977887][ T5328] ? __pfx__printk+0x10/0x10 [ 85.977898][ T5328] ? print_lock_name+0xde/0x100 [ 85.977908][ T5328] print_circular_bug+0x2ee/0x310 [ 85.977922][ T5328] check_noncircular+0x134/0x160 [ 85.977935][ T5328] validate_chain+0xb9b/0x2140 [ 85.977946][ T5328] ? do_raw_spin_lock+0x121/0x290 [ 85.977961][ T5328] ? look_up_lock_class+0x74/0x170 [ 85.977974][ T5328] ? register_lock_class+0x51/0x320 [ 85.977985][ T5328] __lock_acquire+0xab9/0xd20 [ 85.977995][ T5328] ? __flush_work+0xd2/0xbc0 [ 85.978007][ T5328] lock_acquire+0x120/0x360 [ 85.978016][ T5328] ? __flush_work+0xd2/0xbc0 [ 85.978026][ T5328] ? _raw_spin_unlock_irq+0x23/0x50 [ 85.978037][ T5328] ? __flush_work+0xd2/0xbc0 [ 85.978046][ T5328] __flush_work+0x6b8/0xbc0 [ 85.978057][ T5328] ? __flush_work+0xd2/0xbc0 [ 85.978067][ T5328] ? __flush_work+0xd2/0xbc0 [ 85.978077][ T5328] ? __pfx___flush_work+0x10/0x10 [ 85.978089][ T5328] ? __pfx_wq_barrier_func+0x10/0x10 [ 85.978101][ T5328] ? __pfx___cancel_work+0x10/0x10 [ 85.978113][ T5328] ? hci_conn_drop+0x14d/0x280 [ 85.978125][ T5328] __cancel_work_sync+0xbe/0x110 [ 85.978137][ T5328] l2cap_conn_del+0x4f0/0x680 [ 85.978152][ T5328] ? __pfx_l2cap_disconn_cfm+0x10/0x10 [ 85.978165][ T5328] hci_conn_hash_flush+0x10d/0x230 [ 85.978181][ T5328] hci_dev_close_sync+0xaef/0x1330 [ 85.978196][ T5328] ? __pfx_hci_dev_close_sync+0x10/0x10 [ 85.978209][ T5328] ? do_raw_read_unlock+0x3d/0x80 [ 85.978223][ T5328] hci_dev_close+0x108/0x200 [ 85.978236][ T5328] sock_do_ioctl+0xdc/0x300 [ 85.978248][ T5328] ? __pfx_sock_do_ioctl+0x10/0x10 [ 85.978263][ T5328] sock_ioctl+0x576/0x790 [ 85.978273][ T5328] ? __pfx_sock_ioctl+0x10/0x10 [ 85.978283][ T5328] ? __fget_files+0x3a0/0x420 [ 85.978297][ T5328] ? __fget_files+0x2a/0x420 [ 85.978312][ T5328] ? bpf_lsm_file_ioctl+0x9/0x20 [ 85.978322][ T5328] ? __pfx_sock_ioctl+0x10/0x10 [ 85.978330][ T5328] __se_sys_ioctl+0xfc/0x170 [ 85.978343][ T5328] do_syscall_64+0xfa/0xfa0 [ 85.978355][ T5328] ? lockdep_hardirqs_on+0x9c/0x150 [ 85.978365][ T5328] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 85.978373][ T5328] ? clear_bhb_loop+0x60/0xb0 [ 85.978383][ T5328] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 85.978394][ T5328] RIP: 0033:0x7f76ad78efc9 [ 85.978405][ 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.978413][ T5328] RSP: 002b:00007f76ae5f3038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 85.978430][ T5328] RAX: ffffffffffffffda RBX: 00007f76ad9e5fa0 RCX: 00007f76ad78efc9 [ 85.978437][ T5328] RDX: 0000000000000000 RSI: 00000000400448ca RDI: 000000000000000f [ 85.978447][ T5328] RBP: 00007f76ad811f91 R08: 0000000000000000 R09: 0000000000000000 [ 85.978454][ T5328] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 85.978460][ T5328] R13: 00007f76ad9e6038 R14: 00007f76ad9e5fa0 R15: 00007ffdff382fe8 [ 85.978470][ T5328] [ 86.126180][ T5305] Bluetooth: hci0: command tx timeout [ 86.164863][ T5331] fido_id[5331]: Failed to open report descriptor at '/sys/devices/virtual/bluetooth/hci0/hci0:200/report_descriptor': No such file or directory [ 86.667771][ T10] cfg80211: failed to load regulatory.db [ 88.183272][ T5305] Bluetooth: hci0: command tx timeout [ 90.262647][ T5305] Bluetooth: hci0: command tx timeout