Warning: Permanently added '10.128.0.82' (ED25519) to the list of known hosts. executing program [ 54.561713][ T3572] [ 54.564092][ T3572] ====================================================== [ 54.571198][ T3572] WARNING: possible circular locking dependency detected [ 54.578219][ T3572] 5.15.165-syzkaller #0 Not tainted [ 54.583505][ T3572] ------------------------------------------------------ [ 54.590523][ T3572] syz-executor105/3572 is trying to acquire lock: [ 54.596942][ T3572] ffff888015bc4b98 ((work_completion)(&hdev->tx_work)){+.+.}-{0:0}, at: __flush_work+0xcf/0x1a0 [ 54.607428][ T3572] [ 54.607428][ T3572] but task is already holding lock: [ 54.614805][ T3572] ffff888015bc4ff0 (&hdev->req_lock){+.+.}-{3:3}, at: hci_dev_do_close+0x63/0x1070 [ 54.624284][ T3572] [ 54.624284][ T3572] which lock already depends on the new lock. [ 54.624284][ T3572] [ 54.634795][ T3572] [ 54.634795][ T3572] the existing dependency chain (in reverse order) is: [ 54.643819][ T3572] [ 54.643819][ T3572] -> #3 (&hdev->req_lock){+.+.}-{3:3}: [ 54.651488][ T3572] lock_acquire+0x1db/0x4f0 [ 54.656533][ T3572] __mutex_lock_common+0x1da/0x25a0 [ 54.662292][ T3572] mutex_lock_nested+0x17/0x20 [ 54.667596][ T3572] hci_dev_do_close+0x63/0x1070 [ 54.673011][ T3572] hci_rfkill_set_block+0x114/0x1a0 [ 54.678748][ T3572] rfkill_set_block+0x1e7/0x430 [ 54.684131][ T3572] rfkill_fop_write+0x5b7/0x790 [ 54.689518][ T3572] do_iter_write+0x39c/0x760 [ 54.694645][ T3572] do_writev+0x281/0x470 [ 54.699426][ T3572] do_syscall_64+0x3b/0xb0 [ 54.704377][ T3572] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 54.710812][ T3572] [ 54.710812][ T3572] -> #2 (rfkill_global_mutex){+.+.}-{3:3}: [ 54.718819][ T3572] lock_acquire+0x1db/0x4f0 [ 54.723856][ T3572] __mutex_lock_common+0x1da/0x25a0 [ 54.729604][ T3572] mutex_lock_nested+0x17/0x20 [ 54.734910][ T3572] rfkill_register+0x30/0x880 [ 54.740120][ T3572] hci_register_dev+0x4dd/0xa50 [ 54.745512][ T3572] vhci_create_device+0x310/0x590 [ 54.751078][ T3572] vhci_write+0x382/0x430 [ 54.755944][ T3572] vfs_write+0xacd/0xe50 [ 54.760807][ T3572] ksys_write+0x1a2/0x2c0 [ 54.765673][ T3572] do_syscall_64+0x3b/0xb0 [ 54.770625][ T3572] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 54.777064][ T3572] [ 54.777064][ T3572] -> #1 (&data->open_mutex){+.+.}-{3:3}: [ 54.784900][ T3572] lock_acquire+0x1db/0x4f0 [ 54.789940][ T3572] __mutex_lock_common+0x1da/0x25a0 [ 54.795698][ T3572] mutex_lock_nested+0x17/0x20 [ 54.801020][ T3572] vhci_send_frame+0x8a/0xf0 [ 54.806158][ T3572] hci_send_frame+0x1af/0x2f0 [ 54.811370][ T3572] hci_tx_work+0xb0b/0x19d0 [ 54.816408][ T3572] process_one_work+0x8a1/0x10c0 [ 54.821890][ T3572] worker_thread+0xaca/0x1280 [ 54.827102][ T3572] kthread+0x3f6/0x4f0 [ 54.831719][ T3572] ret_from_fork+0x1f/0x30 [ 54.836671][ T3572] [ 54.836671][ T3572] -> #0 ((work_completion)(&hdev->tx_work)){+.+.}-{0:0}: [ 54.845894][ T3572] validate_chain+0x1649/0x5930 [ 54.851276][ T3572] __lock_acquire+0x1295/0x1ff0 [ 54.856660][ T3572] lock_acquire+0x1db/0x4f0 [ 54.861696][ T3572] __flush_work+0xeb/0x1a0 [ 54.866644][ T3572] hci_dev_do_close+0x20a/0x1070 [ 54.872115][ T3572] hci_rfkill_set_block+0x114/0x1a0 [ 54.877845][ T3572] rfkill_set_block+0x1e7/0x430 [ 54.883226][ T3572] rfkill_fop_write+0x5b7/0x790 [ 54.888617][ T3572] do_iter_write+0x39c/0x760 [ 54.893742][ T3572] do_writev+0x281/0x470 [ 54.898518][ T3572] do_syscall_64+0x3b/0xb0 [ 54.903557][ T3572] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 54.909994][ T3572] [ 54.909994][ T3572] other info that might help us debug this: [ 54.909994][ T3572] [ 54.920229][ T3572] Chain exists of: [ 54.920229][ T3572] (work_completion)(&hdev->tx_work) --> rfkill_global_mutex --> &hdev->req_lock [ 54.920229][ T3572] [ 54.935285][ T3572] Possible unsafe locking scenario: [ 54.935285][ T3572] [ 54.942735][ T3572] CPU0 CPU1 [ 54.948105][ T3572] ---- ---- [ 54.953472][ T3572] lock(&hdev->req_lock); [ 54.957906][ T3572] lock(rfkill_global_mutex); [ 54.965206][ T3572] lock(&hdev->req_lock); [ 54.972150][ T3572] lock((work_completion)(&hdev->tx_work)); [ 54.978144][ T3572] [ 54.978144][ T3572] *** DEADLOCK *** [ 54.978144][ T3572] [ 54.986299][ T3572] 2 locks held by syz-executor105/3572: [ 54.991849][ T3572] #0: ffffffff8dcbd1a8 (rfkill_global_mutex){+.+.}-{3:3}, at: rfkill_fop_write+0x1a5/0x790 [ 55.001968][ T3572] #1: ffff888015bc4ff0 (&hdev->req_lock){+.+.}-{3:3}, at: hci_dev_do_close+0x63/0x1070 [ 55.011753][ T3572] [ 55.011753][ T3572] stack backtrace: [ 55.017658][ T3572] CPU: 0 PID: 3572 Comm: syz-executor105 Not tainted 5.15.165-syzkaller #0 [ 55.026268][ T3572] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 [ 55.036338][ T3572] Call Trace: [ 55.039635][ T3572] [ 55.042587][ T3572] dump_stack_lvl+0x1e3/0x2d0 [ 55.047282][ T3572] ? io_uring_drop_tctx_refs+0x1a0/0x1a0 [ 55.053037][ T3572] ? print_circular_bug+0x12b/0x1a0 [ 55.058251][ T3572] check_noncircular+0x2f8/0x3b0 [ 55.063208][ T3572] ? add_chain_block+0x850/0x850 [ 55.068162][ T3572] ? lockdep_lock+0x11f/0x2a0 [ 55.072938][ T3572] ? stack_trace_save+0x113/0x1c0 [ 55.078023][ T3572] validate_chain+0x1649/0x5930 [ 55.083113][ T3572] ? reacquire_held_locks+0x660/0x660 [ 55.088498][ T3572] ? validate_chain+0x13bd/0x5930 [ 55.093570][ T3572] ? look_up_lock_class+0x77/0x120 [ 55.098699][ T3572] ? register_lock_class+0x100/0x9a0 [ 55.103996][ T3572] ? reacquire_held_locks+0x660/0x660 [ 55.109386][ T3572] ? is_dynamic_key+0x1f0/0x1f0 [ 55.114251][ T3572] ? mark_lock+0x98/0x340 [ 55.118595][ T3572] __lock_acquire+0x1295/0x1ff0 [ 55.123464][ T3572] lock_acquire+0x1db/0x4f0 [ 55.127980][ T3572] ? __flush_work+0xcf/0x1a0 [ 55.132602][ T3572] ? mark_lock+0x98/0x340 [ 55.136955][ T3572] ? read_lock_is_recursive+0x10/0x10 [ 55.142343][ T3572] ? __lock_acquire+0x1295/0x1ff0 [ 55.147393][ T3572] __flush_work+0xeb/0x1a0 [ 55.151833][ T3572] ? __flush_work+0xcf/0x1a0 [ 55.156440][ T3572] ? flush_work+0x20/0x20 [ 55.160814][ T3572] hci_dev_do_close+0x20a/0x1070 [ 55.165786][ T3572] ? _raw_spin_unlock_irqrestore+0xd9/0x130 [ 55.171704][ T3572] ? kmem_cache_alloc_trace+0x143/0x290 [ 55.177270][ T3572] hci_rfkill_set_block+0x114/0x1a0 [ 55.182489][ T3572] ? rcu_lock_release+0x20/0x20 [ 55.187355][ T3572] rfkill_set_block+0x1e7/0x430 [ 55.192225][ T3572] rfkill_fop_write+0x5b7/0x790 [ 55.197101][ T3572] ? rfkill_fop_read+0x470/0x470 [ 55.202058][ T3572] do_iter_write+0x39c/0x760 [ 55.206698][ T3572] do_writev+0x281/0x470 [ 55.211052][ T3572] ? do_readv+0x460/0x460 [ 55.215414][ T3572] ? lockdep_hardirqs_on_prepare+0x438/0x7a0 [ 55.221413][ T3572] ? vtime_user_exit+0x2d1/0x400 [ 55.226370][ T3572] ? syscall_enter_from_user_mode+0x2e/0x240 [ 55.232491][ T3572] ? lockdep_hardirqs_on+0x94/0x130 [ 55.237725][ T3572] ? syscall_enter_from_user_mode+0x2e/0x240 [ 55.243723][ T3572] do_syscall_64+0x3b/0xb0 [ 55.248152][ T3572] ? clear_bhb_loop+0x15/0x70 [ 55.252952][ T3572] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 55.258955][ T3572] RIP: 0033:0x7f1b95803ea9 [ 55.263391][ T3572] 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 [ 55.283013][ T3572] RSP: 002b:00007ffcd2138c38 EFLAGS: 00000246 ORIG_RAX: 0000000000000014 [ 55.291451][ T3572] RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007f1b95803ea9 [ 55.299435][ T3572] RDX: 0000000000000007 RSI: 0000000020000440 RDI: 0000000000000003 [ 55.307452][ T3572] RBP: 00000000000f4240 R08: 0000555500000000 R09: 0000555500000000 executing program [ 55.315443][ T3572] R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffcd2138c90 [ 55.323425][ T3572] R13: 00007ffcd2138c80 R14: 00007f1b9586123c R15: 00007f1b9585b0b9 [ 55.331417][ T3572] executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program