Warning: Permanently added '10.128.0.115' (ED25519) to the list of known hosts. [ 33.716650][ T50] Bluetooth: hci0: unexpected cc 0x0c03 length: 249 > 1 [ 33.719116][ T50] Bluetooth: hci0: unexpected cc 0x1003 length: 249 > 9 [ 33.721333][ T50] Bluetooth: hci0: unexpected cc 0x1001 length: 249 > 9 [ 33.723595][ T50] Bluetooth: hci0: unexpected cc 0x0c23 length: 249 > 4 [ 33.725845][ T50] Bluetooth: hci0: unexpected cc 0x0c25 length: 249 > 3 [ 33.727871][ T50] Bluetooth: hci0: unexpected cc 0x0c38 length: 249 > 2 executing program [ 33.865699][ T6093] [ 33.866316][ T6093] ====================================================== [ 33.868050][ T6093] WARNING: possible circular locking dependency detected [ 33.869643][ T6093] 6.7.0-rc6-syzkaller-gaafe7ad77b91 #0 Not tainted [ 33.871207][ T6093] ------------------------------------------------------ [ 33.873020][ T6093] syz-executor135/6093 is trying to acquire lock: [ 33.874547][ T6093] ffff0000da72ce10 ((work_completion)(&hdev->tx_work)){+.+.}-{0:0}, at: __flush_work+0xd0/0x1c0 [ 33.877143][ T6093] [ 33.877143][ T6093] but task is already holding lock: [ 33.878839][ T6093] ffff0000da72d108 (&hdev->req_lock){+.+.}-{3:3}, at: hci_rfkill_set_block+0xe8/0x20c [ 33.881098][ T6093] [ 33.881098][ T6093] which lock already depends on the new lock. [ 33.881098][ T6093] [ 33.883541][ T6093] [ 33.883541][ T6093] the existing dependency chain (in reverse order) is: [ 33.885774][ T6093] [ 33.885774][ T6093] -> #3 (&hdev->req_lock){+.+.}-{3:3}: [ 33.887670][ T6093] __mutex_lock_common+0x190/0x21a0 [ 33.889035][ T6093] mutex_lock_nested+0x2c/0x38 [ 33.890272][ T6093] hci_rfkill_set_block+0xe8/0x20c [ 33.891589][ T6093] rfkill_set_block+0x18c/0x37c [ 33.892916][ T6093] rfkill_fop_write+0x578/0x734 [ 33.894132][ T6093] vfs_write+0x2a0/0x910 [ 33.895373][ T6093] ksys_write+0x15c/0x26c [ 33.896507][ T6093] __arm64_sys_write+0x7c/0x90 [ 33.897785][ T6093] invoke_syscall+0x98/0x2b8 [ 33.899026][ T6093] el0_svc_common+0x130/0x23c [ 33.900309][ T6093] do_el0_svc+0x48/0x58 [ 33.901460][ T6093] el0_svc+0x54/0x158 [ 33.902544][ T6093] el0t_64_sync_handler+0x84/0xfc [ 33.903900][ T6093] el0t_64_sync+0x190/0x194 [ 33.905140][ T6093] [ 33.905140][ T6093] -> #2 (rfkill_global_mutex){+.+.}-{3:3}: [ 33.907129][ T6093] __mutex_lock_common+0x190/0x21a0 [ 33.908466][ T6093] mutex_lock_nested+0x2c/0x38 [ 33.909703][ T6093] rfkill_register+0x44/0x7d4 [ 33.910972][ T6093] hci_register_dev+0x3e0/0x954 [ 33.912257][ T6093] vhci_create_device+0x358/0x6c4 [ 33.913580][ T6093] vhci_write+0x318/0x3b8 [ 33.914816][ T6093] vfs_write+0x610/0x910 [ 33.916016][ T6093] ksys_write+0x15c/0x26c [ 33.917177][ T6093] __arm64_sys_write+0x7c/0x90 [ 33.918520][ T6093] invoke_syscall+0x98/0x2b8 [ 33.919783][ T6093] el0_svc_common+0x130/0x23c [ 33.921109][ T6093] do_el0_svc+0x48/0x58 [ 33.922202][ T6093] el0_svc+0x54/0x158 [ 33.923319][ T6093] el0t_64_sync_handler+0x84/0xfc [ 33.924695][ T6093] el0t_64_sync+0x190/0x194 [ 33.925954][ T6093] [ 33.925954][ T6093] -> #1 (&data->open_mutex){+.+.}-{3:3}: [ 33.927934][ T6093] __mutex_lock_common+0x190/0x21a0 [ 33.929359][ T6093] mutex_lock_nested+0x2c/0x38 [ 33.930565][ T6093] vhci_send_frame+0x8c/0x10c [ 33.931866][ T6093] hci_send_frame+0x1c4/0x35c [ 33.933208][ T6093] hci_tx_work+0xba0/0x18e4 [ 33.934484][ T6093] process_one_work+0x694/0x1204 [ 33.935836][ T6093] worker_thread+0x938/0xef4 [ 33.937119][ T6093] kthread+0x288/0x310 [ 33.938241][ T6093] ret_from_fork+0x10/0x20 [ 33.939516][ T6093] [ 33.939516][ T6093] -> #0 ((work_completion)(&hdev->tx_work)){+.+.}-{0:0}: [ 33.941785][ T6093] __lock_acquire+0x3384/0x763c [ 33.943073][ T6093] lock_acquire+0x23c/0x71c [ 33.944258][ T6093] __flush_work+0xf8/0x1c0 [ 33.945522][ T6093] flush_work+0x24/0x38 [ 33.946664][ T6093] hci_dev_close_sync+0x1c8/0xf30 [ 33.948078][ T6093] hci_rfkill_set_block+0xf0/0x20c [ 33.949456][ T6093] rfkill_set_block+0x18c/0x37c [ 33.950848][ T6093] rfkill_fop_write+0x578/0x734 [ 33.952201][ T6093] vfs_write+0x2a0/0x910 [ 33.953356][ T6093] ksys_write+0x15c/0x26c [ 33.954530][ T6093] __arm64_sys_write+0x7c/0x90 [ 33.955758][ T6093] invoke_syscall+0x98/0x2b8 [ 33.957011][ T6093] el0_svc_common+0x130/0x23c [ 33.958292][ T6093] do_el0_svc+0x48/0x58 [ 33.959441][ T6093] el0_svc+0x54/0x158 [ 33.960574][ T6093] el0t_64_sync_handler+0x84/0xfc [ 33.961958][ T6093] el0t_64_sync+0x190/0x194 [ 33.963192][ T6093] [ 33.963192][ T6093] other info that might help us debug this: [ 33.963192][ T6093] [ 33.965638][ T6093] Chain exists of: [ 33.965638][ T6093] (work_completion)(&hdev->tx_work) --> rfkill_global_mutex --> &hdev->req_lock [ 33.965638][ T6093] [ 33.969321][ T6093] Possible unsafe locking scenario: [ 33.969321][ T6093] [ 33.971148][ T6093] CPU0 CPU1 [ 33.972433][ T6093] ---- ---- [ 33.973492][ T6093] lock(&hdev->req_lock); [ 33.974275][ T6093] lock(rfkill_global_mutex); [ 33.975538][ T6093] lock(&hdev->req_lock); [ 33.976759][ T6093] lock((work_completion)(&hdev->tx_work)); [ 33.977800][ T6093] [ 33.977800][ T6093] *** DEADLOCK *** [ 33.977800][ T6093] [ 33.979784][ T6093] 2 locks held by syz-executor135/6093: [ 33.981165][ T6093] #0: ffff80009122cca8 (rfkill_global_mutex){+.+.}-{3:3}, at: rfkill_fop_write+0x234/0x734 [ 33.983633][ T6093] #1: ffff0000da72d108 (&hdev->req_lock){+.+.}-{3:3}, at: hci_rfkill_set_block+0xe8/0x20c [ 33.986141][ T6093] [ 33.986141][ T6093] stack backtrace: [ 33.987614][ T6093] CPU: 0 PID: 6093 Comm: syz-executor135 Not tainted 6.7.0-rc6-syzkaller-gaafe7ad77b91 #0 [ 33.990016][ T6093] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023 [ 33.992534][ T6093] Call trace: [ 33.993284][ T6093] dump_backtrace+0x1b8/0x1e4 [ 33.994485][ T6093] show_stack+0x2c/0x3c [ 33.995448][ T6093] dump_stack_lvl+0xd0/0x124 [ 33.996624][ T6093] dump_stack+0x1c/0x28 [ 33.997678][ T6093] print_circular_bug+0x150/0x1b8 [ 33.998910][ T6093] check_noncircular+0x310/0x404 [ 34.000146][ T6093] __lock_acquire+0x3384/0x763c [ 34.001335][ T6093] lock_acquire+0x23c/0x71c [ 34.002511][ T6093] __flush_work+0xf8/0x1c0 [ 34.003570][ T6093] flush_work+0x24/0x38 [ 34.004531][ T6093] hci_dev_close_sync+0x1c8/0xf30 [ 34.005839][ T6093] hci_rfkill_set_block+0xf0/0x20c [ 34.007092][ T6093] rfkill_set_block+0x18c/0x37c [ 34.008223][ T6093] rfkill_fop_write+0x578/0x734 [ 34.009372][ T6093] vfs_write+0x2a0/0x910 [ 34.010461][ T6093] ksys_write+0x15c/0x26c [ 34.011529][ T6093] __arm64_sys_write+0x7c/0x90 [ 34.012662][ T6093] invoke_syscall+0x98/0x2b8 [ 34.013800][ T6093] el0_svc_common+0x130/0x23c [ 34.015000][ T6093] do_el0_svc+0x48/0x58 [ 34.016038][ T6093] el0_svc+0x54/0x158 [ 34.017069][ T6093] el0t_64_sync_handler+0x84/0xfc [ 34.018257][ T6093] el0t_64_sync+0x190/0x194