Warning: Permanently added '10.128.1.205' (ED25519) to the list of known hosts. executing program [ 42.642116][ T4025] [ 42.642783][ T4025] ====================================================== [ 42.644512][ T4025] WARNING: possible circular locking dependency detected [ 42.646232][ T4025] 5.15.165-syzkaller #0 Not tainted [ 42.647527][ T4025] ------------------------------------------------------ [ 42.649293][ T4025] syz-executor236/4025 is trying to acquire lock: [ 42.650925][ T4025] ffff0000cae88b98 ((work_completion)(&hdev->tx_work)){+.+.}-{0:0}, at: __flush_work+0xd0/0x1c0 [ 42.653494][ T4025] [ 42.653494][ T4025] but task is already holding lock: [ 42.655293][ T4025] ffff0000cae88ff0 (&hdev->req_lock){+.+.}-{3:3}, at: hci_dev_do_close+0x64/0x1060 [ 42.657687][ T4025] [ 42.657687][ T4025] which lock already depends on the new lock. [ 42.657687][ T4025] [ 42.660257][ T4025] [ 42.660257][ T4025] the existing dependency chain (in reverse order) is: [ 42.662501][ T4025] [ 42.662501][ T4025] -> #3 (&hdev->req_lock){+.+.}-{3:3}: [ 42.664430][ T4025] __mutex_lock_common+0x194/0x2154 [ 42.665842][ T4025] mutex_lock_nested+0xa4/0xf8 [ 42.667144][ T4025] hci_dev_do_close+0x64/0x1060 [ 42.668467][ T4025] hci_rfkill_set_block+0xdc/0x1d0 [ 42.669865][ T4025] rfkill_set_block+0x18c/0x37c [ 42.671221][ T4025] rfkill_fop_write+0x594/0x750 [ 42.672686][ T4025] vfs_write+0x280/0xb44 [ 42.673863][ T4025] ksys_write+0x15c/0x26c [ 42.675110][ T4025] __arm64_sys_write+0x7c/0x90 [ 42.676407][ T4025] invoke_syscall+0x98/0x2b8 [ 42.677664][ T4025] el0_svc_common+0x138/0x258 [ 42.678968][ T4025] do_el0_svc+0x58/0x14c [ 42.680191][ T4025] el0_svc+0x7c/0x1f0 [ 42.681360][ T4025] el0t_64_sync_handler+0x84/0xe4 [ 42.682769][ T4025] el0t_64_sync+0x1a0/0x1a4 [ 42.684000][ T4025] [ 42.684000][ T4025] -> #2 (rfkill_global_mutex){+.+.}-{3:3}: [ 42.685985][ T4025] __mutex_lock_common+0x194/0x2154 [ 42.687496][ T4025] mutex_lock_nested+0xa4/0xf8 [ 42.688844][ T4025] rfkill_register+0x44/0x7a4 [ 42.690231][ T4025] hci_register_dev+0x3e0/0x880 [ 42.691610][ T4025] vhci_create_device+0x2c4/0x568 [ 42.693092][ T4025] vhci_write+0x318/0x3b8 [ 42.694382][ T4025] vfs_write+0x884/0xb44 [ 42.695587][ T4025] ksys_write+0x15c/0x26c [ 42.696853][ T4025] __arm64_sys_write+0x7c/0x90 [ 42.698270][ T4025] invoke_syscall+0x98/0x2b8 [ 42.699643][ T4025] el0_svc_common+0x138/0x258 [ 42.700978][ T4025] do_el0_svc+0x58/0x14c [ 42.702216][ T4025] el0_svc+0x7c/0x1f0 [ 42.703487][ T4025] el0t_64_sync_handler+0x84/0xe4 [ 42.704962][ T4025] el0t_64_sync+0x1a0/0x1a4 [ 42.706241][ T4025] [ 42.706241][ T4025] -> #1 (&data->open_mutex){+.+.}-{3:3}: [ 42.708245][ T4025] __mutex_lock_common+0x194/0x2154 [ 42.709744][ T4025] mutex_lock_nested+0xa4/0xf8 [ 42.711153][ T4025] vhci_send_frame+0x8c/0x10c [ 42.712537][ T4025] hci_send_frame+0x194/0x2f0 [ 42.713935][ T4025] hci_tx_work+0x8d8/0x157c [ 42.715249][ T4025] process_one_work+0x790/0x11b8 [ 42.716744][ T4025] worker_thread+0x910/0x1034 [ 42.718136][ T4025] kthread+0x37c/0x45c [ 42.719352][ T4025] ret_from_fork+0x10/0x20 [ 42.720604][ T4025] [ 42.720604][ T4025] -> #0 ((work_completion)(&hdev->tx_work)){+.+.}-{0:0}: [ 42.722945][ T4025] __lock_acquire+0x32d4/0x7638 [ 42.724342][ T4025] lock_acquire+0x240/0x77c [ 42.725624][ T4025] __flush_work+0xf8/0x1c0 [ 42.726888][ T4025] flush_work+0x24/0x38 [ 42.728010][ T4025] hci_dev_do_close+0x16c/0x1060 [ 42.729375][ T4025] hci_rfkill_set_block+0xdc/0x1d0 [ 42.730816][ T4025] rfkill_set_block+0x18c/0x37c [ 42.732221][ T4025] rfkill_fop_write+0x594/0x750 [ 42.733616][ T4025] vfs_write+0x280/0xb44 [ 42.734855][ T4025] ksys_write+0x15c/0x26c [ 42.736137][ T4025] __arm64_sys_write+0x7c/0x90 [ 42.737498][ T4025] invoke_syscall+0x98/0x2b8 [ 42.738857][ T4025] el0_svc_common+0x138/0x258 [ 42.740223][ T4025] do_el0_svc+0x58/0x14c [ 42.741465][ T4025] el0_svc+0x7c/0x1f0 [ 42.742635][ T4025] el0t_64_sync_handler+0x84/0xe4 [ 42.744072][ T4025] el0t_64_sync+0x1a0/0x1a4 [ 42.745385][ T4025] [ 42.745385][ T4025] other info that might help us debug this: [ 42.745385][ T4025] [ 42.748001][ T4025] Chain exists of: [ 42.748001][ T4025] (work_completion)(&hdev->tx_work) --> rfkill_global_mutex --> &hdev->req_lock [ 42.748001][ T4025] [ 42.752077][ T4025] Possible unsafe locking scenario: [ 42.752077][ T4025] [ 42.753998][ T4025] CPU0 CPU1 [ 42.755430][ T4025] ---- ---- [ 42.756839][ T4025] lock(&hdev->req_lock); [ 42.758025][ T4025] lock(rfkill_global_mutex); [ 42.759934][ T4025] lock(&hdev->req_lock); [ 42.761868][ T4025] lock((work_completion)(&hdev->tx_work)); [ 42.763419][ T4025] [ 42.763419][ T4025] *** DEADLOCK *** [ 42.763419][ T4025] [ 42.765441][ T4025] 2 locks held by syz-executor236/4025: [ 42.766899][ T4025] #0: ffff800016e77d28 (rfkill_global_mutex){+.+.}-{3:3}, at: rfkill_fop_write+0x250/0x750 [ 42.769502][ T4025] #1: ffff0000cae88ff0 (&hdev->req_lock){+.+.}-{3:3}, at: hci_dev_do_close+0x64/0x1060 [ 42.771993][ T4025] [ 42.771993][ T4025] stack backtrace: [ 42.773564][ T4025] CPU: 0 PID: 4025 Comm: syz-executor236 Not tainted 5.15.165-syzkaller #0 [ 42.775866][ T4025] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024 [ 42.778648][ T4025] Call trace: [ 42.779476][ T4025] dump_backtrace+0x0/0x530 [ 42.780697][ T4025] show_stack+0x2c/0x3c [ 42.781712][ T4025] dump_stack_lvl+0x108/0x170 [ 42.782912][ T4025] dump_stack+0x1c/0x58 [ 42.784054][ T4025] print_circular_bug+0x150/0x1b8 [ 42.785334][ T4025] check_noncircular+0x2cc/0x378 [ 42.786674][ T4025] __lock_acquire+0x32d4/0x7638 [ 42.787903][ T4025] lock_acquire+0x240/0x77c [ 42.789190][ T4025] __flush_work+0xf8/0x1c0 [ 42.790341][ T4025] flush_work+0x24/0x38 [ 42.791420][ T4025] hci_dev_do_close+0x16c/0x1060 [ 42.792694][ T4025] hci_rfkill_set_block+0xdc/0x1d0 [ 42.794068][ T4025] rfkill_set_block+0x18c/0x37c [ 42.795458][ T4025] rfkill_fop_write+0x594/0x750 [ 42.796760][ T4025] vfs_write+0x280/0xb44 [ 42.797954][ T4025] ksys_write+0x15c/0x26c [ 42.799121][ T4025] __arm64_sys_write+0x7c/0x90 [ 42.800336][ T4025] invoke_syscall+0x98/0x2b8 [ 42.801524][ T4025] el0_svc_common+0x138/0x258 [ 42.802780][ T4025] do_el0_svc+0x58/0x14c [ 42.803853][ T4025] el0_svc+0x7c/0x1f0 [ 42.804879][ T4025] el0t_64_sync_handler+0x84/0xe4 [ 42.806212][ 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 executing program executing program executing program executing program executing program executing program executing program executing program