Warning: Permanently added '10.128.1.64' (ED25519) to the list of known hosts. executing program [ 54.603364][ T3571] [ 54.605742][ T3571] ====================================================== [ 54.612762][ T3571] WARNING: possible circular locking dependency detected [ 54.619782][ T3571] 5.15.165-syzkaller #0 Not tainted [ 54.624980][ T3571] ------------------------------------------------------ [ 54.632099][ T3571] syz-executor250/3571 is trying to acquire lock: [ 54.638605][ T3571] ffff888012fc8b98 ((work_completion)(&hdev->tx_work)){+.+.}-{0:0}, at: __flush_work+0xcf/0x1a0 [ 54.649097][ T3571] [ 54.649097][ T3571] but task is already holding lock: [ 54.656468][ T3571] ffff888012fc8ff0 (&hdev->req_lock){+.+.}-{3:3}, at: hci_dev_do_close+0x63/0x1070 [ 54.666220][ T3571] [ 54.666220][ T3571] which lock already depends on the new lock. [ 54.666220][ T3571] [ 54.676641][ T3571] [ 54.676641][ T3571] the existing dependency chain (in reverse order) is: [ 54.685666][ T3571] [ 54.685666][ T3571] -> #3 (&hdev->req_lock){+.+.}-{3:3}: [ 54.693333][ T3571] lock_acquire+0x1db/0x4f0 [ 54.698372][ T3571] __mutex_lock_common+0x1da/0x25a0 [ 54.704122][ T3571] mutex_lock_nested+0x17/0x20 [ 54.709421][ T3571] hci_dev_do_close+0x63/0x1070 [ 54.714813][ T3571] hci_rfkill_set_block+0x114/0x1a0 [ 54.720647][ T3571] rfkill_set_block+0x1e7/0x430 [ 54.726038][ T3571] rfkill_fop_write+0x5b7/0x790 [ 54.731428][ T3571] vfs_write+0x30c/0xe50 [ 54.736211][ T3571] ksys_write+0x1a2/0x2c0 [ 54.741103][ T3571] do_syscall_64+0x3b/0xb0 [ 54.746059][ T3571] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 54.752628][ T3571] [ 54.752628][ T3571] -> #2 (rfkill_global_mutex){+.+.}-{3:3}: [ 54.760648][ T3571] lock_acquire+0x1db/0x4f0 [ 54.765700][ T3571] __mutex_lock_common+0x1da/0x25a0 [ 54.771446][ T3571] mutex_lock_nested+0x17/0x20 [ 54.776749][ T3571] rfkill_register+0x30/0x880 [ 54.781963][ T3571] hci_register_dev+0x4dd/0xa50 [ 54.787354][ T3571] vhci_create_device+0x310/0x590 [ 54.792920][ T3571] vhci_write+0x382/0x430 [ 54.797852][ T3571] vfs_write+0xacd/0xe50 [ 54.802631][ T3571] ksys_write+0x1a2/0x2c0 [ 54.807504][ T3571] do_syscall_64+0x3b/0xb0 [ 54.812461][ T3571] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 54.818942][ T3571] [ 54.818942][ T3571] -> #1 (&data->open_mutex){+.+.}-{3:3}: [ 54.826787][ T3571] lock_acquire+0x1db/0x4f0 [ 54.831830][ T3571] __mutex_lock_common+0x1da/0x25a0 [ 54.837565][ T3571] mutex_lock_nested+0x17/0x20 [ 54.842866][ T3571] vhci_send_frame+0x8a/0xf0 [ 54.848003][ T3571] hci_send_frame+0x1af/0x2f0 [ 54.853218][ T3571] hci_tx_work+0xb0b/0x19d0 [ 54.858264][ T3571] process_one_work+0x8a1/0x10c0 [ 54.863740][ T3571] worker_thread+0xaca/0x1280 [ 54.868959][ T3571] kthread+0x3f6/0x4f0 [ 54.873564][ T3571] ret_from_fork+0x1f/0x30 [ 54.878520][ T3571] [ 54.878520][ T3571] -> #0 ((work_completion)(&hdev->tx_work)){+.+.}-{0:0}: [ 54.887831][ T3571] validate_chain+0x1649/0x5930 [ 54.893221][ T3571] __lock_acquire+0x1295/0x1ff0 [ 54.898611][ T3571] lock_acquire+0x1db/0x4f0 [ 54.903648][ T3571] __flush_work+0xeb/0x1a0 [ 54.908598][ T3571] hci_dev_do_close+0x20a/0x1070 [ 54.914073][ T3571] hci_rfkill_set_block+0x114/0x1a0 [ 54.919824][ T3571] rfkill_set_block+0x1e7/0x430 [ 54.925209][ T3571] rfkill_fop_write+0x5b7/0x790 [ 54.930708][ T3571] vfs_write+0x30c/0xe50 [ 54.935583][ T3571] ksys_write+0x1a2/0x2c0 [ 54.940556][ T3571] do_syscall_64+0x3b/0xb0 [ 54.945512][ T3571] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 54.951952][ T3571] [ 54.951952][ T3571] other info that might help us debug this: [ 54.951952][ T3571] [ 54.962276][ T3571] Chain exists of: [ 54.962276][ T3571] (work_completion)(&hdev->tx_work) --> rfkill_global_mutex --> &hdev->req_lock [ 54.962276][ T3571] [ 54.977350][ T3571] Possible unsafe locking scenario: [ 54.977350][ T3571] [ 54.984815][ T3571] CPU0 CPU1 [ 54.990234][ T3571] ---- ---- [ 54.995605][ T3571] lock(&hdev->req_lock); [ 55.000031][ T3571] lock(rfkill_global_mutex); [ 55.007320][ T3571] lock(&hdev->req_lock); [ 55.014267][ T3571] lock((work_completion)(&hdev->tx_work)); [ 55.020253][ T3571] [ 55.020253][ T3571] *** DEADLOCK *** [ 55.020253][ T3571] [ 55.028401][ T3571] 2 locks held by syz-executor250/3571: [ 55.033956][ T3571] #0: ffffffff8dcbd1a8 (rfkill_global_mutex){+.+.}-{3:3}, at: rfkill_fop_write+0x1a5/0x790 [ 55.044077][ T3571] #1: ffff888012fc8ff0 (&hdev->req_lock){+.+.}-{3:3}, at: hci_dev_do_close+0x63/0x1070 [ 55.053952][ T3571] [ 55.053952][ T3571] stack backtrace: [ 55.059857][ T3571] CPU: 1 PID: 3571 Comm: syz-executor250 Not tainted 5.15.165-syzkaller #0 [ 55.068462][ T3571] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 [ 55.078703][ T3571] Call Trace: [ 55.082177][ T3571] [ 55.085124][ T3571] dump_stack_lvl+0x1e3/0x2d0 [ 55.089823][ T3571] ? io_uring_drop_tctx_refs+0x1a0/0x1a0 [ 55.095479][ T3571] ? print_circular_bug+0x12b/0x1a0 [ 55.100809][ T3571] check_noncircular+0x2f8/0x3b0 [ 55.105780][ T3571] ? add_chain_block+0x850/0x850 [ 55.110736][ T3571] ? lockdep_lock+0x11f/0x2a0 [ 55.115434][ T3571] ? stack_trace_save+0x113/0x1c0 [ 55.120480][ T3571] validate_chain+0x1649/0x5930 [ 55.125363][ T3571] ? reacquire_held_locks+0x660/0x660 [ 55.130751][ T3571] ? validate_chain+0x13bd/0x5930 [ 55.135800][ T3571] ? look_up_lock_class+0x77/0x120 [ 55.140934][ T3571] ? register_lock_class+0x100/0x9a0 [ 55.146239][ T3571] ? reacquire_held_locks+0x660/0x660 [ 55.151630][ T3571] ? is_dynamic_key+0x1f0/0x1f0 [ 55.156498][ T3571] ? mark_lock+0x98/0x340 [ 55.160846][ T3571] __lock_acquire+0x1295/0x1ff0 [ 55.165720][ T3571] lock_acquire+0x1db/0x4f0 [ 55.170239][ T3571] ? __flush_work+0xcf/0x1a0 [ 55.174845][ T3571] ? mark_lock+0x98/0x340 [ 55.179189][ T3571] ? read_lock_is_recursive+0x10/0x10 [ 55.184577][ T3571] ? __lock_acquire+0x1295/0x1ff0 [ 55.189625][ T3571] __flush_work+0xeb/0x1a0 [ 55.194067][ T3571] ? __flush_work+0xcf/0x1a0 [ 55.198680][ T3571] ? flush_work+0x20/0x20 [ 55.203040][ T3571] hci_dev_do_close+0x20a/0x1070 [ 55.208001][ T3571] ? _raw_spin_unlock_irqrestore+0xd9/0x130 [ 55.214006][ T3571] ? kmem_cache_alloc_trace+0x143/0x290 [ 55.219573][ T3571] hci_rfkill_set_block+0x114/0x1a0 [ 55.224808][ T3571] ? rcu_lock_release+0x20/0x20 [ 55.229762][ T3571] rfkill_set_block+0x1e7/0x430 [ 55.234636][ T3571] rfkill_fop_write+0x5b7/0x790 [ 55.239509][ T3571] ? mark_lock+0x98/0x340 [ 55.243857][ T3571] ? rfkill_fop_read+0x470/0x470 [ 55.248831][ T3571] ? fsnotify_perm+0x64/0x590 [ 55.253525][ T3571] ? security_file_permission+0x75/0xa0 [ 55.259091][ T3571] ? rfkill_fop_read+0x470/0x470 [ 55.264136][ T3571] vfs_write+0x30c/0xe50 [ 55.268403][ T3571] ? file_end_write+0x250/0x250 [ 55.273277][ T3571] ? read_lock_is_recursive+0x10/0x10 [ 55.278667][ T3571] ? __context_tracking_exit+0x4c/0x80 [ 55.284144][ T3571] ? __lock_acquire+0x1ff0/0x1ff0 [ 55.289287][ T3571] ? __fdget_pos+0x1e9/0x380 [ 55.293898][ T3571] ksys_write+0x1a2/0x2c0 [ 55.298252][ T3571] ? print_irqtrace_events+0x210/0x210 [ 55.303813][ T3571] ? __ia32_sys_read+0x80/0x80 [ 55.308737][ T3571] ? syscall_enter_from_user_mode+0x2e/0x240 [ 55.314878][ T3571] ? lockdep_hardirqs_on+0x94/0x130 [ 55.320110][ T3571] ? syscall_enter_from_user_mode+0x2e/0x240 [ 55.326123][ T3571] do_syscall_64+0x3b/0xb0 [ 55.330563][ T3571] ? clear_bhb_loop+0x15/0x70 [ 55.335348][ T3571] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 55.341409][ T3571] RIP: 0033:0x7fdd08b5ae69 [ 55.345850][ T3571] 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.365479][ T3571] RSP: 002b:00007fffcc918848 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 55.373924][ T3571] RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007fdd08b5ae69 [ 55.382001][ T3571] RDX: 0000000000000008 RSI: 0000000020000080 RDI: 0000000000000003 [ 55.389990][ T3571] RBP: 00000000000f4240 R08: 0000555500000000 R09: 0000555500000000 [ 55.397978][ T3571] R10: 0000000000000000 R11: 0000000000000246 R12: 00007fffcc918890 executing program executing program [ 55.406053][ T3571] R13: 00007fffcc9188a0 R14: 00007fdd08bb823c R15: 00007fdd08bb20b9 [ 55.414234][ T3571] executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program