Warning: Permanently added '10.128.0.54' (ED25519) to the list of known hosts. executing program executing program executing program executing program [ 48.067007][ T25] [ 48.069365][ T25] ============================================ [ 48.075506][ T25] WARNING: possible recursive locking detected [ 48.081645][ T25] 5.15.158-syzkaller #0 Not tainted [ 48.086833][ T25] -------------------------------------------- [ 48.092958][ T25] kworker/1:1/25 is trying to acquire lock: [ 48.098844][ T25] ffff888020302b68 (&htab->buckets[i].lock){+...}-{2:2}, at: sock_hash_delete_elem+0x177/0x400 [ 48.109207][ T25] [ 48.109207][ T25] but task is already holding lock: [ 48.116564][ T25] ffff888020302b68 (&htab->buckets[i].lock){+...}-{2:2}, at: sock_hash_delete_elem+0x177/0x400 [ 48.126900][ T25] [ 48.126900][ T25] other info that might help us debug this: [ 48.134939][ T25] Possible unsafe locking scenario: [ 48.134939][ T25] [ 48.142375][ T25] CPU0 [ 48.145636][ T25] ---- [ 48.148900][ T25] lock(&htab->buckets[i].lock); [ 48.153917][ T25] lock(&htab->buckets[i].lock); [ 48.158922][ T25] [ 48.158922][ T25] *** DEADLOCK *** [ 48.158922][ T25] [ 48.167062][ T25] May be due to missing lock nesting notation [ 48.167062][ T25] [ 48.175374][ T25] 4 locks held by kworker/1:1/25: [ 48.180575][ T25] #0: ffffffff8c91fae0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x5/0x30 [ 48.189886][ T25] #1: ffff888020302b68 (&htab->buckets[i].lock){+...}-{2:2}, at: sock_hash_delete_elem+0x177/0x400 [ 48.200663][ T25] #2: ffff888078d49290 (&psock->link_lock){+...}-{2:2}, at: sock_map_unref+0xcc/0x5d0 [ 48.210298][ T25] #3: ffffffff8c91fae0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x5/0x30 [ 48.219584][ T25] [ 48.219584][ T25] stack backtrace: [ 48.225453][ T25] CPU: 1 PID: 25 Comm: kworker/1:1 Not tainted 5.15.158-syzkaller #0 [ 48.233497][ T25] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 [ 48.243534][ T25] Workqueue: 0x0 (events) [ 48.247965][ T25] Call Trace: [ 48.251232][ T25] [ 48.254143][ T25] dump_stack_lvl+0x1e3/0x2d0 [ 48.258802][ T25] ? io_uring_drop_tctx_refs+0x1a0/0x1a0 [ 48.264417][ T25] ? panic+0x860/0x860 [ 48.268484][ T25] validate_chain+0x46d2/0x5930 [ 48.273320][ T25] ? reacquire_held_locks+0x660/0x660 [ 48.278671][ T25] ? check_noncircular+0x1e1/0x3b0 [ 48.283762][ T25] ? reacquire_held_locks+0x660/0x660 [ 48.289116][ T25] ? lockdep_unlock+0x166/0x300 [ 48.293949][ T25] ? lockdep_lock+0x2a0/0x2a0 [ 48.298604][ T25] ? validate_chain+0x112/0x5930 [ 48.303525][ T25] ? reacquire_held_locks+0x660/0x660 [ 48.308878][ T25] ? mark_lock+0x98/0x340 [ 48.313188][ T25] __lock_acquire+0x1295/0x1ff0 [ 48.318041][ T25] lock_acquire+0x1db/0x4f0 [ 48.322530][ T25] ? sock_hash_delete_elem+0x177/0x400 [ 48.327988][ T25] ? read_lock_is_recursive+0x10/0x10 [ 48.333341][ T25] ? sock_hash_delete_elem+0x177/0x400 [ 48.338807][ T25] ? __bpf_trace_softirq+0x10/0x10 [ 48.343902][ T25] ? sock_hash_delete_elem+0x177/0x400 [ 48.349341][ T25] _raw_spin_lock_bh+0x31/0x40 [ 48.354092][ T25] ? sock_hash_delete_elem+0x177/0x400 [ 48.359532][ T25] sock_hash_delete_elem+0x177/0x400 [ 48.364811][ T25] ? sock_hash_lookup+0x660/0x660 [ 48.369820][ T25] bpf_prog_2c29ac5cdc6b1842+0x3a/0x698 [ 48.375348][ T25] bpf_trace_run2+0x19e/0x340 [ 48.380010][ T25] ? bpf_trace_run1+0x2f0/0x2f0 [ 48.384840][ T25] ? sock_map_unref+0x3ac/0x5d0 [ 48.389683][ T25] ? do_raw_spin_lock+0x14a/0x370 [ 48.394690][ T25] ? __bpf_trace_softirq+0x10/0x10 [ 48.399783][ T25] ? sock_map_unref+0x3ac/0x5d0 [ 48.404618][ T25] __bpf_trace_kfree+0x6e/0x90 [ 48.409367][ T25] ? sock_map_unref+0x3ac/0x5d0 [ 48.414217][ T25] kfree+0x22f/0x270 [ 48.418111][ T25] ? sock_map_unref+0xcc/0x5d0 [ 48.422862][ T25] sock_map_unref+0x3ac/0x5d0 [ 48.427542][ T25] sock_hash_delete_elem+0x388/0x400 [ 48.432809][ T25] ? prandom_u32+0x218/0x260 [ 48.437396][ T25] ? sock_hash_lookup+0x660/0x660 [ 48.442405][ T25] bpf_prog_2c29ac5cdc6b1842+0x3a/0x698 [ 48.447930][ T25] bpf_trace_run2+0x19e/0x340 [ 48.452589][ T25] ? bpf_trace_run1+0x2f0/0x2f0 [ 48.457424][ T25] ? __kthread_create_on_node+0x33c/0x3f0 [ 48.463127][ T25] ? __kthread_create_on_node+0x33c/0x3f0 [ 48.468828][ T25] __bpf_trace_kfree+0x6e/0x90 [ 48.473575][ T25] ? __kthread_create_on_node+0x33c/0x3f0 [ 48.479277][ T25] kfree+0x22f/0x270 [ 48.483166][ T25] ? _raw_spin_unlock+0x24/0x40 [ 48.488003][ T25] __kthread_create_on_node+0x33c/0x3f0 [ 48.493547][ T25] ? kthread_create_on_node+0x120/0x120 [ 48.499075][ T25] ? vsnprintf+0x1b96/0x1c70 [ 48.503670][ T25] ? ptr_to_hashval+0x60/0x60 [ 48.508329][ T25] ? rcu_lock_release+0x20/0x20 [ 48.513179][ T25] kthread_create_on_node+0xda/0x120 [ 48.518459][ T25] ? vsnprintf+0x191/0x1c70 [ 48.522953][ T25] ? tsk_fork_get_node+0x60/0x60 [ 48.527889][ T25] ? kmem_cache_alloc_node_trace+0x171/0x2e0 [ 48.533852][ T25] ? create_worker+0x117/0x630 [ 48.538606][ T25] create_worker+0x34d/0x630 [ 48.543180][ T25] ? workqueue_prepare_cpu+0x170/0x170 [ 48.548628][ T25] ? _raw_spin_unlock_irq+0x1f/0x40 [ 48.553811][ T25] ? lockdep_hardirqs_on+0x94/0x130 [ 48.558997][ T25] worker_thread+0x4bf/0x1280 [ 48.563687][ T25] kthread+0x3f6/0x4f0 [ 48.567737][ T25] ? rcu_lock_release+0x20/0x20 [ 48.572568][ T25] ? kthread_blkcg+0xd0/0xd0 [ 48.577140][ T25] ret_from_fork+0x1f/0x30 [ 48.581545][ T25]