program: r0 = syz_init_net_socket$bt_hci(0x1f, 0x3, 0x1) 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) r2 = syz_init_net_socket$bt_hidp(0x1f, 0x3, 0x6) ioctl$sock_bt_hidp_HIDPCONNADD(r2, 0x400448c8, &(0x7f0000000340)={r1, r1, 0x8, 0x0, 0x0, 0x9, 0x4, 0x46d, 0xa0e, 0x8b, 0x2, 0x7, 'syz1\x00'}) r3 = socket$nl_route(0x10, 0x3, 0x0) sendmsg$nl_route(r3, &(0x7f0000000280)={0x0, 0x0, &(0x7f0000000140)={&(0x7f0000000000)=@newlink={0x44, 0x10, 0x421, 0x0, 0x0, {}, [@IFLA_LINKINFO={0x24, 0x12, 0x0, 0x1, @bond={{0x9}, {0x14, 0x2, 0x0, 0x1, [@IFLA_BOND_ARP_INTERVAL={0x8, 0x7, 0x8000}, @IFLA_BOND_MIIMON={0x8, 0x3, 0x1000002}]}}}]}, 0x44}}, 0x0) (async) ioctl$sock_bt_hci(r0, 0x400448ca, 0x0) [ 77.496893][ T5297] Bluetooth: hci0: command tx timeout [ 77.501220][ T1310] ieee802154 phy0 wpan0: encryption failed: -22 [ 77.503922][ T1310] ieee802154 phy1 wpan1: encryption failed: -22 [ 77.586340][ T5314] input: Bluetooth HID Boot Protocol Device as /devices/virtual/bluetooth/hci0/hci0:200/input5 [ 77.664731][ T5317] [ 77.665624][ T5317] ====================================================== [ 77.668094][ T5317] WARNING: possible circular locking dependency detected [ 77.670548][ T5317] 6.15.0-rc4-syzkaller-00011-gf15d97df5afa #0 Not tainted [ 77.673309][ T5317] ------------------------------------------------------ [ 77.676203][ T5317] syz.0.0/5317 is trying to acquire lock: [ 77.678544][ T5317] ffff88801bb84040 ((work_completion)(&(&conn->info_timer)->work)){+.+.}-{0:0}, at: __flush_work+0xd2/0xbc0 [ 77.683233][ T5317] [ 77.683233][ T5317] but task is already holding lock: [ 77.686178][ T5317] ffff88801bb84338 (&conn->lock#2){+.+.}-{4:4}, at: l2cap_conn_del+0x70/0x680 [ 77.689714][ T5317] [ 77.689714][ T5317] which lock already depends on the new lock. [ 77.689714][ T5317] [ 77.693664][ T5317] [ 77.693664][ T5317] the existing dependency chain (in reverse order) is: [ 77.696935][ T5317] [ 77.696935][ T5317] -> #1 (&conn->lock#2){+.+.}-{4:4}: [ 77.699956][ T5317] lock_acquire+0x120/0x360 [ 77.701822][ T5317] __mutex_lock+0x182/0xe80 [ 77.703629][ T5317] l2cap_info_timeout+0x60/0xa0 [ 77.705526][ T5317] process_scheduled_works+0xadb/0x17a0 [ 77.707750][ T5317] worker_thread+0x8a0/0xda0 [ 77.709589][ T5317] kthread+0x70e/0x8a0 [ 77.711313][ T5317] ret_from_fork+0x4b/0x80 [ 77.713364][ T5317] ret_from_fork_asm+0x1a/0x30 [ 77.715419][ T5317] [ 77.715419][ T5317] -> #0 ((work_completion)(&(&conn->info_timer)->work)){+.+.}-{0:0}: [ 77.719336][ T5317] validate_chain+0xb9b/0x2140 [ 77.721559][ T5317] __lock_acquire+0xaac/0xd20 [ 77.723691][ T5317] lock_acquire+0x120/0x360 [ 77.726183][ T5317] __flush_work+0x6b8/0xbc0 [ 77.728493][ T5317] __cancel_work_sync+0xbe/0x110 [ 77.730638][ T5317] l2cap_conn_del+0x4f0/0x680 [ 77.732791][ T5317] hci_conn_hash_flush+0x10a/0x230 [ 77.735027][ T5317] hci_dev_close_sync+0xaef/0x1330 [ 77.737374][ T5317] hci_dev_close+0x106/0x200 [ 77.739456][ T5317] sock_do_ioctl+0xd9/0x300 [ 77.741424][ T5317] sock_ioctl+0x576/0x790 [ 77.743198][ T5317] __se_sys_ioctl+0xf9/0x170 [ 77.745099][ T5317] do_syscall_64+0xf6/0x210 [ 77.746968][ T5317] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 77.749238][ T5317] [ 77.749238][ T5317] other info that might help us debug this: [ 77.749238][ T5317] [ 77.752849][ T5317] Possible unsafe locking scenario: [ 77.752849][ T5317] [ 77.755457][ T5317] CPU0 CPU1 [ 77.757607][ T5317] ---- ---- [ 77.759647][ T5317] lock(&conn->lock#2); [ 77.761224][ T5317] lock((work_completion)(&(&conn->info_timer)->work)); [ 77.764949][ T5317] lock(&conn->lock#2); [ 77.767610][ T5317] lock((work_completion)(&(&conn->info_timer)->work)); [ 77.770311][ T5317] [ 77.770311][ T5317] *** DEADLOCK *** [ 77.770311][ T5317] [ 77.773383][ T5317] 5 locks held by syz.0.0/5317: [ 77.775148][ T5317] #0: ffff888050db0d80 (&hdev->req_lock){+.+.}-{4:4}, at: hci_dev_close+0xfe/0x200 [ 77.778459][ T5317] #1: ffff888050db0078 (&hdev->lock){+.+.}-{4:4}, at: hci_dev_close_sync+0x66a/0x1330 [ 77.781853][ T5317] #2: ffffffff8f4599c8 (hci_cb_list_lock){+.+.}-{4:4}, at: hci_conn_hash_flush+0xa1/0x230 [ 77.785375][ T5317] #3: ffff88801bb84338 (&conn->lock#2){+.+.}-{4:4}, at: l2cap_conn_del+0x70/0x680 [ 77.788683][ T5317] #4: ffffffff8df3b860 (rcu_read_lock){....}-{1:3}, at: __flush_work+0xd2/0xbc0 [ 77.792357][ T5317] [ 77.792357][ T5317] stack backtrace: [ 77.794678][ T5317] CPU: 0 UID: 0 PID: 5317 Comm: syz.0.0 Not tainted 6.15.0-rc4-syzkaller-00011-gf15d97df5afa #0 PREEMPT(full) [ 77.794691][ T5317] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 [ 77.794698][ T5317] Call Trace: [ 77.794704][ T5317] [ 77.794709][ T5317] dump_stack_lvl+0x189/0x250 [ 77.794728][ T5317] ? __pfx_dump_stack_lvl+0x10/0x10 [ 77.794742][ T5317] ? __pfx__printk+0x10/0x10 [ 77.794751][ T5317] ? print_lock_name+0xde/0x100 [ 77.794765][ T5317] print_circular_bug+0x2ee/0x310 [ 77.794777][ T5317] check_noncircular+0x134/0x160 [ 77.794787][ T5317] validate_chain+0xb9b/0x2140 [ 77.794796][ T5317] ? do_raw_spin_lock+0x121/0x290 [ 77.794807][ T5317] ? look_up_lock_class+0x74/0x170 [ 77.794818][ T5317] ? register_lock_class+0x51/0x320 [ 77.794831][ T5317] __lock_acquire+0xaac/0xd20 [ 77.794844][ T5317] ? __flush_work+0xd2/0xbc0 [ 77.794853][ T5317] lock_acquire+0x120/0x360 [ 77.794864][ T5317] ? __flush_work+0xd2/0xbc0 [ 77.794875][ T5317] ? _raw_spin_unlock_irq+0x23/0x50 [ 77.794888][ T5317] ? __flush_work+0xd2/0xbc0 [ 77.794897][ T5317] __flush_work+0x6b8/0xbc0 [ 77.794906][ T5317] ? __flush_work+0xd2/0xbc0 [ 77.794916][ T5317] ? __flush_work+0xd2/0xbc0 [ 77.794925][ T5317] ? __pfx___flush_work+0x10/0x10 [ 77.794935][ T5317] ? __pfx_wq_barrier_func+0x10/0x10 [ 77.794951][ T5317] ? __pfx___cancel_work+0x10/0x10 [ 77.794962][ T5317] ? hci_conn_drop+0x14d/0x280 [ 77.794973][ T5317] __cancel_work_sync+0xbe/0x110 [ 77.794984][ T5317] l2cap_conn_del+0x4f0/0x680 [ 77.795000][ T5317] ? __pfx_l2cap_disconn_cfm+0x10/0x10 [ 77.795014][ T5317] hci_conn_hash_flush+0x10a/0x230 [ 77.795025][ T5317] hci_dev_close_sync+0xaef/0x1330 [ 77.795039][ T5317] ? __pfx_hci_dev_close_sync+0x10/0x10 [ 77.795054][ T5317] hci_dev_close+0x106/0x200 [ 77.795068][ T5317] sock_do_ioctl+0xd9/0x300 [ 77.795082][ T5317] ? __pfx_sock_do_ioctl+0x10/0x10 [ 77.795092][ T5317] ? __lock_acquire+0xaac/0xd20 [ 77.795105][ T5317] sock_ioctl+0x576/0x790 [ 77.795117][ T5317] ? __pfx_sock_ioctl+0x10/0x10 [ 77.795127][ T5317] ? __fget_files+0x3a0/0x420 [ 77.795139][ T5317] ? __fget_files+0x2a/0x420 [ 77.795150][ T5317] ? bpf_lsm_file_ioctl+0x9/0x20 [ 77.795163][ T5317] ? __pfx_sock_ioctl+0x10/0x10 [ 77.795174][ T5317] __se_sys_ioctl+0xf9/0x170 [ 77.795183][ T5317] do_syscall_64+0xf6/0x210 [ 77.795194][ T5317] ? clear_bhb_loop+0x45/0xa0 [ 77.795204][ T5317] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 77.795214][ T5317] RIP: 0033:0x7fba8458e969 [ 77.795223][ T5317] 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 [ 77.795231][ T5317] RSP: 002b:00007fba853e6038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 77.795242][ T5317] RAX: ffffffffffffffda RBX: 00007fba847b6160 RCX: 00007fba8458e969 [ 77.795249][ T5317] RDX: 0000000000000000 RSI: 00000000400448ca RDI: 0000000000000004 [ 77.795254][ T5317] RBP: 00007fba84610ab1 R08: 0000000000000000 R09: 0000000000000000 [ 77.795260][ T5317] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 77.795266][ T5317] R13: 0000000000000001 R14: 00007fba847b6160 R15: 00007ffd127737b8 [ 77.795274][ T5317] [ 79.559766][ T4659] Bluetooth: hci0: command tx timeout [ 81.639870][ T4659] Bluetooth: hci0: command tx timeout [ 83.719761][ T4659] Bluetooth: hci0: command tx timeout