Warning: Permanently added '10.128.0.245' (ED25519) to the list of known hosts. executing program syzkaller login: [ 52.716921][ T3572] [ 52.719274][ T3572] ====================================================== [ 52.726280][ T3572] WARNING: possible circular locking dependency detected [ 52.733290][ T3572] 5.15.164-syzkaller #0 Not tainted [ 52.738470][ T3572] ------------------------------------------------------ [ 52.745470][ T3572] syz-executor115/3572 is trying to acquire lock: [ 52.751886][ T3572] ffff888014be0b98 ((work_completion)(&hdev->tx_work)){+.+.}-{0:0}, at: __flush_work+0xcf/0x1a0 [ 52.762329][ T3572] [ 52.762329][ T3572] but task is already holding lock: [ 52.769704][ T3572] ffff888014be0ff0 (&hdev->req_lock){+.+.}-{3:3}, at: hci_dev_do_close+0x63/0x1070 [ 52.779133][ T3572] [ 52.779133][ T3572] which lock already depends on the new lock. [ 52.779133][ T3572] [ 52.789633][ T3572] [ 52.789633][ T3572] the existing dependency chain (in reverse order) is: [ 52.798641][ T3572] [ 52.798641][ T3572] -> #3 (&hdev->req_lock){+.+.}-{3:3}: [ 52.806276][ T3572] lock_acquire+0x1db/0x4f0 [ 52.811297][ T3572] __mutex_lock_common+0x1da/0x25a0 [ 52.817017][ T3572] mutex_lock_nested+0x17/0x20 [ 52.822303][ T3572] hci_dev_do_close+0x63/0x1070 [ 52.827677][ T3572] hci_rfkill_set_block+0x114/0x1a0 [ 52.833382][ T3572] rfkill_set_block+0x1e7/0x430 [ 52.838740][ T3572] rfkill_fop_write+0x5b7/0x790 [ 52.844096][ T3572] vfs_write+0x30c/0xe50 [ 52.848858][ T3572] ksys_write+0x1a2/0x2c0 [ 52.853706][ T3572] do_syscall_64+0x3b/0xb0 [ 52.858627][ T3572] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 52.865028][ T3572] [ 52.865028][ T3572] -> #2 (rfkill_global_mutex){+.+.}-{3:3}: [ 52.873006][ T3572] lock_acquire+0x1db/0x4f0 [ 52.878054][ T3572] __mutex_lock_common+0x1da/0x25a0 [ 52.883770][ T3572] mutex_lock_nested+0x17/0x20 [ 52.889059][ T3572] rfkill_register+0x30/0x880 [ 52.894239][ T3572] hci_register_dev+0x4dd/0xa50 [ 52.899595][ T3572] vhci_create_device+0x310/0x590 [ 52.905125][ T3572] vhci_write+0x382/0x430 [ 52.909958][ T3572] vfs_write+0xacd/0xe50 [ 52.914901][ T3572] ksys_write+0x1a2/0x2c0 [ 52.919738][ T3572] do_syscall_64+0x3b/0xb0 [ 52.924659][ T3572] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 52.931060][ T3572] [ 52.931060][ T3572] -> #1 (&data->open_mutex){+.+.}-{3:3}: [ 52.938858][ T3572] lock_acquire+0x1db/0x4f0 [ 52.943865][ T3572] __mutex_lock_common+0x1da/0x25a0 [ 52.949583][ T3572] mutex_lock_nested+0x17/0x20 [ 52.954865][ T3572] vhci_send_frame+0x8a/0xf0 [ 52.959960][ T3572] hci_send_frame+0x1af/0x2f0 [ 52.965153][ T3572] hci_tx_work+0xb0b/0x19d0 [ 52.970158][ T3572] process_one_work+0x8a1/0x10c0 [ 52.975599][ T3572] worker_thread+0xaca/0x1280 [ 52.980781][ T3572] kthread+0x3f6/0x4f0 [ 52.985353][ T3572] ret_from_fork+0x1f/0x30 [ 52.990275][ T3572] [ 52.990275][ T3572] -> #0 ((work_completion)(&hdev->tx_work)){+.+.}-{0:0}: [ 52.999462][ T3572] validate_chain+0x1649/0x5930 [ 53.004833][ T3572] __lock_acquire+0x1295/0x1ff0 [ 53.010207][ T3572] lock_acquire+0x1db/0x4f0 [ 53.015215][ T3572] __flush_work+0xeb/0x1a0 [ 53.020137][ T3572] hci_dev_do_close+0x20a/0x1070 [ 53.025586][ T3572] hci_rfkill_set_block+0x114/0x1a0 [ 53.031290][ T3572] rfkill_set_block+0x1e7/0x430 [ 53.036668][ T3572] rfkill_fop_write+0x5b7/0x790 [ 53.042032][ T3572] vfs_write+0x30c/0xe50 [ 53.046796][ T3572] ksys_write+0x1a2/0x2c0 [ 53.051628][ T3572] do_syscall_64+0x3b/0xb0 [ 53.056551][ T3572] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 53.062949][ T3572] [ 53.062949][ T3572] other info that might help us debug this: [ 53.062949][ T3572] [ 53.073156][ T3572] Chain exists of: [ 53.073156][ T3572] (work_completion)(&hdev->tx_work) --> rfkill_global_mutex --> &hdev->req_lock [ 53.073156][ T3572] [ 53.088082][ T3572] Possible unsafe locking scenario: [ 53.088082][ T3572] [ 53.095529][ T3572] CPU0 CPU1 [ 53.100965][ T3572] ---- ---- [ 53.106481][ T3572] lock(&hdev->req_lock); [ 53.110880][ T3572] lock(rfkill_global_mutex); [ 53.118145][ T3572] lock(&hdev->req_lock); [ 53.125059][ T3572] lock((work_completion)(&hdev->tx_work)); [ 53.131029][ T3572] [ 53.131029][ T3572] *** DEADLOCK *** [ 53.131029][ T3572] [ 53.139171][ T3572] 2 locks held by syz-executor115/3572: [ 53.144692][ T3572] #0: ffffffff8dcbcc48 (rfkill_global_mutex){+.+.}-{3:3}, at: rfkill_fop_write+0x1a5/0x790 [ 53.154771][ T3572] #1: ffff888014be0ff0 (&hdev->req_lock){+.+.}-{3:3}, at: hci_dev_do_close+0x63/0x1070 [ 53.164504][ T3572] [ 53.164504][ T3572] stack backtrace: [ 53.170379][ T3572] CPU: 1 PID: 3572 Comm: syz-executor115 Not tainted 5.15.164-syzkaller #0 [ 53.178947][ T3572] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 [ 53.188987][ T3572] Call Trace: [ 53.192367][ T3572] [ 53.195282][ T3572] dump_stack_lvl+0x1e3/0x2d0 [ 53.199942][ T3572] ? io_uring_drop_tctx_refs+0x1a0/0x1a0 [ 53.205582][ T3572] ? print_circular_bug+0x12b/0x1a0 [ 53.210766][ T3572] check_noncircular+0x2f8/0x3b0 [ 53.215690][ T3572] ? add_chain_block+0x850/0x850 [ 53.220613][ T3572] ? lockdep_lock+0x11f/0x2a0 [ 53.225287][ T3572] ? stack_trace_save+0x113/0x1c0 [ 53.230295][ T3572] validate_chain+0x1649/0x5930 [ 53.235142][ T3572] ? reacquire_held_locks+0x660/0x660 [ 53.240498][ T3572] ? validate_chain+0x13bd/0x5930 [ 53.245508][ T3572] ? look_up_lock_class+0x77/0x120 [ 53.250604][ T3572] ? register_lock_class+0x100/0x9a0 [ 53.255877][ T3572] ? is_dynamic_key+0x1f0/0x1f0 [ 53.260715][ T3572] ? mark_lock+0x98/0x340 [ 53.265031][ T3572] __lock_acquire+0x1295/0x1ff0 [ 53.269869][ T3572] lock_acquire+0x1db/0x4f0 [ 53.274376][ T3572] ? __flush_work+0xcf/0x1a0 [ 53.279051][ T3572] ? read_lock_is_recursive+0x10/0x10 [ 53.284441][ T3572] ? mark_lock+0x98/0x340 [ 53.288768][ T3572] __flush_work+0xeb/0x1a0 [ 53.293165][ T3572] ? __flush_work+0xcf/0x1a0 [ 53.297738][ T3572] ? flush_work+0x20/0x20 [ 53.302055][ T3572] ? _raw_read_unlock_irqrestore+0xd9/0x130 [ 53.307945][ T3572] ? _raw_read_unlock+0x40/0x40 [ 53.312785][ T3572] ? led_trigger_event+0xa6/0xc0 [ 53.317724][ T3572] hci_dev_do_close+0x20a/0x1070 [ 53.322680][ T3572] ? _raw_spin_unlock_irqrestore+0xd9/0x130 [ 53.328581][ T3572] hci_rfkill_set_block+0x114/0x1a0 [ 53.333767][ T3572] ? rcu_lock_release+0x20/0x20 [ 53.338603][ T3572] rfkill_set_block+0x1e7/0x430 [ 53.343443][ T3572] rfkill_fop_write+0x5b7/0x790 [ 53.348281][ T3572] ? mark_lock+0x98/0x340 [ 53.352596][ T3572] ? rfkill_fop_read+0x470/0x470 [ 53.357519][ T3572] ? fsnotify_perm+0x64/0x590 [ 53.362182][ T3572] ? security_file_permission+0x75/0xa0 [ 53.367718][ T3572] ? rfkill_fop_read+0x470/0x470 [ 53.372638][ T3572] vfs_write+0x30c/0xe50 [ 53.376875][ T3572] ? file_end_write+0x250/0x250 [ 53.381710][ T3572] ? read_lock_is_recursive+0x10/0x10 [ 53.387081][ T3572] ? __context_tracking_exit+0x4c/0x80 [ 53.392531][ T3572] ? __lock_acquire+0x1ff0/0x1ff0 [ 53.397538][ T3572] ? __fdget_pos+0x1e9/0x380 [ 53.402115][ T3572] ksys_write+0x1a2/0x2c0 [ 53.406434][ T3572] ? print_irqtrace_events+0x210/0x210 [ 53.411878][ T3572] ? __ia32_sys_read+0x80/0x80 [ 53.416625][ T3572] ? syscall_enter_from_user_mode+0x2e/0x240 [ 53.422592][ T3572] ? lockdep_hardirqs_on+0x94/0x130 [ 53.427775][ T3572] ? syscall_enter_from_user_mode+0x2e/0x240 [ 53.433761][ T3572] do_syscall_64+0x3b/0xb0 [ 53.438160][ T3572] ? clear_bhb_loop+0x15/0x70 [ 53.442822][ T3572] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 53.448725][ T3572] RIP: 0033:0x7fad4447be69 [ 53.453131][ 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 [ 53.472835][ T3572] RSP: 002b:00007ffc7e577ce8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 53.481234][ T3572] RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007fad4447be69 [ 53.489640][ T3572] RDX: 0000000000000008 RSI: 0000000020000300 RDI: 0000000000000003 [ 53.497609][ T3572] RBP: 00000000000f4240 R08: 0000555500000000 R09: 0000555500000000 [ 53.505588][ T3572] R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffc7e577d30 executing program executing program executing program [ 53.513558][ T3572] R13: 00007ffc7e577d40 R14: 00007fad444d923c R15: 00007fad444d30b9 [ 53.521521][ 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 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program