Warning: Permanently added '10.128.0.241' (ED25519) to the list of known hosts. [ 33.508313][ T6093] Bluetooth: hci0: unexpected cc 0x0c03 length: 249 > 1 [ 33.510725][ T6093] Bluetooth: hci0: unexpected cc 0x1003 length: 249 > 9 [ 33.513207][ T6093] Bluetooth: hci0: unexpected cc 0x1001 length: 249 > 9 [ 33.515787][ T6093] Bluetooth: hci0: unexpected cc 0x0c23 length: 249 > 4 [ 33.518040][ T6093] Bluetooth: hci0: unexpected cc 0x0c25 length: 249 > 3 [ 33.519985][ T6093] Bluetooth: hci0: unexpected cc 0x0c38 length: 249 > 2 executing program [ 33.713714][ T6092] [ 33.714338][ T6092] ====================================================== [ 33.716070][ T6092] WARNING: possible circular locking dependency detected [ 33.717663][ T6092] 6.7.0-rc6-syzkaller-gaafe7ad77b91 #0 Not tainted [ 33.719121][ T6092] ------------------------------------------------------ [ 33.720687][ T6092] syz-executor156/6092 is trying to acquire lock: [ 33.722197][ T6092] ffff0000cc818e10 ((work_completion)(&hdev->tx_work)){+.+.}-{0:0}, at: __flush_work+0xd0/0x1c0 [ 33.724627][ T6092] [ 33.724627][ T6092] but task is already holding lock: [ 33.726287][ T6092] ffff0000cc819108 (&hdev->req_lock){+.+.}-{3:3}, at: hci_rfkill_set_block+0xe8/0x20c [ 33.728438][ T6092] [ 33.728438][ T6092] which lock already depends on the new lock. [ 33.728438][ T6092] [ 33.730944][ T6092] [ 33.730944][ T6092] the existing dependency chain (in reverse order) is: [ 33.733164][ T6092] [ 33.733164][ T6092] -> #3 (&hdev->req_lock){+.+.}-{3:3}: [ 33.734992][ T6092] __mutex_lock_common+0x190/0x21a0 [ 33.736489][ T6092] mutex_lock_nested+0x2c/0x38 [ 33.737723][ T6092] hci_rfkill_set_block+0xe8/0x20c [ 33.738976][ T6092] rfkill_set_block+0x18c/0x37c [ 33.740243][ T6092] rfkill_fop_write+0x578/0x734 [ 33.741536][ T6092] vfs_write+0x2a0/0x910 [ 33.742672][ T6092] ksys_write+0x15c/0x26c [ 33.743820][ T6092] __arm64_sys_write+0x7c/0x90 [ 33.745046][ T6092] invoke_syscall+0x98/0x2b8 [ 33.746297][ T6092] el0_svc_common+0x130/0x23c [ 33.747533][ T6092] do_el0_svc+0x48/0x58 [ 33.748661][ T6092] el0_svc+0x54/0x158 [ 33.749819][ T6092] el0t_64_sync_handler+0x84/0xfc [ 33.751204][ T6092] el0t_64_sync+0x190/0x194 [ 33.752475][ T6092] [ 33.752475][ T6092] -> #2 (rfkill_global_mutex){+.+.}-{3:3}: [ 33.754455][ T6092] __mutex_lock_common+0x190/0x21a0 [ 33.755794][ T6092] mutex_lock_nested+0x2c/0x38 [ 33.757058][ T6092] rfkill_register+0x44/0x7d4 [ 33.758286][ T6092] hci_register_dev+0x3e0/0x954 [ 33.759529][ T6092] vhci_create_device+0x358/0x6c4 [ 33.760806][ T6092] vhci_write+0x318/0x3b8 [ 33.762064][ T6092] vfs_write+0x610/0x910 [ 33.763143][ T6092] ksys_write+0x15c/0x26c [ 33.764292][ T6092] __arm64_sys_write+0x7c/0x90 [ 33.765521][ T6092] invoke_syscall+0x98/0x2b8 [ 33.766742][ T6092] el0_svc_common+0x130/0x23c [ 33.767952][ T6092] do_el0_svc+0x48/0x58 [ 33.769015][ T6092] el0_svc+0x54/0x158 [ 33.770133][ T6092] el0t_64_sync_handler+0x84/0xfc [ 33.771473][ T6092] el0t_64_sync+0x190/0x194 [ 33.772732][ T6092] [ 33.772732][ T6092] -> #1 (&data->open_mutex){+.+.}-{3:3}: [ 33.774677][ T6092] __mutex_lock_common+0x190/0x21a0 [ 33.776104][ T6092] mutex_lock_nested+0x2c/0x38 [ 33.777408][ T6092] vhci_send_frame+0x8c/0x10c [ 33.778634][ T6092] hci_send_frame+0x1c4/0x35c [ 33.779806][ T6092] hci_tx_work+0xba0/0x18e4 [ 33.780991][ T6092] process_one_work+0x694/0x1204 [ 33.782275][ T6092] worker_thread+0x938/0xef4 [ 33.783417][ T6092] kthread+0x288/0x310 [ 33.784505][ T6092] ret_from_fork+0x10/0x20 [ 33.785701][ T6092] [ 33.785701][ T6092] -> #0 ((work_completion)(&hdev->tx_work)){+.+.}-{0:0}: [ 33.787828][ T6092] __lock_acquire+0x3384/0x763c [ 33.789089][ T6092] lock_acquire+0x23c/0x71c [ 33.790233][ T6092] __flush_work+0xf8/0x1c0 [ 33.791444][ T6092] flush_work+0x24/0x38 [ 33.792623][ T6092] hci_dev_close_sync+0x1c8/0xf30 [ 33.793907][ T6092] hci_rfkill_set_block+0xf0/0x20c [ 33.795235][ T6092] rfkill_set_block+0x18c/0x37c [ 33.796566][ T6092] rfkill_fop_write+0x578/0x734 [ 33.797842][ T6092] vfs_write+0x2a0/0x910 [ 33.798924][ T6092] ksys_write+0x15c/0x26c [ 33.800090][ T6092] __arm64_sys_write+0x7c/0x90 [ 33.801374][ T6092] invoke_syscall+0x98/0x2b8 [ 33.802805][ T6092] el0_svc_common+0x130/0x23c [ 33.804057][ T6092] do_el0_svc+0x48/0x58 [ 33.805266][ T6092] el0_svc+0x54/0x158 [ 33.806381][ T6092] el0t_64_sync_handler+0x84/0xfc [ 33.807759][ T6092] el0t_64_sync+0x190/0x194 [ 33.809040][ T6092] [ 33.809040][ T6092] other info that might help us debug this: [ 33.809040][ T6092] [ 33.811536][ T6092] Chain exists of: [ 33.811536][ T6092] (work_completion)(&hdev->tx_work) --> rfkill_global_mutex --> &hdev->req_lock [ 33.811536][ T6092] [ 33.815121][ T6092] Possible unsafe locking scenario: [ 33.815121][ T6092] [ 33.816766][ T6092] CPU0 CPU1 [ 33.818009][ T6092] ---- ---- [ 33.819234][ T6092] lock(&hdev->req_lock); [ 33.820201][ T6092] lock(rfkill_global_mutex); [ 33.821952][ T6092] lock(&hdev->req_lock); [ 33.823647][ T6092] lock((work_completion)(&hdev->tx_work)); [ 33.825070][ T6092] [ 33.825070][ T6092] *** DEADLOCK *** [ 33.825070][ T6092] [ 33.826965][ T6092] 2 locks held by syz-executor156/6092: [ 33.828257][ T6092] #0: ffff80009122cca8 (rfkill_global_mutex){+.+.}-{3:3}, at: rfkill_fop_write+0x234/0x734 [ 33.830658][ T6092] #1: ffff0000cc819108 (&hdev->req_lock){+.+.}-{3:3}, at: hci_rfkill_set_block+0xe8/0x20c [ 33.833059][ T6092] [ 33.833059][ T6092] stack backtrace: [ 33.834367][ T6092] CPU: 1 PID: 6092 Comm: syz-executor156 Not tainted 6.7.0-rc6-syzkaller-gaafe7ad77b91 #0 [ 33.836558][ T6092] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023 [ 33.839125][ T6092] Call trace: [ 33.840016][ T6092] dump_backtrace+0x1b8/0x1e4 [ 33.841026][ T6092] show_stack+0x2c/0x3c [ 33.842059][ T6092] dump_stack_lvl+0xd0/0x124 [ 33.843166][ T6092] dump_stack+0x1c/0x28 [ 33.844166][ T6092] print_circular_bug+0x150/0x1b8 [ 33.845418][ T6092] check_noncircular+0x310/0x404 [ 33.846567][ T6092] __lock_acquire+0x3384/0x763c [ 33.847655][ T6092] lock_acquire+0x23c/0x71c [ 33.848618][ T6092] __flush_work+0xf8/0x1c0 [ 33.849370][ T6092] flush_work+0x24/0x38 [ 33.850033][ T6092] hci_dev_close_sync+0x1c8/0xf30 [ 33.850852][ T6092] hci_rfkill_set_block+0xf0/0x20c [ 33.851675][ T6092] rfkill_set_block+0x18c/0x37c [ 33.852443][ T6092] rfkill_fop_write+0x578/0x734 [ 33.853267][ T6092] vfs_write+0x2a0/0x910 [ 33.854042][ T6092] ksys_write+0x15c/0x26c [ 33.855021][ T6092] __arm64_sys_write+0x7c/0x90 [ 33.856145][ T6092] invoke_syscall+0x98/0x2b8 [ 33.857278][ T6092] el0_svc_common+0x130/0x23c [ 33.858355][ T6092] do_el0_svc+0x48/0x58 [ 33.859324][ T6092] el0_svc+0x54/0x158 [ 33.860287][ T6092] el0t_64_sync_handler+0x84/0xfc [ 33.861461][ T6092] el0t_64_sync+0x190/0x194