Warning: Permanently added '10.128.0.39' (ED25519) to the list of known hosts. executing program syzkaller login: [ 41.510313][ T3500] [ 41.512646][ T3500] ============================================ [ 41.518830][ T3500] WARNING: possible recursive locking detected [ 41.525001][ T3500] 5.15.158-syzkaller #0 Not tainted [ 41.530207][ T3500] -------------------------------------------- [ 41.536502][ T3500] syz-executor227/3500 is trying to acquire lock: [ 41.542894][ T3500] ffff88807ece21c0 (&stab->lock){+.-.}-{2:2}, at: sock_map_delete_elem+0x161/0x230 [ 41.552215][ T3500] [ 41.552215][ T3500] but task is already holding lock: [ 41.559558][ T3500] ffff88807ece25c0 (&stab->lock){+.-.}-{2:2}, at: sock_map_update_common+0x1b6/0x5b0 [ 41.569008][ T3500] [ 41.569008][ T3500] other info that might help us debug this: [ 41.577041][ T3500] Possible unsafe locking scenario: [ 41.577041][ T3500] [ 41.584466][ T3500] CPU0 [ 41.587738][ T3500] ---- [ 41.590994][ T3500] lock(&stab->lock); [ 41.595036][ T3500] lock(&stab->lock); [ 41.599080][ T3500] [ 41.599080][ T3500] *** DEADLOCK *** [ 41.599080][ T3500] [ 41.607219][ T3500] May be due to missing lock nesting notation [ 41.607219][ T3500] [ 41.615510][ T3500] 5 locks held by syz-executor227/3500: [ 41.621025][ T3500] #0: ffff888078589920 (sk_lock-AF_UNIX){+.+.}-{0:0}, at: sock_map_update_elem_sys+0x1c8/0x770 [ 41.631428][ T3500] #1: ffffffff8c91fae0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x5/0x30 [ 41.640706][ T3500] #2: ffff88807ece25c0 (&stab->lock){+.-.}-{2:2}, at: sock_map_update_common+0x1b6/0x5b0 [ 41.650596][ T3500] #3: ffff888146afd290 (&psock->link_lock){+...}-{2:2}, at: sock_map_unref+0xcc/0x5d0 [ 41.660216][ T3500] #4: ffffffff8c91fae0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x5/0x30 [ 41.669495][ T3500] [ 41.669495][ T3500] stack backtrace: [ 41.675365][ T3500] CPU: 0 PID: 3500 Comm: syz-executor227 Not tainted 5.15.158-syzkaller #0 [ 41.683947][ T3500] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 [ 41.694102][ T3500] Call Trace: [ 41.697370][ T3500] [ 41.700304][ T3500] dump_stack_lvl+0x1e3/0x2d0 [ 41.704965][ T3500] ? io_uring_drop_tctx_refs+0x1a0/0x1a0 [ 41.710590][ T3500] ? panic+0x860/0x860 [ 41.714636][ T3500] validate_chain+0x46d2/0x5930 [ 41.719468][ T3500] ? reacquire_held_locks+0x660/0x660 [ 41.724813][ T3500] ? cmp_ex_search+0x70/0x90 [ 41.729382][ T3500] ? bsearch+0x8e/0xb0 [ 41.733424][ T3500] ? search_extable+0xf0/0xf0 [ 41.738078][ T3500] ? copy_from_kernel_nofault+0x180/0x2d0 [ 41.743788][ T3500] ? search_extable+0xaf/0xf0 [ 41.748462][ T3500] ? trim_init_extable+0x3c0/0x3c0 [ 41.753548][ T3500] ? validate_chain+0x112/0x5930 [ 41.758465][ T3500] ? copy_from_kernel_nofault+0x180/0x2d0 [ 41.764159][ T3500] ? reacquire_held_locks+0x660/0x660 [ 41.769515][ T3500] ? copy_from_kernel_nofault+0x180/0x2d0 [ 41.775208][ T3500] ? mark_lock+0x98/0x340 [ 41.779510][ T3500] __lock_acquire+0x1295/0x1ff0 [ 41.784338][ T3500] lock_acquire+0x1db/0x4f0 [ 41.788842][ T3500] ? sock_map_delete_elem+0x161/0x230 [ 41.794204][ T3500] ? print_irqtrace_events+0x210/0x210 [ 41.799668][ T3500] ? read_lock_is_recursive+0x10/0x10 [ 41.805022][ T3500] ? exc_page_fault+0x342/0x740 [ 41.809943][ T3500] ? sock_map_delete_elem+0x161/0x230 [ 41.815305][ T3500] ? __bpf_trace_softirq+0x10/0x10 [ 41.820410][ T3500] ? asm_exc_page_fault+0x22/0x30 [ 41.825427][ T3500] ? sock_map_delete_elem+0x161/0x230 [ 41.830878][ T3500] _raw_spin_lock_bh+0x31/0x40 [ 41.835616][ T3500] ? sock_map_delete_elem+0x161/0x230 [ 41.840963][ T3500] sock_map_delete_elem+0x161/0x230 [ 41.846134][ T3500] ? sock_map_update_elem+0x380/0x380 [ 41.851488][ T3500] ? memset+0x1f/0x40 [ 41.855463][ T3500] ? bpf_probe_read_compat+0x154/0x180 [ 41.860918][ T3500] bpf_prog_bd09fd94307bc10c+0x63/0x108 [ 41.866533][ T3500] bpf_trace_run2+0x19e/0x340 [ 41.871187][ T3500] ? bpf_trace_run1+0x2f0/0x2f0 [ 41.876008][ T3500] ? lockdep_hardirqs_on_prepare+0x438/0x7a0 [ 41.881961][ T3500] ? sock_map_unref+0x3ac/0x5d0 [ 41.886817][ T3500] ? do_raw_spin_lock+0x14a/0x370 [ 41.891817][ T3500] ? __bpf_trace_softirq+0x10/0x10 [ 41.896918][ T3500] ? sock_map_unref+0x3ac/0x5d0 [ 41.901742][ T3500] __bpf_trace_kfree+0x6e/0x90 [ 41.906496][ T3500] ? sock_map_unref+0x3ac/0x5d0 [ 41.911325][ T3500] kfree+0x22f/0x270 [ 41.915206][ T3500] ? sock_map_unref+0xcc/0x5d0 [ 41.920035][ T3500] sock_map_unref+0x3ac/0x5d0 [ 41.924685][ T3500] sock_map_update_common+0x4ec/0x5b0 [ 41.930031][ T3500] sock_map_update_elem_sys+0x440/0x770 [ 41.935548][ T3500] ? sock_map_prog_detach+0x290/0x290 [ 41.940899][ T3500] map_update_elem+0x6a0/0x7c0 [ 41.945647][ T3500] __sys_bpf+0x2fd/0x670 [ 41.949880][ T3500] ? bpf_link_show_fdinfo+0x2d0/0x2d0 [ 41.955231][ T3500] ? syscall_enter_from_user_mode+0x2e/0x240 [ 41.961202][ T3500] ? lockdep_hardirqs_on+0x94/0x130 [ 41.966378][ T3500] __x64_sys_bpf+0x78/0x90 [ 41.970771][ T3500] do_syscall_64+0x3b/0xb0 [ 41.975170][ T3500] ? clear_bhb_loop+0x15/0x70 [ 41.979839][ T3500] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 41.985725][ T3500] RIP: 0033:0x7f5faba378e9 [ 41.990122][ 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 [ 42.009706][ T3500] RSP: 002b