syzkaller login: [ 42.970266][ C1] eth0: bad gso: type: 1, size: 1408 [ 42.975988][ C1] eth0: bad gso: type: 1, size: 1408 [ 42.987078][ C1] eth0: bad gso: type: 1, size: 1408 [ 43.209385][ C1] eth0: bad gso: type: 1, size: 1408 [ 43.216970][ C1] eth0: bad gso: type: 1, size: 1408 [ 43.338177][ C1] eth0: bad gso: type: 1, size: 1408 [ 43.345580][ C1] eth0: bad gso: type: 1, size: 1408 [ 43.352666][ C1] eth0: bad gso: type: 1, size: 1408 [ 43.358960][ C1] eth0: bad gso: type: 1, size: 1408 [ 43.365022][ C1] eth0: bad gso: type: 1, size: 1408 Warning: Permanently added '10.128.0.139' (ED25519) to the list of known hosts. executing program [ 55.430233][ T3572] [ 55.432594][ T3572] ====================================================== [ 55.439591][ T3572] WARNING: possible circular locking dependency detected [ 55.446592][ T3572] 5.15.165-syzkaller #0 Not tainted [ 55.451776][ T3572] ------------------------------------------------------ [ 55.458767][ T3572] syz-executor379/3572 is trying to acquire lock: [ 55.465521][ T3572] ffff888077c68b98 ((work_completion)(&hdev->tx_work)){+.+.}-{0:0}, at: __flush_work+0xcf/0x1a0 [ 55.475982][ T3572] [ 55.475982][ T3572] but task is already holding lock: [ 55.483324][ T3572] ffff888077c68ff0 (&hdev->req_lock){+.+.}-{3:3}, at: hci_dev_do_close+0x63/0x1070 [ 55.492616][ T3572] [ 55.492616][ T3572] which lock already depends on the new lock. [ 55.492616][ T3572] [ 55.502999][ T3572] [ 55.502999][ T3572] the existing dependency chain (in reverse order) is: [ 55.511990][ T3572] [ 55.511990][ T3572] -> #3 (&hdev->req_lock){+.+.}-{3:3}: [ 55.519612][ T3572] lock_acquire+0x1db/0x4f0 [ 55.524623][ T3572] __mutex_lock_common+0x1da/0x25a0 [ 55.530351][ T3572] mutex_lock_nested+0x17/0x20 [ 55.535617][ T3572] hci_dev_do_close+0x63/0x1070 [ 55.540978][ T3572] hci_rfkill_set_block+0x114/0x1a0 [ 55.546681][ T3572] rfkill_set_block+0x1e7/0x430 [ 55.552033][ T3572] rfkill_fop_write+0x5b7/0x790 [ 55.557385][ T3572] vfs_write+0x30c/0xe50 [ 55.562131][ T3572] ksys_write+0x1a2/0x2c0 [ 55.566966][ T3572] do_syscall_64+0x3b/0xb0 [ 55.571895][ T3572] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 55.578313][ T3572] [ 55.578313][ T3572] -> #2 (rfkill_global_mutex){+.+.}-{3:3}: [ 55.586299][ T3572] lock_acquire+0x1db/0x4f0 [ 55.591314][ T3572] __mutex_lock_common+0x1da/0x25a0 [ 55.597019][ T3572] mutex_lock_nested+0x17/0x20 [ 55.602296][ T3572] rfkill_register+0x30/0x880 [ 55.607498][ T3572] hci_register_dev+0x4dd/0xa50 [ 55.612856][ T3572] vhci_create_device+0x310/0x590 [ 55.618390][ T3572] vhci_write+0x382/0x430 [ 55.623347][ T3572] vfs_write+0xacd/0xe50 [ 55.628117][ T3572] ksys_write+0x1a2/0x2c0 [ 55.632950][ T3572] do_syscall_64+0x3b/0xb0 [ 55.637869][ T3572] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 55.644275][ T3572] [ 55.644275][ T3572] -> #1 (&data->open_mutex){+.+.}-{3:3}: [ 55.652078][ T3572] lock_acquire+0x1db/0x4f0 [ 55.657107][ T3572] __mutex_lock_common+0x1da/0x25a0 [ 55.663323][ T3572] mutex_lock_nested+0x17/0x20 [ 55.668600][ T3572] vhci_send_frame+0x8a/0xf0 [ 55.673717][ T3572] hci_send_frame+0x1af/0x2f0 [ 55.678903][ T3572] hci_tx_work+0xb0b/0x19d0 [ 55.683920][ T3572] process_one_work+0x8a1/0x10c0 [ 55.689369][ T3572] worker_thread+0xaca/0x1280 [ 55.694575][ T3572] kthread+0x3f6/0x4f0 [ 55.699150][ T3572] ret_from_fork+0x1f/0x30 [ 55.704092][ T3572] [ 55.704092][ T3572] -> #0 ((work_completion)(&hdev->tx_work)){+.+.}-{0:0}: [ 55.713281][ T3572] validate_chain+0x1649/0x5930 [ 55.718636][ T3572] __lock_acquire+0x1295/0x1ff0 [ 55.724006][ T3572] lock_acquire+0x1db/0x4f0 [ 55.729011][ T3572] __flush_work+0xeb/0x1a0 [ 55.733929][ T3572] hci_dev_do_close+0x20a/0x1070 [ 55.739371][ T3572] hci_rfkill_set_block+0x114/0x1a0 [ 55.745072][ T3572] rfkill_set_block+0x1e7/0x430 [ 55.750440][ T3572] rfkill_fop_write+0x5b7/0x790 [ 55.755810][ T3572] vfs_write+0x30c/0xe50 [ 55.760565][ T3572] ksys_write+0x1a2/0x2c0 [ 55.765434][ T3572] do_syscall_64+0x3b/0xb0 [ 55.770363][ T3572] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 55.776788][ T3572] [ 55.776788][ T3572] other info that might help us debug this: [ 55.776788][ T3572] [ 55.786998][ T3572] Chain exists of: [ 55.786998][ T3572] (work_completion)(&hdev->tx_work) --> rfkill_global_mutex --> &hdev->req_lock [ 55.786998][ T3572] [ 55.801926][ T3572] Possible unsafe locking scenario: [ 55.801926][ T3572] [ 55.809360][ T3572] CPU0 CPU1 [ 55.814727][ T3572] ---- ---- [ 55.820295][ T3572] lock(&hdev->req_lock); [ 55.824708][ T3572] lock(rfkill_global_mutex); [ 55.831985][ T3572] lock(&hdev->req_lock); [ 55.838926][ T3572] lock((work_completion)(&hdev->tx_work)); [ 55.844918][ T3572] [ 55.844918][ T3572] *** DEADLOCK *** [ 55.844918][ T3572] [ 55.853045][ T3572] 2 locks held by syz-executor379/3572: [ 55.858601][ T3572] #0: ffffffff8dcbd1a8 (rfkill_global_mutex){+.+.}-{3:3}, at: rfkill_fop_write+0x1a5/0x790 [ 55.869076][ T3572] #1: ffff888077c68ff0 (&hdev->req_lock){+.+.}-{3:3}, at: hci_dev_do_close+0x63/0x1070 [ 55.878830][ T3572] [ 55.878830][ T3572] stack backtrace: [ 55.884748][ T3572] CPU: 0 PID: 3572 Comm: syz-executor379 Not tainted 5.15.165-syzkaller #0 [ 55.893331][ T3572] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 [ 55.903366][ T3572] Call Trace: [ 55.906660][ T3572] [ 55.909578][ T3572] dump_stack_lvl+0x1e3/0x2d0 [ 55.914247][ T3572] ? io_uring_drop_tctx_refs+0x1a0/0x1a0 [ 55.919870][ T3572] ? print_circular_bug+0x12b/0x1a0 [ 55.925069][ T3572] check_noncircular+0x2f8/0x3b0 [ 55.929993][ T3572] ? add_chain_block+0x850/0x850 [ 55.934916][ T3572] ? lockdep_lock+0x11f/0x2a0 [ 55.939585][ T3572] ? stack_trace_save+0x113/0x1c0 [ 55.944608][ T3572] validate_chain+0x1649/0x5930 [ 55.949469][ T3572] ? reacquire_held_locks+0x660/0x660 [ 55.954938][ T3572] ? validate_chain+0x13bd/0x5930 [ 55.959957][ T3572] ? look_up_lock_class+0x77/0x120 [ 55.965060][ T3572] ? register_lock_class+0x100/0x9a0 [ 55.970339][ T3572] ? reacquire_held_locks+0x660/0x660 [ 55.975718][ T3572] ? is_dynamic_key+0x1f0/0x1f0 [ 55.980648][ T3572] ? mark_lock+0x98/0x340 [ 55.985001][ T3572] __lock_acquire+0x1295/0x1ff0 [ 55.989842][ T3572] lock_acquire+0x1db/0x4f0 [ 55.994331][ T3572] ? __flush_work+0xcf/0x1a0 [ 55.998905][ T3572] ? mark_lock+0x98/0x340 [ 56.003236][ T3572] ? read_lock_is_recursive+0x10/0x10 [ 56.008590][ T3572] ? __lock_acquire+0x1295/0x1ff0 [ 56.013620][ T3572] __flush_work+0xeb/0x1a0 [ 56.018043][ T3572] ? __flush_work+0xcf/0x1a0 [ 56.022619][ T3572] ? flush_work+0x20/0x20 [ 56.027008][ T3572] hci_dev_do_close+0x20a/0x1070 [ 56.031976][ T3572] ? _raw_spin_unlock_irqrestore+0xd9/0x130 [ 56.037870][ T3572] hci_rfkill_set_block+0x114/0x1a0 [ 56.043068][ T3572] ? rcu_lock_release+0x20/0x20 [ 56.047907][ T3572] rfkill_set_block+0x1e7/0x430 [ 56.052749][ T3572] rfkill_fop_write+0x5b7/0x790 [ 56.057589][ T3572] ? mark_lock+0x98/0x340 [ 56.061909][ T3572] ? rfkill_fop_read+0x470/0x470 [ 56.066837][ T3572] ? fsnotify_perm+0x64/0x590 [ 56.071509][ T3572] ? security_file_permission+0x75/0xa0 [ 56.077316][ T3572] ? rfkill_fop_read+0x470/0x470 [ 56.082248][ T3572] vfs_write+0x30c/0xe50 [ 56.086486][ T3572] ? file_end_write+0x250/0x250 [ 56.091351][ T3572] ? read_lock_is_recursive+0x10/0x10 [ 56.096710][ T3572] ? __context_tracking_exit+0x4c/0x80 [ 56.102267][ T3572] ? __lock_acquire+0x1ff0/0x1ff0 [ 56.107280][ T3572] ? __fdget_pos+0x1e9/0x380 [ 56.111883][ T3572] ksys_write+0x1a2/0x2c0 [ 56.116288][ T3572] ? print_irqtrace_events+0x210/0x210 [ 56.121738][ T3572] ? __ia32_sys_read+0x80/0x80 [ 56.126504][ T3572] ? syscall_enter_from_user_mode+0x2e/0x240 [ 56.132476][ T3572] ? lockdep_hardirqs_on+0x94/0x130 [ 56.137672][ T3572] ? syscall_enter_from_user_mode+0x2e/0x240 [ 56.143645][ T3572] do_syscall_64+0x3b/0xb0 [ 56.148063][ T3572] ? clear_bhb_loop+0x15/0x70 [ 56.152746][ T3572] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 56.158652][ T3572] RIP: 0033:0x7f2257c3ee69 [ 56.163062][ 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 [ 56.182654][ T3572] RSP: 002b:00007ffc60126708 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 56.191056][ T3572] RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007f2257c3ee69 [ 56.199017][ T3572] RDX: 0000000000000008 RSI: 0000000020000300 RDI: 0000000000000003 [ 56.207060][ T3572] RBP: 00000000000f4240 R08: 0000555500000000 R09: 0000555500000000 [ 56.215017][ T3572] R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffc60126750 [ 56.222991][ T3572] R13: 00007ffc60126760 R14: 00007f2257c9c23c R15: 00007f2257c960b9 executing program executing program executing program [ 56.230955][ 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