program: r0 = socket$nl_netfilter(0x10, 0x3, 0xc) r1 = syz_init_net_socket$bt_l2cap(0x1f, 0x2, 0x0) connect$bt_l2cap(r1, &(0x7f0000000080)={0x1f, 0x0, @fixed={'\xaa\xaa\xaa\xaa\xaa', 0x10}, 0x7ff}, 0xe) syz_usb_connect$cdc_ecm(0x0, 0x56, 0x0, 0x0) r2 = socket$inet_udp(0x2, 0x2, 0x0) r3 = socket$key(0xf, 0x3, 0x2) sendmsg$key(r3, &(0x7f0000000000)={0x40000000, 0x0, &(0x7f0000000040)={&(0x7f0000000240)=ANY=[@ANYBLOB="0207000902"], 0x10}}, 0x0) bind$inet(r2, &(0x7f00000001c0)={0x2, 0x0, @local}, 0x16) connect$inet(r2, &(0x7f0000000480)={0x2, 0x0, @multicast2}, 0x10) setsockopt$inet_IP_XFRM_POLICY(r2, 0x0, 0x11, &(0x7f00000002c0)={{{@in6=@dev, @in6=@dev={0xfe, 0x80, '\x00', 0x2b}, 0x0, 0x0, 0x4e23, 0x0, 0x2, 0x0, 0x0, 0x0, 0x0, 0xee01}, {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x9}, {0x0, 0x0, 0x0, 0xfffffffffffffffd}, 0x0, 0x0, 0x1}, {{@in6=@dev, 0x0, 0x33}, 0x0, @in=@private=0xa010100, 0x0, 0x0, 0x0, 0xb7, 0xffffffff}}, 0xe8) sendmmsg(r2, &(0x7f0000007fc0), 0x800001d, 0x0) r4 = syz_init_net_socket$bt_hidp(0x1f, 0x3, 0x6) ioctl$sock_bt_hidp_HIDPCONNADD(r4, 0x400448c8, &(0x7f0000000280)={r1, r1, 0xc, 0x1, &(0x7f0000000340)='\x00', 0x9, 0x1, 0x457, 0x9, 0x9, 0x1, 0x1, 'syz1\x00'}) openat$fb0(0xffffffffffffff9c, &(0x7f0000000240), 0x800, 0x0) r5 = syz_open_procfs(0x0, &(0x7f0000000000)='fd/3\x00') pwritev(r5, &(0x7f0000000080)=[{&(0x7f0000000300)="c7", 0x1}], 0x1, 0x7ffffd, 0x0) r6 = syz_init_net_socket$bt_hci(0x1f, 0x3, 0x1) ioctl$sock_bt_hci(r6, 0x400448ca, 0x0) sendmsg$NFT_BATCH(r0, &(0x7f000000c2c0)={0x0, 0x0, &(0x7f000000c280)={&(0x7f0000000540)=ANY=[@ANYBLOB="140000001000010000000000000000000000000a20000000000a01010000000000000000050000000900010073797a300000000054000000030a01030000000000000000050000000900010073797a30000000000900030073797a30000000002800048008000240000000001400030073797a5f74756e000000000000000000080001400000000014000000110001"], 0x9c}}, 0x0) syz_emit_ethernet(0x2b, &(0x7f0000000000)={@link_local, @random="a538ae464632", @void, {@ipv4={0x800, @igmp={{0x5, 0x4, 0x0, 0x0, 0x28, 0x0, 0x0, 0x0, 0x2, 0x0, @initdev={0xac, 0x1e, 0x0, 0x0}, @multicast1}, {0x11, 0x7c, 0x0, @multicast1, '\x00'}}}}}, 0x0) socket$nl_netfilter(0x10, 0x3, 0xc) (async) syz_init_net_socket$bt_l2cap(0x1f, 0x2, 0x0) (async) connect$bt_l2cap(r1, &(0x7f0000000080)={0x1f, 0x0, @fixed={'\xaa\xaa\xaa\xaa\xaa', 0x10}, 0x7ff}, 0xe) (async) syz_usb_connect$cdc_ecm(0x0, 0x56, 0x0, 0x0) (async) socket$inet_udp(0x2, 0x2, 0x0) (async) socket$key(0xf, 0x3, 0x2) (async) sendmsg$key(r3, &(0x7f0000000000)={0x40000000, 0x0, &(0x7f0000000040)={&(0x7f0000000240)=ANY=[@ANYBLOB="0207000902"], 0x10}}, 0x0) (async) bind$inet(r2, &(0x7f00000001c0)={0x2, 0x0, @local}, 0x16) (async) connect$inet(r2, &(0x7f0000000480)={0x2, 0x0, @multicast2}, 0x10) (async) setsockopt$inet_IP_XFRM_POLICY(r2, 0x0, 0x11, &(0x7f00000002c0)={{{@in6=@dev, @in6=@dev={0xfe, 0x80, '\x00', 0x2b}, 0x0, 0x0, 0x4e23, 0x0, 0x2, 0x0, 0x0, 0x0, 0x0, 0xee01}, {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x9}, {0x0, 0x0, 0x0, 0xfffffffffffffffd}, 0x0, 0x0, 0x1}, {{@in6=@dev, 0x0, 0x33}, 0x0, @in=@private=0xa010100, 0x0, 0x0, 0x0, 0xb7, 0xffffffff}}, 0xe8) (async) sendmmsg(r2, &(0x7f0000007fc0), 0x800001d, 0x0) (async) syz_init_net_socket$bt_hidp(0x1f, 0x3, 0x6) (async) ioctl$sock_bt_hidp_HIDPCONNADD(r4, 0x400448c8, &(0x7f0000000280)={r1, r1, 0xc, 0x1, &(0x7f0000000340)='\x00', 0x9, 0x1, 0x457, 0x9, 0x9, 0x1, 0x1, 'syz1\x00'}) (async) openat$fb0(0xffffffffffffff9c, &(0x7f0000000240), 0x800, 0x0) (async) syz_open_procfs(0x0, &(0x7f0000000000)='fd/3\x00') (async) pwritev(r5, &(0x7f0000000080)=[{&(0x7f0000000300)="c7", 0x1}], 0x1, 0x7ffffd, 0x0) (async) syz_init_net_socket$bt_hci(0x1f, 0x3, 0x1) (async) ioctl$sock_bt_hci(r6, 0x400448ca, 0x0) (async) sendmsg$NFT_BATCH(r0, &(0x7f000000c2c0)={0x0, 0x0, &(0x7f000000c280)={&(0x7f0000000540)=ANY=[@ANYBLOB="140000001000010000000000000000000000000a20000000000a01010000000000000000050000000900010073797a300000000054000000030a01030000000000000000050000000900010073797a30000000000900030073797a30000000002800048008000240000000001400030073797a5f74756e000000000000000000080001400000000014000000110001"], 0x9c}}, 0x0) (async) syz_emit_ethernet(0x2b, &(0x7f0000000000)={@link_local, @random="a538ae464632", @void, {@ipv4={0x800, @igmp={{0x5, 0x4, 0x0, 0x0, 0x28, 0x0, 0x0, 0x0, 0x2, 0x0, @initdev={0xac, 0x1e, 0x0, 0x0}, @multicast1}, {0x11, 0x7c, 0x0, @multicast1, '\x00'}}}}}, 0x0) (async) [ 86.177350][ T5301] Bluetooth: hci0: command tx timeout [ 86.368672][ T5317] hid-multitouch 0005:0457:0009.0002: unknown main item tag 0x0 [ 86.398418][ T5317] hid-multitouch 0005:0457:0009.0002: hidraw1: BLUETOOTH HID v0.09 Device [syz1] on aa:aa:aa:aa:aa:aa [ 86.622850][ T5330] [ 86.624065][ T5330] ====================================================== [ 86.627125][ T5330] WARNING: possible circular locking dependency detected [ 86.630599][ T5330] syzkaller #0 Not tainted [ 86.632513][ T5330] ------------------------------------------------------ [ 86.635548][ T5330] syz.0.0/5330 is trying to acquire lock: [ 86.638040][ T5330] ffff888044eec840 ((work_completion)(&(&conn->info_timer)->work)){+.+.}-{0:0}, at: __flush_work+0xd2/0xbc0 [ 86.643581][ T5330] [ 86.643581][ T5330] but task is already holding lock: [ 86.646701][ T5330] ffff888044eecb38 (&conn->lock#2){+.+.}-{4:4}, at: l2cap_conn_del+0x70/0x680 [ 86.650671][ T5330] [ 86.650671][ T5330] which lock already depends on the new lock. [ 86.650671][ T5330] [ 86.655050][ T5330] [ 86.655050][ T5330] the existing dependency chain (in reverse order) is: [ 86.658727][ T5330] [ 86.658727][ T5330] -> #1 (&conn->lock#2){+.+.}-{4:4}: [ 86.661935][ T5330] lock_acquire+0x120/0x360 [ 86.663941][ T5330] __mutex_lock+0x187/0x1350 [ 86.666055][ T5330] l2cap_info_timeout+0x60/0xa0 [ 86.668374][ T5330] process_scheduled_works+0xae1/0x17b0 [ 86.671314][ T5330] worker_thread+0x8a0/0xda0 [ 86.673825][ T5330] kthread+0x711/0x8a0 [ 86.676010][ T5330] ret_from_fork+0x4bc/0x870 [ 86.678256][ T5330] ret_from_fork_asm+0x1a/0x30 [ 86.680582][ T5330] [ 86.680582][ T5330] -> #0 ((work_completion)(&(&conn->info_timer)->work)){+.+.}-{0:0}: [ 86.685131][ T5330] validate_chain+0xb9b/0x2140 [ 86.687703][ T5330] __lock_acquire+0xab9/0xd20 [ 86.690112][ T5330] lock_acquire+0x120/0x360 [ 86.692269][ T5330] __flush_work+0x6b8/0xbc0 [ 86.694694][ T5330] __cancel_work_sync+0xbe/0x110 [ 86.697207][ T5330] l2cap_conn_del+0x4f0/0x680 [ 86.699452][ T5330] hci_conn_hash_flush+0x10d/0x230 [ 86.701832][ T5330] hci_dev_close_sync+0xaef/0x1330 [ 86.704168][ T5330] hci_dev_close+0x108/0x200 [ 86.706465][ T5330] sock_do_ioctl+0xdc/0x300 [ 86.708463][ T5330] sock_ioctl+0x576/0x790 [ 86.710310][ T5330] __se_sys_ioctl+0xfc/0x170 [ 86.712296][ T5330] do_syscall_64+0xfa/0xfa0 [ 86.714313][ T5330] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 86.716938][ T5330] [ 86.716938][ T5330] other info that might help us debug this: [ 86.716938][ T5330] [ 86.721151][ T5330] Possible unsafe locking scenario: [ 86.721151][ T5330] [ 86.723947][ T5330] CPU0 CPU1 [ 86.726252][ T5330] ---- ---- [ 86.728618][ T5330] lock(&conn->lock#2); [ 86.730440][ T5330] lock((work_completion)(&(&conn->info_timer)->work)); [ 86.734921][ T5330] lock(&conn->lock#2); [ 86.737778][ T5330] lock((work_completion)(&(&conn->info_timer)->work)); [ 86.740548][ T5330] [ 86.740548][ T5330] *** DEADLOCK *** [ 86.740548][ T5330] [ 86.743393][ T5330] 5 locks held by syz.0.0/5330: [ 86.745552][ T5330] #0: ffff888035cc0dc8 (&hdev->req_lock){+.+.}-{4:4}, at: hci_dev_close+0x100/0x200 [ 86.749146][ T5330] #1: ffff888035cc00b8 (&hdev->lock){+.+.}-{4:4}, at: hci_dev_close_sync+0x66a/0x1330 [ 86.752680][ T5330] #2: ffffffff8f437268 (hci_cb_list_lock){+.+.}-{4:4}, at: hci_conn_hash_flush+0xa1/0x230 [ 86.756507][ T5330] #3: ffff888044eecb38 (&conn->lock#2){+.+.}-{4:4}, at: l2cap_conn_del+0x70/0x680 [ 86.760246][ T5330] #4: ffffffff8df3d2e0 (rcu_read_lock){....}-{1:3}, at: __flush_work+0xd2/0xbc0 [ 86.764107][ T5330] [ 86.764107][ T5330] stack backtrace: [ 86.766841][ T5330] CPU: 0 UID: 0 PID: 5330 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full) [ 86.766857][ T5330] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 [ 86.766864][ T5330] Call Trace: [ 86.766871][ T5330] [ 86.766877][ T5330] dump_stack_lvl+0x189/0x250 [ 86.766895][ T5330] ? __pfx_dump_stack_lvl+0x10/0x10 [ 86.766904][ T5330] ? __pfx__printk+0x10/0x10 [ 86.766912][ T5330] ? print_lock_name+0xde/0x100 [ 86.766919][ T5330] print_circular_bug+0x2ee/0x310 [ 86.766929][ T5330] check_noncircular+0x134/0x160 [ 86.766938][ T5330] validate_chain+0xb9b/0x2140 [ 86.766946][ T5330] ? do_raw_spin_lock+0x121/0x290 [ 86.766958][ T5330] ? look_up_lock_class+0x74/0x170 [ 86.766971][ T5330] ? register_lock_class+0x51/0x320 [ 86.766981][ T5330] __lock_acquire+0xab9/0xd20 [ 86.766992][ T5330] ? __flush_work+0xd2/0xbc0 [ 86.767005][ T5330] lock_acquire+0x120/0x360 [ 86.767015][ T5330] ? __flush_work+0xd2/0xbc0 [ 86.767028][ T5330] ? _raw_spin_unlock_irq+0x23/0x50 [ 86.767040][ T5330] ? __flush_work+0xd2/0xbc0 [ 86.767052][ T5330] __flush_work+0x6b8/0xbc0 [ 86.767064][ T5330] ? __flush_work+0xd2/0xbc0 [ 86.767076][ T5330] ? __flush_work+0xd2/0xbc0 [ 86.767089][ T5330] ? __pfx___flush_work+0x10/0x10 [ 86.767102][ T5330] ? __pfx_wq_barrier_func+0x10/0x10 [ 86.767117][ T5330] ? __pfx___cancel_work+0x10/0x10 [ 86.767131][ T5330] ? hci_conn_drop+0x14d/0x280 [ 86.767141][ T5330] __cancel_work_sync+0xbe/0x110 [ 86.767153][ T5330] l2cap_conn_del+0x4f0/0x680 [ 86.767169][ T5330] ? __pfx_l2cap_disconn_cfm+0x10/0x10 [ 86.767184][ T5330] hci_conn_hash_flush+0x10d/0x230 [ 86.767202][ T5330] hci_dev_close_sync+0xaef/0x1330 [ 86.767219][ T5330] ? __pfx_hci_dev_close_sync+0x10/0x10 [ 86.767232][ T5330] ? do_raw_read_unlock+0x3d/0x80 [ 86.767246][ T5330] hci_dev_close+0x108/0x200 [ 86.767260][ T5330] sock_do_ioctl+0xdc/0x300 [ 86.767273][ T5330] ? __pfx_sock_do_ioctl+0x10/0x10 [ 86.767288][ T5330] sock_ioctl+0x576/0x790 [ 86.767299][ T5330] ? __pfx_sock_ioctl+0x10/0x10 [ 86.767310][ T5330] ? __fget_files+0x3a0/0x420 [ 86.767325][ T5330] ? __fget_files+0x2a/0x420 [ 86.767339][ T5330] ? bpf_lsm_file_ioctl+0x9/0x20 [ 86.767349][ T5330] ? __pfx_sock_ioctl+0x10/0x10 [ 86.767359][ T5330] __se_sys_ioctl+0xfc/0x170 [ 86.767371][ T5330] do_syscall_64+0xfa/0xfa0 [ 86.767384][ T5330] ? lockdep_hardirqs_on+0x9c/0x150 [ 86.767396][ T5330] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 86.767407][ T5330] ? clear_bhb_loop+0x60/0xb0 [ 86.767419][ T5330] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 86.767430][ T5330] RIP: 0033:0x7f12e8f8efc9 [ 86.767442][ T5330] 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 [ 86.767450][ T5330] RSP: 002b:00007f12e9d57038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 86.767463][ T5330] RAX: ffffffffffffffda RBX: 00007f12e91e6180 RCX: 00007f12e8f8efc9 [ 86.767471][ T5330] RDX: 0000000000000000 RSI: 00000000400448ca RDI: 000000000000000a [ 86.767477][ T5330] RBP: 00007f12e9011f91 R08: 0000000000000000 R09: 0000000000000000 [ 86.767484][ T5330] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 86.767491][ T5330] R13: 00007f12e91e6218 R14: 00007f12e91e6180 R15: 00007ffdb9519be8 [ 86.767503][ T5330] [ 86.920427][ T5333] fido_id[5333]: Failed to open report descriptor at '/sys/devices/virtual/bluetooth/hci0/hci0:200/report_descriptor': No such file or directory [ 86.958218][ T1359] cfg80211: failed to load regulatory.db [ 88.214023][ T4666] Bluetooth: hci0: command tx timeout [ 90.294676][ T4666] Bluetooth: hci0: command tx timeout [ 92.374290][ T4666] Bluetooth: hci0: command tx timeout