program: r0 = syz_init_net_socket$bt_l2cap(0x1f, 0x1, 0x3) connect(r0, &(0x7f0000000000)=@rc={0x1f, @fixed={'\xaa\xaa\xaa\xaa\xaa', 0x10}, 0x8}, 0x80) r1 = syz_init_net_socket$bt_hci(0x1f, 0x3, 0x1) ioctl$HCIINQUIRY(r1, 0x400448ca, 0x0) r2 = socket$nl_netfilter(0x10, 0x3, 0xc) sendmsg$IPSET_CMD_CREATE(r2, &(0x7f0000000380)={0x0, 0x0, &(0x7f0000000340)={&(0x7f00000065c0)={0x4c, 0x2, 0x6, 0x201, 0x0, 0x0, {0xa, 0x0, 0x2}, [@IPSET_ATTR_FAMILY={0x5, 0x5, 0xa}, @IPSET_ATTR_SETNAME={0x9, 0x2, 'syz2\x00'}, @IPSET_ATTR_TYPENAME={0x13, 0x3, 'hash:net,iface\x00'}, @IPSET_ATTR_PROTOCOL={0x5}, @IPSET_ATTR_REVISION={0x5, 0x4, 0x1}]}, 0x4c}}, 0x0) sendmsg$IPSET_CMD_FLUSH(r2, &(0x7f0000000180)={0x0, 0x0, &(0x7f0000000140)={&(0x7f0000000000)={0x1c, 0x4, 0x6, 0x201, 0x0, 0x0, {}, [@IPSET_ATTR_PROTOCOL={0x5}]}, 0x1c}}, 0x0) r3 = socket$inet_tcp(0x2, 0x1, 0x0) perf_event_open(&(0x7f0000000500)={0x2, 0x80, 0x23, 0x1, 0x0, 0x0, 0x0, 0x7fef, 0x92, 0x3, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x107b7b, 0x1, @perf_bp={0x0, 0x3}, 0x14105, 0xa988, 0xfffffbff, 0x1, 0x8, 0x0, 0x4, 0x0, 0x0, 0x0, 0x2007}, 0x0, 0xffffffffffffffff, 0xffffffffffffffff, 0x9) setsockopt$SO_BINDTODEVICE(r3, 0x1, 0x19, &(0x7f0000000000)='syz_tun\x00', 0x10) sendto$inet(r3, 0x0, 0x0, 0x20000800, 0x0, 0x0) syz_usb_connect$hid(0x0, 0x36, &(0x7f00000000c0)=ANY=[@ANYBLOB="120187cf16efe047497d0080000002f8fcf930eb120d65000000000001090224000000b8953151b48c4beb6e6154292c490d21c83c74f79e59d2e2076a131b45c06f5093d91a26247d0209"], 0x0) mkdir(&(0x7f0000000080)='./file0\x00', 0x100) [ 87.767124][ T5306] Bluetooth: hci0: command tx timeout [ 87.770373][ T9] cfg80211: failed to load regulatory.db [ 87.826061][ T5331] [ 87.827807][ T5331] ====================================================== [ 87.831254][ T5331] WARNING: possible circular locking dependency detected [ 87.834465][ T5331] 6.16.0-rc1-syzkaller-00004-gaef17cb3d3c4 #0 Not tainted [ 87.837283][ T5331] ------------------------------------------------------ [ 87.840487][ T5331] syz.0.0/5331 is trying to acquire lock: [ 87.843104][ T5331] ffff88803f0a0840 ((work_completion)(&(&conn->info_timer)->work)){+.+.}-{0:0}, at: __flush_work+0xd2/0xbc0 [ 87.849211][ T5331] [ 87.849211][ T5331] but task is already holding lock: [ 87.852969][ T5331] ffff88803f0a0b38 (&conn->lock#2){+.+.}-{4:4}, at: l2cap_conn_del+0x70/0x680 [ 87.857236][ T5331] [ 87.857236][ T5331] which lock already depends on the new lock. [ 87.857236][ T5331] [ 87.862249][ T5331] [ 87.862249][ T5331] the existing dependency chain (in reverse order) is: [ 87.867176][ T5331] [ 87.867176][ T5331] -> #1 (&conn->lock#2){+.+.}-{4:4}: [ 87.870773][ T5331] lock_acquire+0x120/0x360 [ 87.873075][ T5331] __mutex_lock+0x182/0xe80 [ 87.875577][ T5331] l2cap_info_timeout+0x60/0xa0 [ 87.877987][ T5331] process_scheduled_works+0xae1/0x17b0 [ 87.880961][ T5331] worker_thread+0x8a0/0xda0 [ 87.883682][ T5331] kthread+0x70e/0x8a0 [ 87.886648][ T5331] ret_from_fork+0x3fc/0x770 [ 87.889132][ T5331] ret_from_fork_asm+0x1a/0x30 [ 87.891372][ T5331] [ 87.891372][ T5331] -> #0 ((work_completion)(&(&conn->info_timer)->work)){+.+.}-{0:0}: [ 87.896134][ T5331] validate_chain+0xb9b/0x2140 [ 87.898480][ T5331] __lock_acquire+0xab9/0xd20 [ 87.900812][ T5331] lock_acquire+0x120/0x360 [ 87.903128][ T5331] __flush_work+0x6b8/0xbc0 [ 87.905735][ T5331] __cancel_work_sync+0xbe/0x110 [ 87.909003][ T5331] l2cap_conn_del+0x4f0/0x680 [ 87.911971][ T5331] hci_conn_hash_flush+0x10a/0x230 [ 87.914650][ T5331] hci_dev_close_sync+0xaef/0x1330 [ 87.917200][ T5331] hci_dev_close+0x106/0x200 [ 87.919516][ T5331] sock_do_ioctl+0xd9/0x300 [ 87.921645][ T5331] sock_ioctl+0x576/0x790 [ 87.923797][ T5331] __se_sys_ioctl+0xf9/0x170 [ 87.925889][ T5331] do_syscall_64+0xfa/0x3b0 [ 87.927885][ T5331] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 87.930484][ T5331] [ 87.930484][ T5331] other info that might help us debug this: [ 87.930484][ T5331] [ 87.936071][ T5331] Possible unsafe locking scenario: [ 87.936071][ T5331] [ 87.939755][ T5331] CPU0 CPU1 [ 87.942084][ T5331] ---- ---- [ 87.944357][ T5331] lock(&conn->lock#2); [ 87.946165][ T5331] lock((work_completion)(&(&conn->info_timer)->work)); [ 87.949968][ T5331] lock(&conn->lock#2); [ 87.952878][ T5331] lock((work_completion)(&(&conn->info_timer)->work)); [ 87.956219][ T5331] [ 87.956219][ T5331] *** DEADLOCK *** [ 87.956219][ T5331] [ 87.959938][ T5331] 5 locks held by syz.0.0/5331: [ 87.961970][ T5331] #0: ffff888033164d80 (&hdev->req_lock){+.+.}-{4:4}, at: hci_dev_close+0xfe/0x200 [ 87.965766][ T5331] #1: ffff888033164078 (&hdev->lock){+.+.}-{4:4}, at: hci_dev_close_sync+0x66a/0x1330 [ 87.970023][ T5331] #2: ffffffff8f678068 (hci_cb_list_lock){+.+.}-{4:4}, at: hci_conn_hash_flush+0xa1/0x230 [ 87.974978][ T5331] #3: ffff88803f0a0b38 (&conn->lock#2){+.+.}-{4:4}, at: l2cap_conn_del+0x70/0x680 [ 87.979533][ T5331] #4: ffffffff8e13eda0 (rcu_read_lock){....}-{1:3}, at: __flush_work+0xd2/0xbc0 [ 87.983641][ T5331] [ 87.983641][ T5331] stack backtrace: [ 87.986320][ T5331] CPU: 0 UID: 0 PID: 5331 Comm: syz.0.0 Not tainted 6.16.0-rc1-syzkaller-00004-gaef17cb3d3c4 #0 PREEMPT(full) [ 87.986342][ T5331] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 [ 87.986350][ T5331] Call Trace: [ 87.986360][ T5331] [ 87.986367][ T5331] dump_stack_lvl+0x189/0x250 [ 87.986394][ T5331] ? __pfx_dump_stack_lvl+0x10/0x10 [ 87.986412][ T5331] ? __pfx__printk+0x10/0x10 [ 87.986426][ T5331] ? print_lock_name+0xde/0x100 [ 87.986437][ T5331] print_circular_bug+0x2ee/0x310 [ 87.986449][ T5331] check_noncircular+0x134/0x160 [ 87.986461][ T5331] validate_chain+0xb9b/0x2140 [ 87.986471][ T5331] ? do_raw_spin_lock+0x121/0x290 [ 87.986486][ T5331] ? look_up_lock_class+0x74/0x170 [ 87.986507][ T5331] ? register_lock_class+0x51/0x320 [ 87.986526][ T5331] __lock_acquire+0xab9/0xd20 [ 87.986545][ T5331] ? __flush_work+0xd2/0xbc0 [ 87.986555][ T5331] lock_acquire+0x120/0x360 [ 87.986569][ T5331] ? __flush_work+0xd2/0xbc0 [ 87.986580][ T5331] ? _raw_spin_unlock_irq+0x23/0x50 [ 87.986595][ T5331] ? __flush_work+0xd2/0xbc0 [ 87.986605][ T5331] __flush_work+0x6b8/0xbc0 [ 87.986616][ T5331] ? __flush_work+0xd2/0xbc0 [ 87.986627][ T5331] ? __flush_work+0xd2/0xbc0 [ 87.986637][ T5331] ? __pfx___flush_work+0x10/0x10 [ 87.986648][ T5331] ? __pfx_wq_barrier_func+0x10/0x10 [ 87.986664][ T5331] ? __pfx___cancel_work+0x10/0x10 [ 87.986675][ T5331] ? hci_conn_drop+0x14d/0x280 [ 87.986692][ T5331] __cancel_work_sync+0xbe/0x110 [ 87.986703][ T5331] l2cap_conn_del+0x4f0/0x680 [ 87.986718][ T5331] ? __pfx_l2cap_disconn_cfm+0x10/0x10 [ 87.986731][ T5331] hci_conn_hash_flush+0x10a/0x230 [ 87.986782][ T5331] hci_dev_close_sync+0xaef/0x1330 [ 87.986799][ T5331] ? __pfx_hci_dev_close_sync+0x10/0x10 [ 87.986815][ T5331] hci_dev_close+0x106/0x200 [ 87.986832][ T5331] sock_do_ioctl+0xd9/0x300 [ 87.986850][ T5331] ? __pfx_sock_do_ioctl+0x10/0x10 [ 87.986864][ T5331] ? __lock_acquire+0xab9/0xd20 [ 87.986881][ T5331] sock_ioctl+0x576/0x790 [ 87.986896][ T5331] ? __pfx_sock_ioctl+0x10/0x10 [ 87.986911][ T5331] ? __fget_files+0x2a/0x420 [ 87.986923][ T5331] ? __fget_files+0x3a0/0x420 [ 87.986934][ T5331] ? __fget_files+0x2a/0x420 [ 87.986946][ T5331] ? bpf_lsm_file_ioctl+0x9/0x20 [ 87.986961][ T5331] ? __pfx_sock_ioctl+0x10/0x10 [ 87.986978][ T5331] __se_sys_ioctl+0xf9/0x170 [ 87.986996][ T5331] do_syscall_64+0xfa/0x3b0 [ 87.987005][ T5331] ? lockdep_hardirqs_on+0x9c/0x150 [ 87.987022][ T5331] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 87.987035][ T5331] ? clear_bhb_loop+0x60/0xb0 [ 87.987048][ T5331] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 87.987060][ T5331] RIP: 0033:0x7facd418e929 [ 87.987074][ T5331] 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 [ 87.987084][ T5331] RSP: 002b:00007facd05d4038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 87.987105][ T5331] RAX: ffffffffffffffda RBX: 00007facd43b6080 RCX: 00007facd418e929 [ 87.987117][ T5331] RDX: 0000000000000000 RSI: 00000000400448ca RDI: 0000000000000005 [ 87.987125][ T5331] RBP: 00007facd4210b39 R08: 0000000000000000 R09: 0000000000000000 [ 87.987134][ T5331] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 87.987141][ T5331] R13: 0000000000000000 R14: 00007facd43b6080 R15: 00007ffcbdbd3578 [ 87.987153][ T5331] [ 88.466714][ T10] usb 5-1: new high-speed USB device number 2 using dummy_hcd [ 88.596737][ T10] usb 5-1: device descriptor read/64, error -71 [ 88.836533][ T10] usb 5-1: new high-speed USB device number 3 using dummy_hcd [ 88.966616][ T10] usb 5-1: device descriptor read/64, error -71 [ 89.076964][ T10] usb usb5-port1: attempt power cycle [ 89.418673][ T10] usb 5-1: new high-speed USB device number 4 using dummy_hcd [ 89.437694][ T10] usb 5-1: device descriptor read/8, error -71 [ 89.676731][ T10] usb 5-1: new high-speed USB device number 5 using dummy_hcd [ 89.697843][ T10] usb 5-1: device descriptor read/8, error -71 [ 89.806905][ T4673] Bluetooth: hci0: command tx timeout [ 89.809697][ T10] usb usb5-port1: unable to enumerate USB device [ 91.887054][ T4673] Bluetooth: hci0: command tx timeout [ 93.966711][ T4673] Bluetooth: hci0: command tx timeout