Warning: Permanently added '10.128.1.80' (ED25519) to the list of known hosts. executing program executing program executing program executing program executing program executing program executing program executing program [ 41.974441][ T3504] [ 41.976790][ T3504] ============================================ [ 41.982918][ T3504] WARNING: possible recursive locking detected [ 41.989042][ T3504] 5.15.160-syzkaller #0 Not tainted [ 41.994217][ T3504] -------------------------------------------- [ 42.000340][ T3504] kworker/1:3/3504 is trying to acquire lock: [ 42.006380][ T3504] ffff8880748e3268 (&htab->buckets[i].lock){+...}-{2:2}, at: sock_hash_delete_elem+0x177/0x400 [ 42.016728][ T3504] [ 42.016728][ T3504] but task is already holding lock: [ 42.024066][ T3504] ffff8880748e3268 (&htab->buckets[i].lock){+...}-{2:2}, at: sock_hash_delete_elem+0x177/0x400 [ 42.034393][ T3504] [ 42.034393][ T3504] other info that might help us debug this: [ 42.042425][ T3504] Possible unsafe locking scenario: [ 42.042425][ T3504] [ 42.049847][ T3504] CPU0 [ 42.053103][ T3504] ---- [ 42.056359][ T3504] lock(&htab->buckets[i].lock); [ 42.061358][ T3504] lock(&htab->buckets[i].lock); [ 42.066360][ T3504] [ 42.066360][ T3504] *** DEADLOCK *** [ 42.066360][ T3504] [ 42.074486][ T3504] May be due to missing lock nesting notation [ 42.074486][ T3504] [ 42.082795][ T3504] 6 locks held by kworker/1:3/3504: [ 42.087971][ T3504] #0: ffff888011c70938 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x78a/0x10c0 [ 42.098322][ T3504] #1: ffffc90002d87d20 ((work_completion)(&(&psock->rwork)->work)){+.+.}-{0:0}, at: process_one_work+0x7d0/0x10c0 [ 42.110405][ T3504] #2: ffffffff8c91fae0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x5/0x30 [ 42.119694][ T3504] #3: ffff8880748e3268 (&htab->buckets[i].lock){+...}-{2:2}, at: sock_hash_delete_elem+0x177/0x400 [ 42.130456][ T3504] #4: ffff88807d0ee290 (&psock->link_lock){+...}-{2:2}, at: sock_map_unref+0xcc/0x5d0 [ 42.140091][ T3504] #5: ffffffff8c91fae0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x5/0x30 [ 42.149373][ T3504] [ 42.149373][ T3504] stack backtrace: [ 42.155251][ T3504] CPU: 1 PID: 3504 Comm: kworker/1:3 Not tainted 5.15.160-syzkaller #0 [ 42.163468][ T3504] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 [ 42.173506][ T3504] Workqueue: events sk_psock_destroy [ 42.178791][ T3504] Call Trace: [ 42.182054][ T3504] [ 42.184965][ T3504] dump_stack_lvl+0x1e3/0x2d0 [ 42.189627][ T3504] ? io_uring_drop_tctx_refs+0x1a0/0x1a0 [ 42.195242][ T3504] ? panic+0x860/0x860 [ 42.199295][ T3504] validate_chain+0x46d2/0x5930 [ 42.204137][ T3504] ? arch_stack_walk+0x10d/0x140 [ 42.209070][ T3504] ? reacquire_held_locks+0x660/0x660 [ 42.214425][ T3504] ? check_noncircular+0x1e1/0x3b0 [ 42.219521][ T3504] ? lockdep_unlock+0x166/0x300 [ 42.224348][ T3504] ? lockdep_lock+0x2a0/0x2a0 [ 42.229003][ T3504] ? add_chain_block+0x850/0x850 [ 42.233917][ T3504] ? reacquire_held_locks+0x660/0x660 [ 42.239271][ T3504] ? mark_lock+0x98/0x340 [ 42.243578][ T3504] __lock_acquire+0x1295/0x1ff0 [ 42.248411][ T3504] lock_acquire+0x1db/0x4f0 [ 42.252891][ T3504] ? sock_hash_delete_elem+0x177/0x400 [ 42.258332][ T3504] ? read_lock_is_recursive+0x10/0x10 [ 42.263683][ T3504] ? sock_hash_delete_elem+0x177/0x400 [ 42.269121][ T3504] ? __bpf_trace_softirq+0x10/0x10 [ 42.274216][ T3504] ? sock_hash_delete_elem+0x177/0x400 [ 42.279653][ T3504] _raw_spin_lock_bh+0x31/0x40 [ 42.284398][ T3504] ? sock_hash_delete_elem+0x177/0x400 [ 42.289834][ T3504] sock_hash_delete_elem+0x177/0x400 [ 42.295099][ T3504] ? sock_hash_lookup+0x660/0x660 [ 42.300105][ T3504] bpf_prog_2c29ac5cdc6b1842+0x3a/0x6d8 [ 42.305628][ T3504] bpf_trace_run2+0x19e/0x340 [ 42.310287][ T3504] ? bpf_trace_run1+0x2f0/0x2f0 [ 42.315116][ T3504] ? lock_acquire+0x252/0x4f0 [ 42.319774][ T3504] ? sock_map_unref+0x3ac/0x5d0 [ 42.324604][ T3504] ? do_raw_spin_lock+0x14a/0x370 [ 42.329606][ T3504] ? __bpf_trace_softirq+0x10/0x10 [ 42.334694][ T3504] ? sock_map_unref+0x3ac/0x5d0 [ 42.339524][ T3504] __bpf_trace_kfree+0x6e/0x90 [ 42.344271][ T3504] ? sock_map_unref+0x3ac/0x5d0 [ 42.349099][ T3504] kfree+0x22f/0x270 [ 42.352977][ T3504] ? sock_map_unref+0xcc/0x5d0 [ 42.357720][ T3504] sock_map_unref+0x3ac/0x5d0 [ 42.362377][ T3504] sock_hash_delete_elem+0x388/0x400 [ 42.367659][ T3504] ? asm_sysvec_call_function_single+0x16/0x20 [ 42.373797][ T3504] ? sock_hash_lookup+0x660/0x660 [ 42.378802][ T3504] ? bpf_trace_run2+0xe7/0x340 [ 42.383547][ T3504] bpf_prog_2c29ac5cdc6b1842+0x3a/0x6d8 [ 42.389073][ T3504] bpf_trace_run2+0x19e/0x340 [ 42.393727][ T3504] ? exc_int3+0xa/0x70 [ 42.397776][ T3504] ? bpf_trace_run1+0x2f0/0x2f0 [ 42.402605][ T3504] ? process_one_work+0x8a1/0x10c0 [ 42.407698][ T3504] ? process_one_work+0x8a1/0x10c0 [ 42.412792][ T3504] __bpf_trace_kfree+0x6e/0x90 [ 42.417536][ T3504] ? process_one_work+0x8a1/0x10c0 [ 42.422626][ T3504] kfree+0x22f/0x270 [ 42.426504][ T3504] process_one_work+0x8a1/0x10c0 [ 42.431423][ T3504] ? print_irqtrace_events+0x210/0x210 [ 42.436862][ T3504] ? worker_detach_from_pool+0x260/0x260 [ 42.442475][ T3504] ? _raw_spin_lock_irqsave+0x120/0x120 [ 42.448006][ T3504] ? kthread_data+0x4e/0xc0 [ 42.452493][ T3504] ? wq_worker_running+0x97/0x170 [ 42.457499][ T3504] worker_thread+0xaca/0x1280 [ 42.462154][ T3504] ? _raw_spin_unlock_irqrestore+0xd9/0x130 [ 42.468033][ T3504] kthread+0x3f6/0x4f0 [ 42.472087][ T3504] ? rcu_lock_release+0x20/0x20 [ 42.476915][ T3504] ? kthread_blkcg+0xd0/0xd0 [ 42.481483][ T3504] ret_from_fork+0x1f/0x30 [ 42.485881][ T3504]