Warning: Permanently added '10.128.0.117' (ED25519) to the list of known hosts. executing program [ 44.491275][ T4025] [ 44.491933][ T4025] ====================================================== [ 44.493832][ T4025] WARNING: possible circular locking dependency detected [ 44.495986][ T4025] 5.15.165-syzkaller #0 Not tainted [ 44.497431][ T4025] ------------------------------------------------------ [ 44.499269][ T4025] syz-executor246/4025 is trying to acquire lock: [ 44.500964][ T4025] ffff0000ca074b98 ((work_completion)(&hdev->tx_work)){+.+.}-{0:0}, at: __flush_work+0xd0/0x1c0 [ 44.503889][ T4025] [ 44.503889][ T4025] but task is already holding lock: [ 44.505959][ T4025] ffff0000ca074ff0 (&hdev->req_lock){+.+.}-{3:3}, at: hci_dev_do_close+0x64/0x1060 [ 44.508506][ T4025] [ 44.508506][ T4025] which lock already depends on the new lock. [ 44.508506][ T4025] [ 44.511341][ T4025] [ 44.511341][ T4025] the existing dependency chain (in reverse order) is: [ 44.513781][ T4025] [ 44.513781][ T4025] -> #3 (&hdev->req_lock){+.+.}-{3:3}: [ 44.515919][ T4025] __mutex_lock_common+0x194/0x2154 [ 44.517516][ T4025] mutex_lock_nested+0xa4/0xf8 [ 44.518922][ T4025] hci_dev_do_close+0x64/0x1060 [ 44.520395][ T4025] hci_rfkill_set_block+0xdc/0x1d0 [ 44.521943][ T4025] rfkill_set_block+0x18c/0x37c [ 44.523424][ T4025] rfkill_fop_write+0x594/0x750 [ 44.524962][ T4025] vfs_write+0x280/0xb44 [ 44.526298][ T4025] ksys_write+0x15c/0x26c [ 44.527623][ T4025] __arm64_sys_write+0x7c/0x90 [ 44.529064][ T4025] invoke_syscall+0x98/0x2b8 [ 44.530442][ T4025] el0_svc_common+0x138/0x258 [ 44.531863][ T4025] do_el0_svc+0x58/0x14c [ 44.533163][ T4025] el0_svc+0x7c/0x1f0 [ 44.534349][ T4025] el0t_64_sync_handler+0x84/0xe4 [ 44.535837][ T4025] el0t_64_sync+0x1a0/0x1a4 [ 44.537189][ T4025] [ 44.537189][ T4025] -> #2 (rfkill_global_mutex){+.+.}-{3:3}: [ 44.539405][ T4025] __mutex_lock_common+0x194/0x2154 [ 44.541050][ T4025] mutex_lock_nested+0xa4/0xf8 [ 44.542515][ T4025] rfkill_register+0x44/0x7a4 [ 44.543986][ T4025] hci_register_dev+0x3e0/0x880 [ 44.545461][ T4025] vhci_create_device+0x2c4/0x568 [ 44.547038][ T4025] vhci_write+0x318/0x3b8 [ 44.548387][ T4025] vfs_write+0x884/0xb44 [ 44.549663][ T4025] ksys_write+0x15c/0x26c [ 44.551007][ T4025] __arm64_sys_write+0x7c/0x90 [ 44.552489][ T4025] invoke_syscall+0x98/0x2b8 [ 44.554110][ T4025] el0_svc_common+0x138/0x258 [ 44.555552][ T4025] do_el0_svc+0x58/0x14c [ 44.556829][ T4025] el0_svc+0x7c/0x1f0 [ 44.558133][ T4025] el0t_64_sync_handler+0x84/0xe4 [ 44.559644][ T4025] el0t_64_sync+0x1a0/0x1a4 [ 44.560976][ T4025] [ 44.560976][ T4025] -> #1 (&data->open_mutex){+.+.}-{3:3}: [ 44.563056][ T4025] __mutex_lock_common+0x194/0x2154 [ 44.564563][ T4025] mutex_lock_nested+0xa4/0xf8 [ 44.566025][ T4025] vhci_send_frame+0x8c/0x10c [ 44.567454][ T4025] hci_send_frame+0x194/0x2f0 [ 44.568872][ T4025] hci_tx_work+0x8d8/0x157c [ 44.570245][ T4025] process_one_work+0x790/0x11b8 [ 44.571778][ T4025] worker_thread+0x910/0x1034 [ 44.573187][ T4025] kthread+0x37c/0x45c [ 44.574471][ T4025] ret_from_fork+0x10/0x20 [ 44.575805][ T4025] [ 44.575805][ T4025] -> #0 ((work_completion)(&hdev->tx_work)){+.+.}-{0:0}: [ 44.578289][ T4025] __lock_acquire+0x32d4/0x7638 [ 44.579712][ T4025] lock_acquire+0x240/0x77c [ 44.581069][ T4025] __flush_work+0xf8/0x1c0 [ 44.582418][ T4025] flush_work+0x24/0x38 [ 44.583674][ T4025] hci_dev_do_close+0x16c/0x1060 [ 44.585152][ T4025] hci_rfkill_set_block+0xdc/0x1d0 [ 44.586645][ T4025] rfkill_set_block+0x18c/0x37c [ 44.588179][ T4025] rfkill_fop_write+0x594/0x750 [ 44.589693][ T4025] vfs_write+0x280/0xb44 [ 44.590953][ T4025] ksys_write+0x15c/0x26c [ 44.592276][ T4025] __arm64_sys_write+0x7c/0x90 [ 44.593748][ T4025] invoke_syscall+0x98/0x2b8 [ 44.595178][ T4025] el0_svc_common+0x138/0x258 [ 44.596601][ T4025] do_el0_svc+0x58/0x14c [ 44.597885][ T4025] el0_svc+0x7c/0x1f0 [ 44.599103][ T4025] el0t_64_sync_handler+0x84/0xe4 [ 44.600584][ T4025] el0t_64_sync+0x1a0/0x1a4 [ 44.601907][ T4025] [ 44.601907][ T4025] other info that might help us debug this: [ 44.601907][ T4025] [ 44.604795][ T4025] Chain exists of: [ 44.604795][ T4025] (work_completion)(&hdev->tx_work) --> rfkill_global_mutex --> &hdev->req_lock [ 44.604795][ T4025] [ 44.608932][ T4025] Possible unsafe locking scenario: [ 44.608932][ T4025] [ 44.611136][ T4025] CPU0 CPU1 [ 44.612607][ T4025] ---- ---- [ 44.614134][ T4025] lock(&hdev->req_lock); [ 44.615423][ T4025] lock(rfkill_global_mutex); [ 44.617385][ T4025] lock(&hdev->req_lock); [ 44.619265][ T4025] lock((work_completion)(&hdev->tx_work)); [ 44.620903][ T4025] [ 44.620903][ T4025] *** DEADLOCK *** [ 44.620903][ T4025] [ 44.623131][ T4025] 2 locks held by syz-executor246/4025: [ 44.624689][ T4025] #0: ffff800016e77d28 (rfkill_global_mutex){+.+.}-{3:3}, at: rfkill_fop_write+0x250/0x750 [ 44.627523][ T4025] #1: ffff0000ca074ff0 (&hdev->req_lock){+.+.}-{3:3}, at: hci_dev_do_close+0x64/0x1060 [ 44.630205][ T4025] [ 44.630205][ T4025] stack backtrace: [ 44.631858][ T4025] CPU: 0 PID: 4025 Comm: syz-executor246 Not tainted 5.15.165-syzkaller #0 [ 44.634200][ T4025] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024 [ 44.636884][ T4025] Call trace: [ 44.637791][ T4025] dump_backtrace+0x0/0x530 [ 44.638959][ T4025] show_stack+0x2c/0x3c [ 44.640015][ T4025] dump_stack_lvl+0x108/0x170 [ 44.641247][ T4025] dump_stack+0x1c/0x58 [ 44.642443][ T4025] print_circular_bug+0x150/0x1b8 [ 44.643811][ T4025] check_noncircular+0x2cc/0x378 [ 44.645152][ T4025] __lock_acquire+0x32d4/0x7638 [ 44.646529][ T4025] lock_acquire+0x240/0x77c [ 44.647784][ T4025] __flush_work+0xf8/0x1c0 [ 44.649095][ T4025] flush_work+0x24/0x38 [ 44.650517][ T4025] hci_dev_do_close+0x16c/0x1060 [ 44.651946][ T4025] hci_rfkill_set_block+0xdc/0x1d0 [ 44.653471][ T4025] rfkill_set_block+0x18c/0x37c [ 44.654780][ T4025] rfkill_fop_write+0x594/0x750 [ 44.656520][ T4025] vfs_write+0x280/0xb44 [ 44.657742][ T4025] ksys_write+0x15c/0x26c [ 44.659038][ T4025] __arm64_sys_write+0x7c/0x90 [ 44.660411][ T4025] invoke_syscall+0x98/0x2b8 [ 44.661673][ T4025] el0_svc_common+0x138/0x258 [ 44.663138][ T4025] do_el0_svc+0x58/0x14c [ 44.664622][ T4025] el0_svc+0x7c/0x1f0 [ 44.665652][ T4025] el0t_64_sync_handler+0x84/0xe4 [ 44.666972][ T4025] el0t_64_sync+0x1a0/0x1a4 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program