Warning: Permanently added '10.128.1.23' (ED25519) to the list of known hosts. executing program [ 42.765585][ T3504] [ 42.767917][ T3504] ============================================ [ 42.774035][ T3504] WARNING: possible recursive locking detected [ 42.780175][ T3504] 5.15.156-syzkaller #0 Not tainted [ 42.785341][ T3504] -------------------------------------------- [ 42.791457][ T3504] syz-executor184/3504 is trying to acquire lock: [ 42.797840][ T3504] ffff88807993c9c0 (&stab->lock){+.-.}-{2:2}, at: sock_map_delete_elem+0x161/0x230 [ 42.807125][ T3504] [ 42.807125][ T3504] but task is already holding lock: [ 42.814461][ T3504] ffff88807993cdc0 (&stab->lock){+.-.}-{2:2}, at: sock_map_update_common+0x1b6/0x5b0 [ 42.823906][ T3504] [ 42.823906][ T3504] other info that might help us debug this: [ 42.831934][ T3504] Possible unsafe locking scenario: [ 42.831934][ T3504] [ 42.839374][ T3504] CPU0 [ 42.842626][ T3504] ---- [ 42.845880][ T3504] lock(&stab->lock); [ 42.849923][ T3504] lock(&stab->lock); [ 42.853961][ T3504] [ 42.853961][ T3504] *** DEADLOCK *** [ 42.853961][ T3504] [ 42.862074][ T3504] May be due to missing lock nesting notation [ 42.862074][ T3504] [ 42.870363][ T3504] 5 locks held by syz-executor184/3504: [ 42.875876][ T3504] #0: ffff88801d9b2120 (sk_lock-AF_UNIX){+.+.}-{0:0}, at: sock_map_update_elem_sys+0x1c8/0x770 [ 42.886284][ T3504] #1: ffffffff8c91fb20 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x5/0x30 [ 42.895568][ T3504] #2: ffff88807993cdc0 (&stab->lock){+.-.}-{2:2}, at: sock_map_update_common+0x1b6/0x5b0 [ 42.905449][ T3504] #3: ffff8881447ae290 (&psock->link_lock){+...}-{2:2}, at: sock_map_unref+0xcc/0x5d0 [ 42.915071][ T3504] #4: ffffffff8c91fb20 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x5/0x30 [ 42.924347][ T3504] [ 42.924347][ T3504] stack backtrace: [ 42.930221][ T3504] CPU: 0 PID: 3504 Comm: syz-executor184 Not tainted 5.15.156-syzkaller #0 [ 42.938778][ T3504] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 [ 42.949076][ T3504] Call Trace: [ 42.952336][ T3504] [ 42.955245][ T3504] dump_stack_lvl+0x1e3/0x2d0 [ 42.959906][ T3504] ? io_uring_drop_tctx_refs+0x1a0/0x1a0 [ 42.965626][ T3504] ? panic+0x860/0x860 [ 42.969677][ T3504] validate_chain+0x46d2/0x5930 [ 42.974504][ T3504] ? reacquire_held_locks+0x660/0x660 [ 42.979849][ T3504] ? __lock_acquire+0x1ff0/0x1ff0 [ 42.984846][ T3504] ? unwind_next_frame+0x1437/0x1fa0 [ 42.990105][ T3504] ? mark_lock+0x98/0x340 [ 42.994408][ T3504] ? reacquire_held_locks+0x660/0x660 [ 42.999753][ T3504] ? validate_chain+0x112/0x5930 [ 43.004668][ T3504] ? reacquire_held_locks+0x660/0x660 [ 43.010013][ T3504] ? validate_chain+0x112/0x5930 [ 43.014930][ T3504] ? mark_lock+0x98/0x340 [ 43.019238][ T3504] __lock_acquire+0x1295/0x1ff0 [ 43.024065][ T3504] lock_acquire+0x1db/0x4f0 [ 43.028539][ T3504] ? sock_map_delete_elem+0x161/0x230 [ 43.033883][ T3504] ? read_lock_is_recursive+0x10/0x10 [ 43.039228][ T3504] ? sock_map_delete_elem+0x161/0x230 [ 43.044577][ T3504] ? __bpf_trace_softirq+0x10/0x10 [ 43.049683][ T3504] ? sock_map_delete_elem+0x161/0x230 [ 43.055026][ T3504] _raw_spin_lock_bh+0x31/0x40 [ 43.059764][ T3504] ? sock_map_delete_elem+0x161/0x230 [ 43.065108][ T3504] sock_map_delete_elem+0x161/0x230 [ 43.070282][ T3504] ? sock_map_update_elem+0x380/0x380 [ 43.075627][ T3504] bpf_prog_d284ea97e99fac5b+0x3f/0xb9c [ 43.081143][ T3504] bpf_trace_run2+0x19e/0x340 [ 43.085797][ T3504] ? bpf_trace_run1+0x2f0/0x2f0 [ 43.090620][ T3504] ? lockdep_hardirqs_on_prepare+0x438/0x7a0 [ 43.096574][ T3504] ? sock_map_unref+0x3ac/0x5d0 [ 43.101404][ T3504] ? do_raw_spin_lock+0x14a/0x370 [ 43.106399][ T3504] ? __bpf_trace_softirq+0x10/0x10 [ 43.111483][ T3504] ? sock_map_unref+0x3ac/0x5d0 [ 43.116305][ T3504] __bpf_trace_kfree+0x6e/0x90 [ 43.121045][ T3504] ? sock_map_unref+0x3ac/0x5d0 [ 43.125869][ T3504] kfree+0x22f/0x270 [ 43.129741][ T3504] ? sock_map_unref+0xcc/0x5d0 [ 43.134477][ T3504] sock_map_unref+0x3ac/0x5d0 [ 43.139128][ T3504] sock_map_update_common+0x4ec/0x5b0 [ 43.144474][ T3504] sock_map_update_elem_sys+0x440/0x770 [ 43.149995][ T3504] ? sock_map_prog_detach+0x290/0x290 [ 43.155339][ T3504] map_update_elem+0x6a0/0x7c0 [ 43.160080][ T3504] __sys_bpf+0x2fd/0x670 [ 43.164299][ T3504] ? bpf_link_show_fdinfo+0x2d0/0x2d0 [ 43.169647][ T3504] ? syscall_enter_from_user_mode+0x2e/0x240 [ 43.175603][ T3504] ? lockdep_hardirqs_on+0x94/0x130 [ 43.180771][ T3504] __x64_sys_bpf+0x78/0x90 [ 43.185158][ T3504] do_syscall_64+0x3b/0xb0 [ 43.189547][ T3504] ? clear_bhb_loop+0x15/0x70 [ 43.194197][ T3504] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 43.200067][ T3504] RIP: 0033:0x7f5ee3eaa729 [ 43.204456][ T3504] 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 [ 43.224034][ T3504] RSP: 002b:00007ffddc886348 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 [ 43.232420][ T3504] RAX: ffffffffffffffda RBX: 00007ffddc886518 RCX: 00007f5ee3eaa729 [ 43.240366][ T3504] RDX: 0000000000000020 RSI: 0000000020000680 RDI: 0000000000000002 [ 43.248310][ T3504] RBP: 00007f5ee3f1d610 R08: 00007ffddc886518 R09: 00007ffddc886518 [ 43.256256][ T3504] R10: 00007ffddc886518 R11: 0000000000000246 R12: 0000000000000001 [ 43.264201][ T3504] R13: 00007ffddc886