Warning: Permanently added '10.128.1.167' (ED25519) to the list of known hosts. executing program [ 43.442998][ T3570] [ 43.445363][ T3570] ====================================================== [ 43.452375][ T3570] WARNING: possible circular locking dependency detected [ 43.459474][ T3570] 5.15.164-syzkaller #0 Not tainted [ 43.464667][ T3570] ------------------------------------------------------ [ 43.471719][ T3570] syz-executor160/3570 is trying to acquire lock: [ 43.478129][ T3570] ffff888015790b98 ((work_completion)(&hdev->tx_work)){+.+.}-{0:0}, at: __flush_work+0xcf/0x1a0 [ 43.488595][ T3570] [ 43.488595][ T3570] but task is already holding lock: [ 43.495954][ T3570] ffff888015790ff0 (&hdev->req_lock){+.+.}-{3:3}, at: hci_dev_do_close+0x63/0x1070 [ 43.505271][ T3570] [ 43.505271][ T3570] which lock already depends on the new lock. [ 43.505271][ T3570] [ 43.515669][ T3570] [ 43.515669][ T3570] the existing dependency chain (in reverse order) is: [ 43.524685][ T3570] [ 43.524685][ T3570] -> #3 (&hdev->req_lock){+.+.}-{3:3}: [ 43.532333][ T3570] lock_acquire+0x1db/0x4f0 [ 43.537370][ T3570] __mutex_lock_common+0x1da/0x25a0 [ 43.543107][ T3570] mutex_lock_nested+0x17/0x20 [ 43.548398][ T3570] hci_dev_do_close+0x63/0x1070 [ 43.553776][ T3570] hci_rfkill_set_block+0x114/0x1a0 [ 43.559497][ T3570] rfkill_set_block+0x1e7/0x430 [ 43.564872][ T3570] rfkill_fop_write+0x5b7/0x790 [ 43.570247][ T3570] vfs_write+0x30c/0xe50 [ 43.575019][ T3570] ksys_write+0x1a2/0x2c0 [ 43.579873][ T3570] do_syscall_64+0x3b/0xb0 [ 43.584817][ T3570] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 43.591247][ T3570] [ 43.591247][ T3570] -> #2 (rfkill_global_mutex){+.+.}-{3:3}: [ 43.599240][ T3570] lock_acquire+0x1db/0x4f0 [ 43.604271][ T3570] __mutex_lock_common+0x1da/0x25a0 [ 43.610121][ T3570] mutex_lock_nested+0x17/0x20 [ 43.615589][ T3570] rfkill_register+0x30/0x880 [ 43.620793][ T3570] hci_register_dev+0x4dd/0xa50 [ 43.626167][ T3570] vhci_create_device+0x310/0x590 [ 43.631745][ T3570] vhci_write+0x382/0x430 [ 43.636605][ T3570] vfs_write+0xacd/0xe50 [ 43.641387][ T3570] ksys_write+0x1a2/0x2c0 [ 43.646243][ T3570] do_syscall_64+0x3b/0xb0 [ 43.651182][ T3570] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 43.657686][ T3570] [ 43.657686][ T3570] -> #1 (&data->open_mutex){+.+.}-{3:3}: [ 43.665511][ T3570] lock_acquire+0x1db/0x4f0 [ 43.670547][ T3570] __mutex_lock_common+0x1da/0x25a0 [ 43.676367][ T3570] mutex_lock_nested+0x17/0x20 [ 43.681662][ T3570] vhci_send_frame+0x8a/0xf0 [ 43.686779][ T3570] hci_send_frame+0x1af/0x2f0 [ 43.691981][ T3570] hci_tx_work+0xb0b/0x19d0 [ 43.697013][ T3570] process_one_work+0x8a1/0x10c0 [ 43.702477][ T3570] worker_thread+0xaca/0x1280 [ 43.707768][ T3570] kthread+0x3f6/0x4f0 [ 43.712361][ T3570] ret_from_fork+0x1f/0x30 [ 43.717307][ T3570] [ 43.717307][ T3570] -> #0 ((work_completion)(&hdev->tx_work)){+.+.}-{0:0}: [ 43.726517][ T3570] validate_chain+0x1649/0x5930 [ 43.731896][ T3570] __lock_acquire+0x1295/0x1ff0 [ 43.737275][ T3570] lock_acquire+0x1db/0x4f0 [ 43.742314][ T3570] __flush_work+0xeb/0x1a0 [ 43.747259][ T3570] hci_dev_do_close+0x20a/0x1070 [ 43.752730][ T3570] hci_rfkill_set_block+0x114/0x1a0 [ 43.758453][ T3570] rfkill_set_block+0x1e7/0x430 [ 43.763834][ T3570] rfkill_fop_write+0x5b7/0x790 [ 43.769211][ T3570] vfs_write+0x30c/0xe50 [ 43.773981][ T3570] ksys_write+0x1a2/0x2c0 [ 43.778836][ T3570] do_syscall_64+0x3b/0xb0 [ 43.783778][ T3570] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 43.790200][ T3570] [ 43.790200][ T3570] other info that might help us debug this: [ 43.790200][ T3570] [ 43.800429][ T3570] Chain exists of: [ 43.800429][ T3570] (work_completion)(&hdev->tx_work) --> rfkill_global_mutex --> &hdev->req_lock [ 43.800429][ T3570] [ 43.815462][ T3570] Possible unsafe locking scenario: [ 43.815462][ T3570] [ 43.822911][ T3570] CPU0 CPU1 [ 43.828274][ T3570] ---- ---- [ 43.833633][ T3570] lock(&hdev->req_lock); [ 43.838096][ T3570] lock(rfkill_global_mutex); [ 43.845382][ T3570] lock(&hdev->req_lock); [ 43.852320][ T3570] lock((work_completion)(&hdev->tx_work)); [ 43.858310][ T3570] [ 43.858310][ T3570] *** DEADLOCK *** [ 43.858310][ T3570] [ 43.866452][ T3570] 2 locks held by syz-executor160/3570: [ 43.871993][ T3570] #0: ffffffff8dcbcc48 (rfkill_global_mutex){+.+.}-{3:3}, at: rfkill_fop_write+0x1a5/0x790 [ 43.882096][ T3570] #1: ffff888015790ff0 (&hdev->req_lock){+.+.}-{3:3}, at: hci_dev_do_close+0x63/0x1070 [ 43.891856][ T3570] [ 43.891856][ T3570] stack backtrace: [ 43.897754][ T3570] CPU: 1 PID: 3570 Comm: syz-executor160 Not tainted 5.15.164-syzkaller #0 [ 43.906341][ T3570] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 [ 43.916500][ T3570] Call Trace: [ 43.919779][ T3570] [ 43.922711][ T3570] dump_stack_lvl+0x1e3/0x2d0 [ 43.927392][ T3570] ? io_uring_drop_tctx_refs+0x1a0/0x1a0 [ 43.933036][ T3570] ? print_circular_bug+0x12b/0x1a0 [ 43.938241][ T3570] check_noncircular+0x2f8/0x3b0 [ 43.943186][ T3570] ? add_chain_block+0x850/0x850 [ 43.948128][ T3570] ? lockdep_lock+0x11f/0x2a0 [ 43.952807][ T3570] ? stack_trace_save+0x113/0x1c0 [ 43.957838][ T3570] validate_chain+0x1649/0x5930 [ 43.962701][ T3570] ? reacquire_held_locks+0x660/0x660 [ 43.968075][ T3570] ? validate_chain+0x13bd/0x5930 [ 43.973106][ T3570] ? look_up_lock_class+0x77/0x120 [ 43.978223][ T3570] ? register_lock_class+0x100/0x9a0 [ 43.983514][ T3570] ? is_dynamic_key+0x1f0/0x1f0 [ 43.988374][ T3570] ? mark_lock+0x98/0x340 [ 43.992711][ T3570] __lock_acquire+0x1295/0x1ff0 [ 43.997578][ T3570] lock_acquire+0x1db/0x4f0 [ 44.002086][ T3570] ? __flush_work+0xcf/0x1a0 [ 44.006682][ T3570] ? read_lock_is_recursive+0x10/0x10 [ 44.012062][ T3570] ? mark_lock+0x98/0x340 [ 44.016397][ T3570] __flush_work+0xeb/0x1a0 [ 44.020839][ T3570] ? __flush_work+0xcf/0x1a0 [ 44.025432][ T3570] ? flush_work+0x20/0x20 [ 44.029775][ T3570] ? _raw_read_unlock_irqrestore+0xd9/0x130 [ 44.035688][ T3570] ? _raw_read_unlock+0x40/0x40 [ 44.040559][ T3570] ? led_trigger_event+0xa6/0xc0 [ 44.045510][ T3570] hci_dev_do_close+0x20a/0x1070 [ 44.050467][ T3570] ? _raw_spin_unlock_irqrestore+0xd9/0x130 [ 44.056368][ T3570] ? kmem_cache_alloc_trace+0x143/0x290 [ 44.061920][ T3570] hci_rfkill_set_block+0x114/0x1a0 [ 44.067133][ T3570] ? rcu_lock_release+0x20/0x20 [ 44.071991][ T3570] rfkill_set_block+0x1e7/0x430 [ 44.076857][ T3570] rfkill_fop_write+0x5b7/0x790 [ 44.081722][ T3570] ? mark_lock+0x98/0x340 [ 44.086060][ T3570] ? rfkill_fop_read+0x470/0x470 [ 44.091006][ T3570] ? fsnotify_perm+0x64/0x590 [ 44.095695][ T3570] ? security_file_permission+0x75/0xa0 [ 44.101249][ T3570] ? rfkill_fop_read+0x470/0x470 [ 44.106194][ T3570] vfs_write+0x30c/0xe50 [ 44.110448][ T3570] ? file_end_write+0x250/0x250 [ 44.115311][ T3570] ? read_lock_is_recursive+0x10/0x10 [ 44.120691][ T3570] ? __context_tracking_exit+0x4c/0x80 [ 44.126191][ T3570] ? __lock_acquire+0x1ff0/0x1ff0 [ 44.131222][ T3570] ? __fdget_pos+0x1e9/0x380 [ 44.135823][ T3570] ksys_write+0x1a2/0x2c0 [ 44.140154][ T3570] ? print_irqtrace_events+0x210/0x210 [ 44.145595][ T3570] ? __ia32_sys_read+0x80/0x80 [ 44.150335][ T3570] ? syscall_enter_from_user_mode+0x2e/0x240 [ 44.156293][ T3570] ? lockdep_hardirqs_on+0x94/0x130 [ 44.161469][ T3570] ? syscall_enter_from_user_mode+0x2e/0x240 [ 44.167424][ T3570] do_syscall_64+0x3b/0xb0 [ 44.171816][ T3570] ? clear_bhb_loop+0x15/0x70 [ 44.176467][ T3570] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 44.182343][ T3570] RIP: 0033:0x7fb1ddfb3e69 [ 44.186738][ T3570] Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 11 19 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48 [ 44.206491][ T3570] RSP: 002b:00007fff0ba8bf08 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 44.214882][ T3570] RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007fb1ddfb3e69 [ 44.222829][ T3570] RDX: 0000000000000008 RSI: 0000000020000080 RDI: 0000000000000003 [ 44.230777][ T3570] RBP: 00000000000f4240 R08: 0000555500000000 R09: 0000555500000000 [ 44.238727][ T3570] R10: 0000000000000000 R11: 0000000000000246 R12: 00007fff0ba8bf50 executing program executing program executing program executing program [ 44.246694][ T3570] R13: 00007fff0ba8bf60 R14: 00007fb1de01123c R15: 00007fb1de00b0b9 [ 44.254646][ T3570] executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program