Warning: Permanently added '10.128.1.162' (ED25519) to the list of known hosts. executing program syzkaller login: [ 50.803532][ T3542] [ 50.805881][ T3542] ============================================ [ 50.812004][ T3542] WARNING: possible recursive locking detected [ 50.818129][ T3542] 6.1.87-syzkaller #0 Not tainted [ 50.823124][ T3542] -------------------------------------------- [ 50.829243][ T3542] syz-executor120/3542 is trying to acquire lock: [ 50.835631][ T3542] ffff88807f271a40 (&stab->lock){+.-.}-{2:2}, at: sock_map_delete_elem+0x161/0x230 [ 50.844926][ T3542] [ 50.844926][ T3542] but task is already holding lock: [ 50.852262][ T3542] ffff88807f272240 (&stab->lock){+.-.}-{2:2}, at: sock_map_update_common+0x1b6/0x5b0 [ 50.861714][ T3542] [ 50.861714][ T3542] other info that might help us debug this: [ 50.869745][ T3542] Possible unsafe locking scenario: [ 50.869745][ T3542] [ 50.877172][ T3542] CPU0 [ 50.880434][ T3542] ---- [ 50.883696][ T3542] lock(&stab->lock); [ 50.887749][ T3542] lock(&stab->lock); [ 50.891803][ T3542] [ 50.891803][ T3542] *** DEADLOCK *** [ 50.891803][ T3542] [ 50.899925][ T3542] May be due to missing lock nesting notation [ 50.899925][ T3542] [ 50.908237][ T3542] 5 locks held by syz-executor120/3542: [ 50.913771][ T3542] #0: ffff88801ed94130 (sk_lock-AF_UNIX){+.+.}-{0:0}, at: sock_map_update_elem_sys+0x1c8/0x910 [ 50.924201][ T3542] #1: ffffffff8d12ac80 (rcu_read_lock){....}-{1:2}, at: sock_map_update_elem_sys+0x1d4/0x910 [ 50.934455][ T3542] #2: ffff88807f272240 (&stab->lock){+.-.}-{2:2}, at: sock_map_update_common+0x1b6/0x5b0 [ 50.944357][ T3542] #3: ffff888016ec4290 (&psock->link_lock){+...}-{2:2}, at: sock_map_unref+0xcc/0x5d0 [ 50.953999][ T3542] #4: ffffffff8d12ac80 (rcu_read_lock){....}-{1:2}, at: bpf_trace_run2+0x110/0x410 [ 50.963380][ T3542] [ 50.963380][ T3542] stack backtrace: [ 50.969254][ T3542] CPU: 1 PID: 3542 Comm: syz-executor120 Not tainted 6.1.87-syzkaller #0 [ 50.977660][ T3542] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 [ 50.987699][ T3542] Call Trace: [ 50.990963][ T3542] [ 50.993881][ T3542] dump_stack_lvl+0x1e3/0x2cb [ 50.998560][ T3542] ? nf_tcp_handle_invalid+0x642/0x642 [ 51.004006][ T3542] ? panic+0x764/0x764 [ 51.008062][ T3542] validate_chain+0x4711/0x5950 [ 51.012905][ T3542] ? is_bpf_text_address+0x22/0x2a0 [ 51.018088][ T3542] ? reacquire_held_locks+0x660/0x660 [ 51.023445][ T3542] ? unwind_next_frame+0x1a3f/0x2220 [ 51.028718][ T3542] ? reacquire_held_locks+0x660/0x660 [ 51.034078][ T3542] ? reacquire_held_locks+0x660/0x660 [ 51.039439][ T3542] ? validate_chain+0x112/0x5950 [ 51.044367][ T3542] ? is_bpf_text_address+0x22/0x2a0 [ 51.049549][ T3542] ? reacquire_held_locks+0x660/0x660 [ 51.054909][ T3542] ? validate_chain+0x112/0x5950 [ 51.059833][ T3542] ? kernel_text_address+0x9f/0xd0 [ 51.064931][ T3542] ? reacquire_held_locks+0x660/0x660 [ 51.070289][ T3542] ? unwind_get_return_address+0x49/0x80 [ 51.075908][ T3542] ? mark_lock+0x9a/0x340 [ 51.080225][ T3542] __lock_acquire+0x125b/0x1f80 [ 51.085067][ T3542] lock_acquire+0x1f8/0x5a0 [ 51.089558][ T3542] ? sock_map_delete_elem+0x161/0x230 [ 51.094922][ T3542] ? read_lock_is_recursive+0x10/0x10 [ 51.100282][ T3542] ? bpf_get_current_cgroup_id+0x19/0x330 [ 51.105991][ T3542] ? sock_map_delete_elem+0x161/0x230 [ 51.111353][ T3542] ? __bpf_trace_softirq+0x10/0x10 [ 51.116459][ T3542] ? bpf_get_current_cgroup_id+0x19/0x330 [ 51.122165][ T3542] ? sock_map_delete_elem+0x161/0x230 [ 51.127537][ T3542] _raw_spin_lock_bh+0x31/0x40 [ 51.132286][ T3542] ? sock_map_delete_elem+0x161/0x230 [ 51.137647][ T3542] sock_map_delete_elem+0x161/0x230 [ 51.142834][ T3542] ? sock_map_update_elem+0x500/0x500 [ 51.148216][ T3542] ? bpf_get_current_cgroup_id+0x19/0x330 [ 51.153927][ T3542] bpf_prog_d284ea97e99fac5b+0x3f/0x43 [ 51.159377][ T3542] bpf_trace_run2+0x1fd/0x410 [ 51.164043][ T3542] ? bpf_trace_run2+0x110/0x410 [ 51.168877][ T3542] ? bpf_trace_run1+0x3d0/0x3d0 [ 51.173719][ T3542] ? sock_map_unref+0x3ac/0x5d0 [ 51.178560][ T3542] ? __rwlock_init+0x140/0x140 [ 51.183307][ T3542] ? sock_map_unref+0x3ac/0x5d0 [ 51.188144][ T3542] __bpf_trace_kfree+0x6e/0x90 [ 51.192892][ T3542] ? sock_map_unref+0x3ac/0x5d0 [ 51.197733][ T3542] kfree+0xf6/0x190 [ 51.201529][ T3542] sock_map_unref+0x3ac/0x5d0 [ 51.206195][ T3542] sock_map_update_common+0x4ec/0x5b0 [ 51.211557][ T3542] sock_map_update_elem_sys+0x55b/0x910 [ 51.217090][ T3542] ? sock_map_update_elem_sys+0x1d4/0x910 [ 51.222798][ T3542] ? sock_map_prog_detach+0x290/0x290 [ 51.228158][ T3542] ? bpf_map_update_value+0x14a/0x6f0 [ 51.233522][ T3542] map_update_elem+0x503/0x680 [ 51.238275][ T3542] __sys_bpf+0x337/0x6c0 [ 51.242508][ T3542] ? bpf_link_show_fdinfo+0x2d0/0x2d0 [ 51.247869][ T3542] ? fd_install+0x57/0x540 [ 51.252274][ T3542] ? print_irqtrace_events+0x210/0x210 [ 51.257718][ T3542] ? print_irqtrace_events+0x210/0x210 [ 51.263165][ T3542] ? syscall_enter_from_user_mode+0x2e/0x230 [ 51.269128][ T3542] ? lockdep_hardirqs_on+0x94/0x130 [ 51.274307][ T3542] __x64_sys_bpf+0x78/0x90 [ 51.278712][ T3542] do_syscall_64+0x3b/0xb0 [ 51.283113][ T3542] ? clear_bhb_loop+0x45/0xa0 [ 51.287778][ T3542] entry_SYSCALL_64_after_hwframe+0x68/0xd2 [ 51.293656][ T3542] RIP: 0033:0x7f2a920a2729 [ 51.298055][ T3542] 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.317640][ T3542] RSP: 002b:00007ffc4145f798 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 [ 51.326037][ T3542] RAX: ffffffffffffffda RBX: 00007ffc4145f968 RCX: 00007f2a920a2729 [ 51.333996][ T3542] RDX: 0000000000000020 RSI: 0000000020000680 RDI: 0000000000000002 [ 51.341950][ T3542] RBP: 00007f2a92115610 R08: 00007ffc4145f968 R09: 00007ffc4145f968 [ 51.349906][ T3542] R10: 00007ffc4145f968 R11: 0000000000000246 R12