program: r0 = syz_init_net_socket$bt_l2cap(0x1f, 0x5, 0x0) setsockopt$bt_l2cap_L2CAP_LM(r0, 0x6, 0x3, &(0x7f00000001c0)=0x1c, 0x4) sendmsg$NL80211_CMD_NEW_KEY(0xffffffffffffffff, &(0x7f0000000340)={&(0x7f0000000180)={0x10, 0x0, 0x0, 0x4}, 0xc, 0x0, 0x1, 0x0, 0x0, 0x20004840}, 0x4000c015) write$sndseq(0xffffffffffffffff, 0x0, 0x0) r1 = openat$ndctl0(0xffffffffffffff9c, &(0x7f0000000000), 0x8082, 0x0) ioctl$DRM_IOCTL_GEM_FLINK(r1, 0xc008640a, &(0x7f0000000180)) connect$bt_l2cap(r0, &(0x7f0000000000)={0x1f, 0x5, @fixed={'\xaa\xaa\xaa\xaa\xaa', 0x10}}, 0xe) syz_emit_vhci(&(0x7f000000a540)=ANY=[@ANYBLOB="02c8"], 0xf) io_setup(0x8, &(0x7f0000000080)=0x0) io_submit(r2, 0x1, &(0x7f0000000340)=[&(0x7f0000000100)={0x0, 0x0, 0x0, 0x1, 0x0, r0, 0x0}]) mknod$loop(&(0x7f0000000240)='./file0\x00', 0x0, 0x1) mount(0x0, &(0x7f00000002c0)='./file0\x00', &(0x7f0000000340)='nfs\x00', 0x0, &(0x7f0000000000)='\x03\x00\x00\x00b\xcd+\x0f\x85\xdd\xfb\x04!\x81\xe2\x81\xf6N\x9cG\xe8\xcd\x13\xc59\xb0\x85Aj6\xdf\x12yT\xb8r\r\xef\xe4\x94\xda') syz_mount_image$ext4(&(0x7f00000000c0)='ext4\x00', &(0x7f0000000100)='./file1\x00', 0x1000407, &(0x7f0000000000)={[{@grpjquota}, {@norecovery}, {@journal_path={'journal_path', 0x2c, './file1'}}, {@i_version}]}, 0x4, 0x5ca, &(0x7f0000001400)="$eJzs3b9vG1UcAPDv2U7SJEBChQRlQBEIWgmaNGmLyo+h3auq/NhYCE1albpt1ARBChKpVBiQEAtDJSYGyn8BFaxMSAwMLEyoUkGoCwgho3Nsx3Hs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+t6AFno9vw/2ON6AAAAAAAA2+LWSy/cSCJi6cXB6pLqr+U1bgzq94ddqZB1BYDMGMML+WXoL+RXl4N/gV0saaz9XWmX33n0f9KbCgEAAAAAAAAAAAAAa+zfd+vnDef/A7uS+f+QX6vm/w9kVw9g55n/D/nlGh/YaBa/+f8AAAAAAAAAAAAAkL35xasXpsvl2Ss5WanPd7xf6mNlnZW+iOi0T/0NfO9lHf64XVaSaYD0Zx+eO/9ZBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAtPdfAAAA///brhp/") r3 = syz_open_dev$loop(&(0x7f0000000040), 0x7ff, 0x1) r4 = syz_init_net_socket$bt_hci(0x1f, 0x3, 0x1) ioctl$sock_bt_hci(r4, 0x400448ca, 0x0) r5 = openat$6lowpan_control(0xffffffffffffff9c, &(0x7f0000000000), 0x2, 0x0) write$6lowpan_control(r5, &(0x7f00000000c0)='connect aa:aa:aa:aa:aa:11 0', 0x1b) ioctl$LOOP_SET_STATUS64(r3, 0x4c04, &(0x7f0000000080)={0x0, 0x0, 0x0, 0xfffffffffffff37b, 0x2, 0x0, 0xa, 0x2, 0x10, "b931dde1532d9872236b952b2337d153b11997fac25dfe95d1db6b3ee6f759292384c91be66dec91eef183da0035bd1aa7ff12040f0c93773d1878e5429d2fa0", "4842a3e9773fc53119bee09288e98092b5eacd06163cc46f6671d69d656526ae6f7252715a3198b004d41b0b059a2aadb578fa2096c32077b4fab1188216ea89", "822ab103b900fe9ca974993521af3ed487c13d99c69415fd70fd3ad221af9c01", [0x2122, 0x7]}) [ 86.036088][ T5335] Bluetooth: hci0: command tx timeout [ 86.230911][ T5335] Bluetooth: Frame is too long (len 10, expected len 4) [ 86.244598][ T5360] loop0: detected capacity change from 0 to 1024 [ 86.257137][ T5360] journal_path: not usable as path [ 86.261948][ T5360] EXT4-fs: error: could not find journal device path [ 86.278694][ T5360] [ 86.279985][ T5360] ====================================================== [ 86.282844][ T5360] WARNING: possible circular locking dependency detected [ 86.285788][ T5360] 6.16.0-syzkaller-12250-gc30a13538d9f #0 Not tainted [ 86.288777][ T5360] ------------------------------------------------------ [ 86.291982][ T5360] syz.0.0/5360 is trying to acquire lock: [ 86.294362][ T5360] ffff888051970040 ((work_completion)(&(&conn->info_timer)->work)){+.+.}-{0:0}, at: __flush_work+0xd2/0xbc0 [ 86.299273][ T5360] [ 86.299273][ T5360] but task is already holding lock: [ 86.302433][ T5360] ffff888051970338 (&conn->lock#2){+.+.}-{4:4}, at: l2cap_conn_del+0x70/0x680 [ 86.306615][ T5360] [ 86.306615][ T5360] which lock already depends on the new lock. [ 86.306615][ T5360] [ 86.311464][ T5360] [ 86.311464][ T5360] the existing dependency chain (in reverse order) is: [ 86.315389][ T5360] [ 86.315389][ T5360] -> #1 (&conn->lock#2){+.+.}-{4:4}: [ 86.318662][ T5360] lock_acquire+0x120/0x360 [ 86.321089][ T5360] __mutex_lock+0x187/0x1360 [ 86.323437][ T5360] l2cap_info_timeout+0x60/0xa0 [ 86.325750][ T5360] process_scheduled_works+0xade/0x17b0 [ 86.328289][ T5360] worker_thread+0x8a0/0xda0 [ 86.330395][ T5360] kthread+0x70e/0x8a0 [ 86.332353][ T5360] ret_from_fork+0x3fc/0x770 [ 86.334579][ T5360] ret_from_fork_asm+0x1a/0x30 [ 86.336862][ T5360] [ 86.336862][ T5360] -> #0 ((work_completion)(&(&conn->info_timer)->work)){+.+.}-{0:0}: [ 86.341133][ T5360] validate_chain+0xb9b/0x2140 [ 86.343381][ T5360] __lock_acquire+0xab9/0xd20 [ 86.345499][ T5360] lock_acquire+0x120/0x360 [ 86.347698][ T5360] __flush_work+0x6b8/0xbc0 [ 86.349921][ T5360] __cancel_work_sync+0xbe/0x110 [ 86.352222][ T5360] l2cap_conn_del+0x4f0/0x680 [ 86.354413][ T5360] hci_conn_hash_flush+0x10d/0x230 [ 86.356868][ T5360] hci_dev_close_sync+0xaef/0x1330 [ 86.359336][ T5360] hci_dev_close+0x108/0x200 [ 86.361591][ T5360] sock_do_ioctl+0xdc/0x300 [ 86.363731][ T5360] sock_ioctl+0x576/0x790 [ 86.365768][ T5360] __se_sys_ioctl+0xfc/0x170 [ 86.368050][ T5360] do_syscall_64+0xfa/0x3b0 [ 86.370511][ T5360] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 86.373801][ T5360] [ 86.373801][ T5360] other info that might help us debug this: [ 86.373801][ T5360] [ 86.378042][ T5360] Possible unsafe locking scenario: [ 86.378042][ T5360] [ 86.381325][ T5360] CPU0 CPU1 [ 86.383709][ T5360] ---- ---- [ 86.386026][ T5360] lock(&conn->lock#2); [ 86.387890][ T5360] lock((work_completion)(&(&conn->info_timer)->work)); [ 86.391926][ T5360] lock(&conn->lock#2); [ 86.394681][ T5360] lock((work_completion)(&(&conn->info_timer)->work)); [ 86.397870][ T5360] [ 86.397870][ T5360] *** DEADLOCK *** [ 86.397870][ T5360] [ 86.401169][ T5360] 5 locks held by syz.0.0/5360: [ 86.403150][ T5360] #0: ffff88803ea60dc0 (&hdev->req_lock){+.+.}-{4:4}, at: hci_dev_close+0x100/0x200 [ 86.406953][ T5360] #1: ffff88803ea600b8 (&hdev->lock){+.+.}-{4:4}, at: hci_dev_close_sync+0x66a/0x1330 [ 86.410965][ T5360] #2: ffffffff8f69e9c8 (hci_cb_list_lock){+.+.}-{4:4}, at: hci_conn_hash_flush+0xa1/0x230 [ 86.415086][ T5360] #3: ffff888051970338 (&conn->lock#2){+.+.}-{4:4}, at: l2cap_conn_del+0x70/0x680 [ 86.419561][ T5360] #4: ffffffff8e139ee0 (rcu_read_lock){....}-{1:3}, at: __flush_work+0xd2/0xbc0 [ 86.423593][ T5360] [ 86.423593][ T5360] stack backtrace: [ 86.426110][ T5360] CPU: 0 UID: 0 PID: 5360 Comm: syz.0.0 Not tainted 6.16.0-syzkaller-12250-gc30a13538d9f #0 PREEMPT(full) [ 86.426128][ T5360] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 [ 86.426141][ T5360] Call Trace: [ 86.426148][ T5360] [ 86.426153][ T5360] dump_stack_lvl+0x189/0x250 [ 86.426167][ T5360] ? __pfx_dump_stack_lvl+0x10/0x10 [ 86.426175][ T5360] ? __pfx__printk+0x10/0x10 [ 86.426186][ T5360] ? print_lock_name+0xde/0x100 [ 86.426196][ T5360] print_circular_bug+0x2ee/0x310 [ 86.426205][ T5360] check_noncircular+0x134/0x160 [ 86.426213][ T5360] validate_chain+0xb9b/0x2140 [ 86.426221][ T5360] ? do_raw_spin_lock+0x121/0x290 [ 86.426231][ T5360] ? look_up_lock_class+0x74/0x170 [ 86.426239][ T5360] ? register_lock_class+0x51/0x320 [ 86.426248][ T5360] __lock_acquire+0xab9/0xd20 [ 86.426258][ T5360] ? __flush_work+0xd2/0xbc0 [ 86.426264][ T5360] lock_acquire+0x120/0x360 [ 86.426273][ T5360] ? __flush_work+0xd2/0xbc0 [ 86.426280][ T5360] ? _raw_spin_unlock_irq+0x23/0x50 [ 86.426289][ T5360] ? __flush_work+0xd2/0xbc0 [ 86.426298][ T5360] __flush_work+0x6b8/0xbc0 [ 86.426308][ T5360] ? __flush_work+0xd2/0xbc0 [ 86.426318][ T5360] ? __flush_work+0xd2/0xbc0 [ 86.426328][ T5360] ? __pfx___flush_work+0x10/0x10 [ 86.426338][ T5360] ? __pfx_wq_barrier_func+0x10/0x10 [ 86.426348][ T5360] ? __pfx___cancel_work+0x10/0x10 [ 86.426355][ T5360] ? hci_conn_drop+0x14d/0x280 [ 86.426362][ T5360] __cancel_work_sync+0xbe/0x110 [ 86.426369][ T5360] l2cap_conn_del+0x4f0/0x680 [ 86.426378][ T5360] ? __pfx_l2cap_disconn_cfm+0x10/0x10 [ 86.426387][ T5360] hci_conn_hash_flush+0x10d/0x230 [ 86.426398][ T5360] hci_dev_close_sync+0xaef/0x1330 [ 86.426408][ T5360] ? __pfx_hci_dev_close_sync+0x10/0x10 [ 86.426416][ T5360] ? do_raw_read_unlock+0x3d/0x80 [ 86.426423][ T5360] hci_dev_close+0x108/0x200 [ 86.426438][ T5360] sock_do_ioctl+0xdc/0x300 [ 86.426446][ T5360] ? __pfx_sock_do_ioctl+0x10/0x10 [ 86.426451][ T5360] ? __lock_acquire+0xab9/0xd20 [ 86.426462][ T5360] sock_ioctl+0x576/0x790 [ 86.426468][ T5360] ? __pfx_sock_ioctl+0x10/0x10 [ 86.426474][ T5360] ? __fget_files+0x2a/0x420 [ 86.426484][ T5360] ? __fget_files+0x3a0/0x420 [ 86.426493][ T5360] ? __fget_files+0x2a/0x420 [ 86.426502][ T5360] ? bpf_lsm_file_ioctl+0x9/0x20 [ 86.426511][ T5360] ? __pfx_sock_ioctl+0x10/0x10 [ 86.426517][ T5360] __se_sys_ioctl+0xfc/0x170 [ 86.426525][ T5360] do_syscall_64+0xfa/0x3b0 [ 86.426533][ T5360] ? lockdep_hardirqs_on+0x9c/0x150 [ 86.426543][ T5360] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 86.426551][ T5360] ? clear_bhb_loop+0x60/0xb0 [ 86.426559][ T5360] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 86.426569][ T5360] RIP: 0033:0x7f02a4b8ebe9 [ 86.426580][ T5360] 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.426589][ T5360] RSP: 002b:00007f02a5ab5038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 86.426600][ T5360] RAX: ffffffffffffffda RBX: 00007f02a4db6090 RCX: 00007f02a4b8ebe9 [ 86.426605][ T5360] RDX: 0000000000000000 RSI: 00000000400448ca RDI: 0000000000000006 [ 86.426610][ T5360] RBP: 00007f02a4c11e19 R08: 0000000000000000 R09: 0000000000000000 [ 86.426614][ T5360] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 86.426619][ T5360] R13: 00007f02a4db6128 R14: 00007f02a4db6090 R15: 00007ffd6ea43cc8 [ 86.426627][ T5360] [ 86.840212][ T9] cfg80211: failed to load regulatory.db [ 88.115796][ T4701] Bluetooth: hci0: command tx timeout [ 90.195985][ T4701] Bluetooth: hci0: command tx timeout [ 92.275799][ T4701] Bluetooth: hci0: command tx timeout