Warning: Permanently added '10.128.0.206' (ED25519) to the list of known hosts. [ 30.249055][ T50] Bluetooth: hci0: unexpected cc 0x0c03 length: 249 > 1 [ 30.253362][ T50] Bluetooth: hci0: unexpected cc 0x1003 length: 249 > 9 [ 30.255549][ T50] Bluetooth: hci0: unexpected cc 0x1001 length: 249 > 9 [ 30.258346][ T50] Bluetooth: hci0: unexpected cc 0x0c23 length: 249 > 4 [ 30.260375][ T50] Bluetooth: hci0: unexpected cc 0x0c25 length: 249 > 3 [ 30.262341][ T50] Bluetooth: hci0: unexpected cc 0x0c38 length: 249 > 2 executing program [ 30.408471][ T6093] [ 30.409062][ T6093] ====================================================== [ 30.410628][ T6093] WARNING: possible circular locking dependency detected [ 30.412200][ T6093] 6.7.0-rc6-syzkaller-gaafe7ad77b91 #0 Not tainted [ 30.413663][ T6093] ------------------------------------------------------ [ 30.415202][ T6093] syz-executor560/6093 is trying to acquire lock: [ 30.416677][ T6093] ffff0000d9020e10 ((work_completion)(&hdev->tx_work)){+.+.}-{0:0}, at: __flush_work+0xd0/0x1c0 [ 30.418992][ T6093] [ 30.418992][ T6093] but task is already holding lock: [ 30.420708][ T6093] ffff0000d9021108 (&hdev->req_lock){+.+.}-{3:3}, at: hci_rfkill_set_block+0xe8/0x20c [ 30.423061][ T6093] [ 30.423061][ T6093] which lock already depends on the new lock. [ 30.423061][ T6093] [ 30.425507][ T6093] [ 30.425507][ T6093] the existing dependency chain (in reverse order) is: [ 30.427501][ T6093] [ 30.427501][ T6093] -> #3 (&hdev->req_lock){+.+.}-{3:3}: [ 30.429337][ T6093] __mutex_lock_common+0x190/0x21a0 [ 30.430601][ T6093] mutex_lock_nested+0x2c/0x38 [ 30.431850][ T6093] hci_rfkill_set_block+0xe8/0x20c [ 30.433061][ T6093] rfkill_set_block+0x18c/0x37c [ 30.434168][ T6093] rfkill_fop_write+0x578/0x734 [ 30.435334][ T6093] vfs_write+0x2a0/0x910 [ 30.436426][ T6093] ksys_write+0x15c/0x26c [ 30.437499][ T6093] __arm64_sys_write+0x7c/0x90 [ 30.438675][ T6093] invoke_syscall+0x98/0x2b8 [ 30.439853][ T6093] el0_svc_common+0x130/0x23c [ 30.441020][ T6093] do_el0_svc+0x48/0x58 [ 30.442062][ T6093] el0_svc+0x54/0x158 [ 30.443016][ T6093] el0t_64_sync_handler+0x84/0xfc [ 30.444328][ T6093] el0t_64_sync+0x190/0x194 [ 30.445415][ T6093] [ 30.445415][ T6093] -> #2 (rfkill_global_mutex){+.+.}-{3:3}: [ 30.447297][ T6093] __mutex_lock_common+0x190/0x21a0 [ 30.448628][ T6093] mutex_lock_nested+0x2c/0x38 [ 30.449744][ T6093] rfkill_register+0x44/0x7d4 [ 30.450920][ T6093] hci_register_dev+0x3e0/0x954 [ 30.452143][ T6093] vhci_create_device+0x358/0x6c4 [ 30.453437][ T6093] vhci_write+0x318/0x3b8 [ 30.454554][ T6093] vfs_write+0x610/0x910 [ 30.455694][ T6093] ksys_write+0x15c/0x26c [ 30.456705][ T6093] __arm64_sys_write+0x7c/0x90 [ 30.457938][ T6093] invoke_syscall+0x98/0x2b8 [ 30.459068][ T6093] el0_svc_common+0x130/0x23c [ 30.460300][ T6093] do_el0_svc+0x48/0x58 [ 30.461366][ T6093] el0_svc+0x54/0x158 [ 30.462424][ T6093] el0t_64_sync_handler+0x84/0xfc [ 30.463667][ T6093] el0t_64_sync+0x190/0x194 [ 30.464788][ T6093] [ 30.464788][ T6093] -> #1 (&data->open_mutex){+.+.}-{3:3}: [ 30.466572][ T6093] __mutex_lock_common+0x190/0x21a0 [ 30.467824][ T6093] mutex_lock_nested+0x2c/0x38 [ 30.468984][ T6093] vhci_send_frame+0x8c/0x10c [ 30.470203][ T6093] hci_send_frame+0x1c4/0x35c [ 30.471383][ T6093] hci_tx_work+0xba0/0x18e4 [ 30.472586][ T6093] process_one_work+0x694/0x1204 [ 30.473805][ T6093] worker_thread+0x938/0xef4 [ 30.474948][ T6093] kthread+0x288/0x310 [ 30.475928][ T6093] ret_from_fork+0x10/0x20 [ 30.476960][ T6093] [ 30.476960][ T6093] -> #0 ((work_completion)(&hdev->tx_work)){+.+.}-{0:0}: [ 30.479060][ T6093] __lock_acquire+0x3384/0x763c [ 30.480243][ T6093] lock_acquire+0x23c/0x71c [ 30.481468][ T6093] __flush_work+0xf8/0x1c0 [ 30.482619][ T6093] flush_work+0x24/0x38 [ 30.483690][ T6093] hci_dev_close_sync+0x1c8/0xf30 [ 30.484933][ T6093] hci_rfkill_set_block+0xf0/0x20c [ 30.486150][ T6093] rfkill_set_block+0x18c/0x37c [ 30.487384][ T6093] rfkill_fop_write+0x578/0x734 [ 30.488624][ T6093] vfs_write+0x2a0/0x910 [ 30.489689][ T6093] ksys_write+0x15c/0x26c [ 30.490693][ T6093] __arm64_sys_write+0x7c/0x90 [ 30.491948][ T6093] invoke_syscall+0x98/0x2b8 [ 30.493008][ T6093] el0_svc_common+0x130/0x23c [ 30.494256][ T6093] do_el0_svc+0x48/0x58 [ 30.495302][ T6093] el0_svc+0x54/0x158 [ 30.496329][ T6093] el0t_64_sync_handler+0x84/0xfc [ 30.497612][ T6093] el0t_64_sync+0x190/0x194 [ 30.498706][ T6093] [ 30.498706][ T6093] other info that might help us debug this: [ 30.498706][ T6093] [ 30.500843][ T6093] Chain exists of: [ 30.500843][ T6093] (work_completion)(&hdev->tx_work) --> rfkill_global_mutex --> &hdev->req_lock [ 30.500843][ T6093] [ 30.504386][ T6093] Possible unsafe locking scenario: [ 30.504386][ T6093] [ 30.506020][ T6093] CPU0 CPU1 [ 30.507197][ T6093] ---- ---- [ 30.508533][ T6093] lock(&hdev->req_lock); [ 30.509639][ T6093] lock(rfkill_global_mutex); [ 30.511363][ T6093] lock(&hdev->req_lock); [ 30.512826][ T6093] lock((work_completion)(&hdev->tx_work)); [ 30.514149][ T6093] [ 30.514149][ T6093] *** DEADLOCK *** [ 30.514149][ T6093] [ 30.516048][ T6093] 2 locks held by syz-executor560/6093: [ 30.517346][ T6093] #0: ffff80009122cca8 (rfkill_global_mutex){+.+.}-{3:3}, at: rfkill_fop_write+0x234/0x734 [ 30.519750][ T6093] #1: ffff0000d9021108 (&hdev->req_lock){+.+.}-{3:3}, at: hci_rfkill_set_block+0xe8/0x20c [ 30.522003][ T6093] [ 30.522003][ T6093] stack backtrace: [ 30.523355][ T6093] CPU: 1 PID: 6093 Comm: syz-executor560 Not tainted 6.7.0-rc6-syzkaller-gaafe7ad77b91 #0 [ 30.525635][ T6093] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023 [ 30.527965][ T6093] Call trace: [ 30.528612][ T6093] dump_backtrace+0x1b8/0x1e4 [ 30.529668][ T6093] show_stack+0x2c/0x3c [ 30.530591][ T6093] dump_stack_lvl+0xd0/0x124 [ 30.531693][ T6093] dump_stack+0x1c/0x28 [ 30.532634][ T6093] print_circular_bug+0x150/0x1b8 [ 30.533714][ T6093] check_noncircular+0x310/0x404 [ 30.534777][ T6093] __lock_acquire+0x3384/0x763c [ 30.535876][ T6093] lock_acquire+0x23c/0x71c [ 30.536990][ T6093] __flush_work+0xf8/0x1c0 [ 30.537998][ T6093] flush_work+0x24/0x38 [ 30.538946][ T6093] hci_dev_close_sync+0x1c8/0xf30 [ 30.540004][ T6093] hci_rfkill_set_block+0xf0/0x20c [ 30.541171][ T6093] rfkill_set_block+0x18c/0x37c [ 30.542259][ T6093] rfkill_fop_write+0x578/0x734 [ 30.543415][ T6093] vfs_write+0x2a0/0x910 [ 30.544396][ T6093] ksys_write+0x15c/0x26c [ 30.545318][ T6093] __arm64_sys_write+0x7c/0x90 [ 30.546295][ T6093] invoke_syscall+0x98/0x2b8 [ 30.547328][ T6093] el0_svc_common+0x130/0x23c [ 30.548374][ T6093] do_el0_svc+0x48/0x58 [ 30.549351][ T6093] el0_svc+0x54/0x158 [ 30.550232][ T6093] el0t_64_sync_handler+0x84/0xfc [ 30.551363][ T6093] el0t_64_sync+0x190/0x194