Warning: Permanently added '10.128.10.3' (ED25519) to the list of known hosts. executing program [ 50.734940][ T3500] [ 50.737388][ T3500] ============================================ [ 50.743740][ T3500] WARNING: possible recursive locking detected [ 50.749878][ T3500] 5.15.153-syzkaller #0 Not tainted [ 50.755065][ T3500] -------------------------------------------- [ 50.761248][ T3500] syz-executor155/3500 is trying to acquire lock: [ 50.767730][ T3500] ffff888078a28020 (&htab->buckets[i].lock){+.-.}-{2:2}, at: sock_hash_delete_elem+0xac/0x2f0 [ 50.777997][ T3500] [ 50.777997][ T3500] but task is already holding lock: [ 50.785350][ T3500] ffff888078a28020 (&htab->buckets[i].lock){+.-.}-{2:2}, at: sock_hash_delete_elem+0xac/0x2f0 [ 50.795731][ T3500] [ 50.795731][ T3500] other info that might help us debug this: [ 50.803797][ T3500] Possible unsafe locking scenario: [ 50.803797][ T3500] [ 50.811504][ T3500] CPU0 [ 50.814782][ T3500] ---- [ 50.818051][ T3500] lock(&htab->buckets[i].lock); [ 50.823067][ T3500] lock(&htab->buckets[i].lock); [ 50.828081][ T3500] [ 50.828081][ T3500] *** DEADLOCK *** [ 50.828081][ T3500] [ 50.836208][ T3500] May be due to missing lock nesting notation [ 50.836208][ T3500] [ 50.844782][ T3500] 4 locks held by syz-executor155/3500: [ 50.850325][ T3500] #0: ffffffff8c91f720 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x5/0x30 [ 50.859839][ T3500] #1: ffff888078a28020 (&htab->buckets[i].lock){+.-.}-{2:2}, at: sock_hash_delete_elem+0xac/0x2f0 [ 50.870556][ T3500] #2: ffff8881472bf290 (&psock->link_lock){+...}-{2:2}, at: sock_map_unref+0xcc/0x5d0 [ 50.880351][ T3500] #3: ffffffff8c91f720 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x5/0x30 [ 50.890015][ T3500] [ 50.890015][ T3500] stack backtrace: [ 50.896076][ T3500] CPU: 0 PID: 3500 Comm: syz-executor155 Not tainted 5.15.153-syzkaller #0 [ 50.904672][ T3500] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 [ 50.914897][ T3500] Call Trace: [ 50.918212][ T3500] [ 50.921157][ T3500] dump_stack_lvl+0x1e3/0x2cb [ 50.925844][ T3500] ? io_uring_drop_tctx_refs+0x19d/0x19d [ 50.931483][ T3500] ? panic+0x84d/0x84d [ 50.935556][ T3500] validate_chain+0x46d2/0x5930 [ 50.940407][ T3500] ? unwind_get_return_address+0x49/0x80 [ 50.946046][ T3500] ? check_path+0x21/0x40 [ 50.950378][ T3500] ? reacquire_held_locks+0x660/0x660 [ 50.955749][ T3500] ? lockdep_unlock+0x166/0x300 [ 50.960605][ T3500] ? lockdep_lock+0x2a0/0x2a0 [ 50.965301][ T3500] ? reacquire_held_locks+0x660/0x660 [ 50.970675][ T3500] ? validate_chain+0x13bd/0x5930 [ 50.975713][ T3500] ? mark_lock+0x98/0x340 [ 50.980134][ T3500] __lock_acquire+0x1295/0x1ff0 [ 50.984999][ T3500] lock_acquire+0x1db/0x4f0 [ 50.989538][ T3500] ? sock_hash_delete_elem+0xac/0x2f0 [ 50.995006][ T3500] ? read_lock_is_recursive+0x10/0x10 [ 51.000385][ T3500] ? sock_hash_delete_elem+0xac/0x2f0 [ 51.005853][ T3500] ? __bpf_trace_softirq+0x10/0x10 [ 51.011046][ T3500] ? __lock_acquire+0x1295/0x1ff0 [ 51.016077][ T3500] ? sock_hash_delete_elem+0xac/0x2f0 [ 51.021452][ T3500] _raw_spin_lock_bh+0x31/0x40 [ 51.026294][ T3500] ? sock_hash_delete_elem+0xac/0x2f0 [ 51.031655][ T3500] sock_hash_delete_elem+0xac/0x2f0 [ 51.036845][ T3500] bpf_prog_3ffd2c70e20892c6+0x3a/0x104 [ 51.042379][ T3500] bpf_trace_run2+0x19e/0x340 [ 51.047060][ T3500] ? bpf_trace_run1+0x2f0/0x2f0 [ 51.051900][ T3500] ? sock_map_unref+0x3ac/0x5d0 [ 51.056739][ T3500] ? lockdep_softirqs_on+0x590/0x590 [ 51.062015][ T3500] ? do_raw_spin_lock+0x14a/0x370 [ 51.067129][ T3500] ? sock_map_unref+0x3ac/0x5d0 [ 51.071973][ T3500] __bpf_trace_kfree+0x6e/0x90 [ 51.076727][ T3500] ? sock_map_unref+0x3ac/0x5d0 [ 51.081563][ T3500] kfree+0x22f/0x270 [ 51.085453][ T3500] sock_map_unref+0x3ac/0x5d0 [ 51.090127][ T3500] sock_hash_delete_elem+0x273/0x2f0 [ 51.095410][ T3500] bpf_prog_3ffd2c70e20892c6+0x3a/0x104 [ 51.100945][ T3500] bpf_trace_run2+0x19e/0x340 [ 51.105610][ T3500] ? bpf_trace_run1+0x2f0/0x2f0 [ 51.110469][ T3500] ? map_update_elem+0x6ab/0x7c0 [ 51.115400][ T3500] ? sock_map_update_elem_sys+0x549/0x770 [ 51.121110][ T3500] ? map_update_elem+0x6ab/0x7c0 [ 51.126040][ T3500] __bpf_trace_kfree+0x6e/0x90 [ 51.130798][ T3500] ? map_update_elem+0x6ab/0x7c0 [ 51.135724][ T3500] kfree+0x22f/0x270 [ 51.139613][ T3500] map_update_elem+0x6ab/0x7c0 [ 51.144386][ T3500] __sys_bpf+0x2fd/0x670 [ 51.148713][ T3500] ? bpf_link_show_fdinfo+0x2d0/0x2d0 [ 51.154095][ T3500] ? syscall_enter_from_user_mode+0x2e/0x230 [ 51.160064][ T3500] ? lockdep_hardirqs_on+0x94/0x130 [ 51.165264][ T3500] __x64_sys_bpf+0x78/0x90 [ 51.169673][ T3500] do_syscall_64+0x3d/0xb0 [ 51.174126][ T3500] entry_SYSCALL_64_after_hwframe+0x61/0xcb [ 51.180016][ T3500] RIP: 0033:0x7fad957df5e9 [ 51.184461][ T3500] 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.204071][ T3500] RSP: 002b:00007fff8558fd38 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 [ 51.212684][ T3500] RAX: ffffffffffffffda RBX: 00007fff8558ff08 RCX: 00007fad957df5e9 [ 51.220914][ T3500] RDX: 0000000000000020 RSI: 0000000020000c80 RDI: 0000000000000002 [ 51.228967][ T3500] RBP: 00007fad95852610 R08: 00007fff8558ff08 R09: 00007fff8558ff08 [ 51.236949][ T3500] R10: 00007fff8558ff08 R11: 0000000000000246 R12: 0000000000000001 [ 51.244925][ T3500] R13: 00007fff8558fef8 R14: 0000000000000001 R15: 0000000000000001 [ 51.252895][ T3500]