Warning: Permanently added '10.128.0.171' (ED25519) to the list of known hosts. executing program syzkaller login: [ 64.924301][ T3546] [ 64.926773][ T3546] ============================================ [ 64.933266][ T3546] WARNING: possible recursive locking detected [ 64.939431][ T3546] 6.1.90-syzkaller #0 Not tainted [ 64.944447][ T3546] -------------------------------------------- [ 64.950870][ T3546] syz-executor177/3546 is trying to acquire lock: [ 64.957299][ T3546] ffff888076498a40 (&stab->lock){+...}-{2:2}, at: sock_map_delete_elem+0x161/0x230 [ 64.966732][ T3546] [ 64.966732][ T3546] but task is already holding lock: [ 64.974099][ T3546] ffff88807649fa40 (&stab->lock){+...}-{2:2}, at: sock_map_update_common+0x1b6/0x5b0 [ 64.983603][ T3546] [ 64.983603][ T3546] other info that might help us debug this: [ 64.991657][ T3546] Possible unsafe locking scenario: [ 64.991657][ T3546] [ 64.999124][ T3546] CPU0 [ 65.002403][ T3546] ---- [ 65.005695][ T3546] lock(&stab->lock); [ 65.009941][ T3546] lock(&stab->lock); [ 65.014013][ T3546] [ 65.014013][ T3546] *** DEADLOCK *** [ 65.014013][ T3546] [ 65.022268][ T3546] May be due to missing lock nesting notation [ 65.022268][ T3546] [ 65.030595][ T3546] 5 locks held by syz-executor177/3546: [ 65.036150][ T3546] #0: ffff88807eb4b130 (sk_lock-AF_UNIX){+.+.}-{0:0}, at: sock_map_update_elem_sys+0x1c8/0x910 [ 65.046630][ T3546] #1: ffffffff8d12ac80 (rcu_read_lock){....}-{1:2}, at: sock_map_update_elem_sys+0x1d4/0x910 [ 65.057189][ T3546] #2: ffff88807649fa40 (&stab->lock){+...}-{2:2}, at: sock_map_update_common+0x1b6/0x5b0 [ 65.067120][ T3546] #3: ffff8880192f6290 (&psock->link_lock){+...}-{2:2}, at: sock_map_unref+0xcc/0x5d0 [ 65.076903][ T3546] #4: ffffffff8d12ac80 (rcu_read_lock){....}-{1:2}, at: bpf_trace_run2+0x110/0x410 [ 65.086310][ T3546] [ 65.086310][ T3546] stack backtrace: [ 65.092207][ T3546] CPU: 0 PID: 3546 Comm: syz-executor177 Not tainted 6.1.90-syzkaller #0 [ 65.100799][ T3546] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 [ 65.111032][ T3546] Call Trace: [ 65.114317][ T3546] [ 65.117273][ T3546] dump_stack_lvl+0x1e3/0x2cb [ 65.121978][ T3546] ? nf_tcp_handle_invalid+0x642/0x642 [ 65.127457][ T3546] ? panic+0x764/0x764 [ 65.131539][ T3546] validate_chain+0x4711/0x5950 [ 65.136496][ T3546] ? search_extable+0xf0/0xf0 [ 65.141201][ T3546] ? search_extable+0xaf/0xf0 [ 65.145998][ T3546] ? trim_init_extable+0x3c0/0x3c0 [ 65.151135][ T3546] ? unwind_next_frame+0x1a3f/0x2220 [ 65.156456][ T3546] ? reacquire_held_locks+0x660/0x660 [ 65.161859][ T3546] ? reacquire_held_locks+0x660/0x660 [ 65.167250][ T3546] ? copy_from_kernel_nofault+0x178/0x2c0 [ 65.173022][ T3546] ? fixup_exception+0xdc6/0x1d60 [ 65.178148][ T3546] ? kernel_text_address+0x9f/0xd0 [ 65.183295][ T3546] ? ex_get_fixup_type+0x60/0x60 [ 65.188249][ T3546] ? unwind_get_return_address+0x49/0x80 [ 65.193980][ T3546] ? mark_lock+0x9a/0x340 [ 65.198326][ T3546] __lock_acquire+0x125b/0x1f80 [ 65.203203][ T3546] lock_acquire+0x1f8/0x5a0 [ 65.207720][ T3546] ? sock_map_delete_elem+0x161/0x230 [ 65.213127][ T3546] ? print_irqtrace_events+0x210/0x210 [ 65.218614][ T3546] ? read_lock_is_recursive+0x10/0x10 [ 65.224017][ T3546] ? lockdep_hardirqs_on+0x94/0x130 [ 65.229227][ T3546] ? sock_map_delete_elem+0x161/0x230 [ 65.234640][ T3546] ? __bpf_trace_softirq+0x10/0x10 [ 65.239792][ T3546] ? asm_exc_page_fault+0x22/0x30 [ 65.244848][ T3546] ? sock_map_delete_elem+0x161/0x230 [ 65.250236][ T3546] _raw_spin_lock_bh+0x31/0x40 [ 65.255015][ T3546] ? sock_map_delete_elem+0x161/0x230 [ 65.260446][ T3546] sock_map_delete_elem+0x161/0x230 [ 65.265671][ T3546] ? sock_map_update_elem+0x500/0x500 [ 65.271064][ T3546] ? memset+0x1f/0x40 [ 65.275062][ T3546] ? bpf_probe_read_compat+0x154/0x180 [ 65.280559][ T3546] bpf_prog_bd09fd94307bc10c+0x63/0x67 [ 65.286119][ T3546] bpf_trace_run2+0x1fd/0x410 [ 65.290892][ T3546] ? bpf_trace_run2+0x110/0x410 [ 65.295746][ T3546] ? bpf_trace_run1+0x3d0/0x3d0 [ 65.300600][ T3546] ? sock_map_unref+0x3ac/0x5d0 [ 65.305488][ T3546] ? __rwlock_init+0x140/0x140 [ 65.310259][ T3546] ? sock_map_unref+0x3ac/0x5d0 [ 65.315129][ T3546] __bpf_trace_kfree+0x6e/0x90 [ 65.319939][ T3546] ? sock_map_unref+0x3ac/0x5d0 [ 65.324807][ T3546] kfree+0xf6/0x190 [ 65.328627][ T3546] sock_map_unref+0x3ac/0x5d0 [ 65.333331][ T3546] sock_map_update_common+0x4ec/0x5b0 [ 65.338719][ T3546] sock_map_update_elem_sys+0x55b/0x910 [ 65.344280][ T3546] ? sock_map_update_elem_sys+0x1d4/0x910 [ 65.350010][ T3546] ? sock_map_prog_detach+0x290/0x290 [ 65.355400][ T3546] ? bpf_map_update_value+0x14a/0x6f0 [ 65.360784][ T3546] map_update_elem+0x503/0x680 [ 65.365566][ T3546] __sys_bpf+0x337/0x6c0 [ 65.369822][ T3546] ? bpf_link_show_fdinfo+0x2d0/0x2d0 [ 65.375237][ T3546] ? fd_install+0x57/0x540 [ 65.379680][ T3546] ? print_irqtrace_events+0x210/0x210 [ 65.385177][ T3546] ? print_irqtrace_events+0x210/0x210 [ 65.390674][ T3546] ? syscall_enter_from_user_mode+0x2e/0x230 [ 65.396665][ T3546] ? lockdep_hardirqs_on+0x94/0x130 [ 65.401958][ T3546] __x64_sys_bpf+0x78/0x90 [ 65.406388][ T3546] do_syscall_64+0x3b/0xb0 [ 65.410817][ T3546] ? clear_bhb_loop+0x45/0xa0 [ 65.415564][ T3546] entry_SYSCALL_64_after_hwframe+0x68/0xd2 [ 65.421468][ T3546] RIP: 0033:0x7f10605308e9 [ 65.425886][ T3546] 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 [ 65.445511][ T3546] RSP: 002b:00007ffd9a2272c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 [ 65.454024][ T3546] RAX: ffffffffffffffda RBX: 00007ffd9a227498 RCX: 00007f10605308e9 [ 65.461999][ T3546] RDX: 0000000000000020 RSI: 0000000020000b40 RDI: 0000000000000002 [ 65.470149][ T3546] RBP: 00007f10605a3610 R08: 00007ffd9a227498 R09: 0000