Warning: Permanently added '10.128.1.126' (ED25519) to the list of known hosts. executing program [ 51.310815][ T3541] [ 51.313160][ T3541] ============================================ [ 51.319283][ T3541] WARNING: possible recursive locking detected [ 51.325404][ T3541] 6.1.87-syzkaller #0 Not tainted [ 51.330400][ T3541] -------------------------------------------- [ 51.336521][ T3541] syz-executor125/3541 is trying to acquire lock: [ 51.342906][ T3541] ffff888078fa3338 (&htab->buckets[i].lock){+...}-{2:2}, at: sock_hash_delete_elem+0x177/0x400 [ 51.353243][ T3541] [ 51.353243][ T3541] but task is already holding lock: [ 51.360583][ T3541] ffff88801934d068 (&htab->buckets[i].lock){+...}-{2:2}, at: sock_hash_delete_elem+0x177/0x400 [ 51.370906][ T3541] [ 51.370906][ T3541] other info that might help us debug this: [ 51.378939][ T3541] Possible unsafe locking scenario: [ 51.378939][ T3541] [ 51.386365][ T3541] CPU0 [ 51.389629][ T3541] ---- [ 51.392896][ T3541] lock(&htab->buckets[i].lock); [ 51.397905][ T3541] lock(&htab->buckets[i].lock); [ 51.402911][ T3541] [ 51.402911][ T3541] *** DEADLOCK *** [ 51.402911][ T3541] [ 51.411033][ T3541] May be due to missing lock nesting notation [ 51.411033][ T3541] [ 51.419328][ T3541] 4 locks held by syz-executor125/3541: [ 51.424851][ T3541] #0: ffffffff8d12ac80 (rcu_read_lock){....}-{1:2}, at: map_delete_elem+0x321/0x550 [ 51.434329][ T3541] #1: ffff88801934d068 (&htab->buckets[i].lock){+...}-{2:2}, at: sock_hash_delete_elem+0x177/0x400 [ 51.445099][ T3541] #2: ffff8880176ff290 (&psock->link_lock){+...}-{2:2}, at: sock_map_unref+0xcc/0x5d0 [ 51.454739][ T3541] #3: ffffffff8d12ac80 (rcu_read_lock){....}-{1:2}, at: bpf_trace_run2+0x110/0x410 [ 51.464115][ T3541] [ 51.464115][ T3541] stack backtrace: [ 51.469985][ T3541] CPU: 0 PID: 3541 Comm: syz-executor125 Not tainted 6.1.87-syzkaller #0 [ 51.478377][ T3541] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 [ 51.488418][ T3541] Call Trace: [ 51.491685][ T3541] [ 51.494601][ T3541] dump_stack_lvl+0x1e3/0x2cb [ 51.499275][ T3541] ? nf_tcp_handle_invalid+0x642/0x642 [ 51.504723][ T3541] ? panic+0x764/0x764 [ 51.508779][ T3541] validate_chain+0x4711/0x5950 [ 51.513617][ T3541] ? noop_count+0x30/0x30 [ 51.517936][ T3541] ? check_path+0x21/0x40 [ 51.522245][ T3541] ? check_noncircular+0x1e3/0x3b0 [ 51.527338][ T3541] ? mark_lock+0x9a/0x340 [ 51.531656][ T3541] ? reacquire_held_locks+0x660/0x660 [ 51.537020][ T3541] ? lockdep_unlock+0x165/0x300 [ 51.541860][ T3541] ? lockdep_lock+0x2a0/0x2a0 [ 51.546525][ T3541] ? validate_chain+0x13ce/0x5950 [ 51.551536][ T3541] ? reacquire_held_locks+0x660/0x660 [ 51.556897][ T3541] ? mark_lock+0x9a/0x340 [ 51.561213][ T3541] __lock_acquire+0x125b/0x1f80 [ 51.566059][ T3541] lock_acquire+0x1f8/0x5a0 [ 51.570551][ T3541] ? sock_hash_delete_elem+0x177/0x400 [ 51.576001][ T3541] ? read_lock_is_recursive+0x10/0x10 [ 51.581360][ T3541] ? sock_hash_delete_elem+0x177/0x400 [ 51.586808][ T3541] ? __bpf_trace_softirq+0x10/0x10 [ 51.591911][ T3541] ? sock_hash_delete_elem+0x177/0x400 [ 51.597364][ T3541] _raw_spin_lock_bh+0x31/0x40 [ 51.602115][ T3541] ? sock_hash_delete_elem+0x177/0x400 [ 51.607559][ T3541] sock_hash_delete_elem+0x177/0x400 [ 51.612833][ T3541] ? sock_hash_lookup+0x660/0x660 [ 51.617856][ T3541] bpf_prog_967a36a528e40c40+0x3f/0x43 [ 51.623300][ T3541] bpf_trace_run2+0x1fd/0x410 [ 51.627964][ T3541] ? bpf_trace_run2+0x110/0x410 [ 51.632796][ T3541] ? bpf_trace_run1+0x3d0/0x3d0 [ 51.637627][ T3541] ? sock_map_unref+0x3ac/0x5d0 [ 51.642470][ T3541] ? __rwlock_init+0x140/0x140 [ 51.647217][ T3541] ? sock_map_unref+0x3ac/0x5d0 [ 51.652058][ T3541] __bpf_trace_kfree+0x6e/0x90 [ 51.656808][ T3541] ? sock_map_unref+0x3ac/0x5d0 [ 51.661651][ T3541] kfree+0xf6/0x190 [ 51.665443][ T3541] sock_map_unref+0x3ac/0x5d0 [ 51.670111][ T3541] sock_hash_delete_elem+0x388/0x400 [ 51.675386][ T3541] ? sock_hash_lookup+0x660/0x660 [ 51.680402][ T3541] map_delete_elem+0x3ff/0x550 [ 51.685158][ T3541] __sys_bpf+0x350/0x6c0 [ 51.689480][ T3541] ? bpf_link_show_fdinfo+0x2d0/0x2d0 [ 51.694844][ T3541] ? fd_install+0x57/0x540 [ 51.699249][ T3541] ? print_irqtrace_events+0x210/0x210 [ 51.704703][ T3541] ? print_irqtrace_events+0x210/0x210 [ 51.710151][ T3541] ? syscall_enter_from_user_mode+0x2e/0x230 [ 51.716116][ T3541] ? lockdep_hardirqs_on+0x94/0x130 [ 51.721300][ T3541] __x64_sys_bpf+0x78/0x90 [ 51.725704][ T3541] do_syscall_64+0x3b/0xb0 [ 51.730136][ T3541] ? clear_bhb_loop+0x45/0xa0 [ 51.734807][ T3541] entry_SYSCALL_64_after_hwframe+0x68/0xd2 [ 51.740689][ T3541] RIP: 0033:0x7f163f8e2829 [ 51.745105][ T3541] Code: 48 83 c4 28 c3 e8 37 17 00 00 0f 1f 80 00 00 00 00 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 b8 ff ff ff f7 d8 64 89 01 48 [ 51.764710][ T3541] RSP: 002b:00007ffd3315d158 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 [ 51.773142][ T3541] RAX: ffffffffffffffda RBX: 00007ffd3315d328 RCX: 00007f163f8e2829 [ 51.781123][ T3541] RDX: 0000000000000020 RSI: 0000000020000080 RDI: 0000000000000003 [ 51.789089][ T3541] RBP: 00007f163f955610 R08: 00007ffd3315d328 R09: 00007ffd3315d328 [ 51.797054][ T3541] R10: 00007ffd3315d328 R11: 0000000000000246 R12: 0000000000000001 [ 51.805011][ T3541] R13: 00007ffd3315d318 R14: 0000000000000001 R15: 0000000000000001 [