Warning: Permanently added '10.128.0.164' (ED25519) to the list of known hosts. executing program executing program executing program [ 42.358217][ T21] [ 42.360568][ T21] ============================================ [ 42.366694][ T21] WARNING: possible recursive locking detected [ 42.372818][ T21] 5.15.158-syzkaller #0 Not tainted [ 42.378003][ T21] -------------------------------------------- [ 42.384125][ T21] kworker/1:0/21 is trying to acquire lock: [ 42.389988][ T21] ffff888024010668 (&htab->buckets[i].lock){+...}-{2:2}, at: sock_hash_delete_elem+0x177/0x400 [ 42.400329][ T21] [ 42.400329][ T21] but task is already holding lock: [ 42.407668][ T21] ffff888024010668 (&htab->buckets[i].lock){+...}-{2:2}, at: sock_hash_delete_elem+0x177/0x400 [ 42.417987][ T21] [ 42.417987][ T21] other info that might help us debug this: [ 42.426024][ T21] Possible unsafe locking scenario: [ 42.426024][ T21] [ 42.433535][ T21] CPU0 [ 42.436882][ T21] ---- [ 42.440138][ T21] lock(&htab->buckets[i].lock); [ 42.445145][ T21] lock(&htab->buckets[i].lock); [ 42.450150][ T21] [ 42.450150][ T21] *** DEADLOCK *** [ 42.450150][ T21] [ 42.458271][ T21] May be due to missing lock nesting notation [ 42.458271][ T21] [ 42.466576][ T21] 6 locks held by kworker/1:0/21: [ 42.471575][ T21] #0: ffff888011c72138 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_one_work+0x78a/0x10c0 [ 42.481902][ T21] #1: ffffc90000db7d20 ((work_completion)(&sdp->work)){+.+.}-{0:0}, at: process_one_work+0x7d0/0x10c0 [ 42.492919][ T21] #2: ffffffff8c91fae0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x5/0x30 [ 42.502200][ T21] #3: ffff888024010668 (&htab->buckets[i].lock){+...}-{2:2}, at: sock_hash_delete_elem+0x177/0x400 [ 42.512957][ T21] #4: ffff88807b4af290 (&psock->link_lock){+...}-{2:2}, at: sock_map_unref+0xcc/0x5d0 [ 42.522587][ T21] #5: ffffffff8c91fae0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x5/0x30 [ 42.531869][ T21] [ 42.531869][ T21] stack backtrace: [ 42.537733][ T21] CPU: 1 PID: 21 Comm: kworker/1:0 Not tainted 5.15.158-syzkaller #0 [ 42.545775][ T21] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 [ 42.555809][ T21] Workqueue: rcu_gp srcu_invoke_callbacks [ 42.561513][ T21] Call Trace: [ 42.564775][ T21] [ 42.567687][ T21] dump_stack_lvl+0x1e3/0x2d0 [ 42.572347][ T21] ? io_uring_drop_tctx_refs+0x1a0/0x1a0 [ 42.577958][ T21] ? panic+0x860/0x860 [ 42.582010][ T21] validate_chain+0x46d2/0x5930 [ 42.586843][ T21] ? arch_stack_walk+0x10d/0x140 [ 42.591764][ T21] ? reacquire_held_locks+0x660/0x660 [ 42.597118][ T21] ? check_noncircular+0x1e1/0x3b0 [ 42.602215][ T21] ? lockdep_unlock+0x166/0x300 [ 42.607044][ T21] ? lockdep_lock+0x2a0/0x2a0 [ 42.611697][ T21] ? add_chain_block+0x850/0x850 [ 42.616613][ T21] ? reacquire_held_locks+0x660/0x660 [ 42.621965][ T21] ? mark_lock+0x98/0x340 [ 42.626275][ T21] __lock_acquire+0x1295/0x1ff0 [ 42.631108][ T21] lock_acquire+0x1db/0x4f0 [ 42.635591][ T21] ? sock_hash_delete_elem+0x177/0x400 [ 42.641033][ T21] ? read_lock_is_recursive+0x10/0x10 [ 42.646388][ T21] ? sock_hash_delete_elem+0x177/0x400 [ 42.651826][ T21] ? __bpf_trace_softirq+0x10/0x10 [ 42.656919][ T21] ? sock_hash_delete_elem+0x177/0x400 [ 42.662364][ T21] _raw_spin_lock_bh+0x31/0x40 [ 42.667106][ T21] ? sock_hash_delete_elem+0x177/0x400 [ 42.672570][ T21] sock_hash_delete_elem+0x177/0x400 [ 42.677842][ T21] ? sock_hash_lookup+0x660/0x660 [ 42.682850][ T21] bpf_prog_2c29ac5cdc6b1842+0x3a/0x284 [ 42.688373][ T21] bpf_trace_run2+0x19e/0x340 [ 42.693033][ T21] ? bpf_trace_run1+0x2f0/0x2f0 [ 42.697864][ T21] ? sock_map_unref+0x3ac/0x5d0 [ 42.702692][ T21] ? do_raw_spin_lock+0x14a/0x370 [ 42.707692][ T21] ? __bpf_trace_softirq+0x10/0x10 [ 42.712784][ T21] ? sock_map_unref+0x3ac/0x5d0 [ 42.717622][ T21] __bpf_trace_kfree+0x6e/0x90 [ 42.722371][ T21] ? sock_map_unref+0x3ac/0x5d0 [ 42.727242][ T21] kfree+0x22f/0x270 [ 42.731118][ T21] ? sock_map_unref+0xcc/0x5d0 [ 42.735871][ T21] sock_map_unref+0x3ac/0x5d0 [ 42.740530][ T21] sock_hash_delete_elem+0x388/0x400 [ 42.745798][ T21] ? sock_hash_lookup+0x660/0x660 [ 42.750803][ T21] ? mark_lock+0x98/0x340 [ 42.755110][ T21] bpf_prog_2c29ac5cdc6b1842+0x3a/0x284 [ 42.760666][ T21] bpf_trace_run2+0x19e/0x340 [ 42.765342][ T21] ? print_irqtrace_events+0x210/0x210 [ 42.771048][ T21] ? bpf_trace_run1+0x2f0/0x2f0 [ 42.775893][ T21] ? srcu_invoke_callbacks+0x1b9/0x400 [ 42.781343][ T21] ? __local_bh_disable_ip+0x175/0x210 [ 42.786792][ T21] ? _raw_spin_unlock_irqrestore+0x8b/0x130 [ 42.792674][ T21] ? srcu_invoke_callbacks+0x1b9/0x400 [ 42.798122][ T21] __bpf_trace_kfree+0x6e/0x90 [ 42.802875][ T21] ? srcu_invoke_callbacks+0x1b9/0x400 [ 42.808315][ T21] kfree+0x22f/0x270 [ 42.812196][ T21] srcu_invoke_callbacks+0x1b9/0x400 [ 42.817458][ T21] ? read_lock_is_recursive+0x10/0x10 [ 42.822812][ T21] ? try_check_zero+0x360/0x360 [ 42.827647][ T21] ? _raw_spin_unlock_irqrestore+0xd9/0x130 [ 42.833519][ T21] ? do_raw_spin_unlock+0x137/0x8b0 [ 42.839048][ T21] process_one_work+0x8a1/0x10c0 [ 42.843969][ T21] ? worker_detach_from_pool+0x260/0x260 [ 42.849602][ T21] ? _raw_spin_lock_irqsave+0x120/0x120 [ 42.855132][ T21] ? kthread_data+0x4e/0xc0 [ 42.859620][ T21] ? wq_worker_running+0x97/0x170 [ 42.864629][ T21] worker_thread+0xaca/0x1280 [ 42.869296][ T21] kthread+0x3f6/0x4f0 [ 42.873344][ T21] ? rcu_lock_release+0x20/0x20 [ 42.878203][ T21] ? kthread_blkcg+0xd0/0xd0 [ 42.882775][ T21] ret_from_fork+0x1f/0x30 [ 42.887176][ T21]