Warning: Permanently added '10.128.1.94' (ED25519) to the list of known hosts. executing program executing program executing program syzkaller login: [ 52.993006][ T3248] [ 52.995366][ T3248] ============================================ [ 53.001504][ T3248] WARNING: possible recursive locking detected [ 53.007640][ T3248] 5.15.159-syzkaller #0 Not tainted [ 53.012818][ T3248] -------------------------------------------- [ 53.018951][ T3248] kworker/0:3/3248 is trying to acquire lock: [ 53.024999][ T3248] ffff88801d87e868 (&htab->buckets[i].lock){+...}-{2:2}, at: sock_hash_delete_elem+0x177/0x400 [ 53.035351][ T3248] [ 53.035351][ T3248] but task is already holding lock: [ 53.042786][ T3248] ffff88801d87e868 (&htab->buckets[i].lock){+...}-{2:2}, at: sock_hash_delete_elem+0x177/0x400 [ 53.053140][ T3248] [ 53.053140][ T3248] other info that might help us debug this: [ 53.061182][ T3248] Possible unsafe locking scenario: [ 53.061182][ T3248] [ 53.068618][ T3248] CPU0 [ 53.071882][ T3248] ---- [ 53.075151][ T3248] lock(&htab->buckets[i].lock); [ 53.081323][ T3248] lock(&htab->buckets[i].lock); [ 53.086337][ T3248] [ 53.086337][ T3248] *** DEADLOCK *** [ 53.086337][ T3248] [ 53.094461][ T3248] May be due to missing lock nesting notation [ 53.094461][ T3248] [ 53.102768][ T3248] 6 locks held by kworker/0:3/3248: [ 53.107973][ T3248] #0: ffff888011c70938 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x78a/0x10c0 [ 53.118317][ T3248] #1: ffffc90002db7d20 ((work_completion)(&map->work)){+.+.}-{0:0}, at: process_one_work+0x7d0/0x10c0 [ 53.129450][ T3248] #2: ffffffff8c91fae0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x5/0x30 [ 53.138839][ T3248] #3: ffff88801d87e868 (&htab->buckets[i].lock){+...}-{2:2}, at: sock_hash_delete_elem+0x177/0x400 [ 53.149616][ T3248] #4: ffff88807c13e290 (&psock->link_lock){+...}-{2:2}, at: sock_map_unref+0xcc/0x5d0 [ 53.159704][ T3248] #5: ffffffff8c91fae0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x5/0x30 [ 53.169022][ T3248] [ 53.169022][ T3248] stack backtrace: [ 53.174903][ T3248] CPU: 0 PID: 3248 Comm: kworker/0:3 Not tainted 5.15.159-syzkaller #0 [ 53.183132][ T3248] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 [ 53.193203][ T3248] Workqueue: events bpf_map_free_deferred [ 53.198922][ T3248] Call Trace: [ 53.202188][ T3248] [ 53.205111][ T3248] dump_stack_lvl+0x1e3/0x2d0 [ 53.209778][ T3248] ? io_uring_drop_tctx_refs+0x1a0/0x1a0 [ 53.215498][ T3248] ? panic+0x860/0x860 [ 53.219564][ T3248] validate_chain+0x46d2/0x5930 [ 53.224408][ T3248] ? check_path+0x40/0x40 [ 53.228812][ T3248] ? reacquire_held_locks+0x660/0x660 [ 53.234171][ T3248] ? check_noncircular+0x1e1/0x3b0 [ 53.239275][ T3248] ? lockdep_unlock+0x166/0x300 [ 53.244111][ T3248] ? lockdep_lock+0x2a0/0x2a0 [ 53.248776][ T3248] ? add_chain_block+0x850/0x850 [ 53.253702][ T3248] ? reacquire_held_locks+0x660/0x660 [ 53.259082][ T3248] ? mark_lock+0x98/0x340 [ 53.263401][ T3248] __lock_acquire+0x1295/0x1ff0 [ 53.268243][ T3248] lock_acquire+0x1db/0x4f0 [ 53.272732][ T3248] ? sock_hash_delete_elem+0x177/0x400 [ 53.278182][ T3248] ? read_lock_is_recursive+0x10/0x10 [ 53.283542][ T3248] ? sock_hash_delete_elem+0x177/0x400 [ 53.289340][ T3248] ? __bpf_trace_softirq+0x10/0x10 [ 53.294453][ T3248] ? sock_hash_delete_elem+0x177/0x400 [ 53.299899][ T3248] _raw_spin_lock_bh+0x31/0x40 [ 53.304657][ T3248] ? sock_hash_delete_elem+0x177/0x400 [ 53.310104][ T3248] sock_hash_delete_elem+0x177/0x400 [ 53.315377][ T3248] ? sock_hash_lookup+0x660/0x660 [ 53.320391][ T3248] bpf_prog_2c29ac5cdc6b1842+0x3a/0x168 [ 53.325923][ T3248] bpf_trace_run2+0x19e/0x340 [ 53.330613][ T3248] ? bpf_trace_run1+0x2f0/0x2f0 [ 53.335459][ T3248] ? sock_map_unref+0x3ac/0x5d0 [ 53.340297][ T3248] ? do_raw_spin_lock+0x14a/0x370 [ 53.345307][ T3248] ? __bpf_trace_softirq+0x10/0x10 [ 53.350423][ T3248] ? sock_map_unref+0x3ac/0x5d0 [ 53.355273][ T3248] __bpf_trace_kfree+0x6e/0x90 [ 53.360027][ T3248] ? sock_map_unref+0x3ac/0x5d0 [ 53.364865][ T3248] kfree+0x22f/0x270 [ 53.368748][ T3248] ? sock_map_unref+0xcc/0x5d0 [ 53.373525][ T3248] sock_map_unref+0x3ac/0x5d0 [ 53.378218][ T3248] sock_hash_delete_elem+0x388/0x400 [ 53.383506][ T3248] ? sock_hash_lookup+0x660/0x660 [ 53.388542][ T3248] bpf_prog_2c29ac5cdc6b1842+0x3a/0x168 [ 53.394080][ T3248] bpf_trace_run2+0x19e/0x340 [ 53.398753][ T3248] ? bpf_trace_run1+0x2f0/0x2f0 [ 53.403593][ T3248] ? sock_hash_free+0x713/0x780 [ 53.408449][ T3248] ? lockdep_hardirqs_on+0x94/0x130 [ 53.413687][ T3248] ? sock_hash_free+0x713/0x780 [ 53.418538][ T3248] __bpf_trace_kfree+0x6e/0x90 [ 53.423312][ T3248] ? sock_hash_free+0x713/0x780 [ 53.428163][ T3248] kfree+0x22f/0x270 [ 53.432060][ T3248] sock_hash_free+0x713/0x780 [ 53.436744][ T3248] ? sock_hash_alloc+0x520/0x520 [ 53.441680][ T3248] ? do_raw_spin_unlock+0x137/0x8b0 [ 53.447077][ T3248] ? bpf_lsm_bpf_map_free_security+0x5/0x10 [ 53.453009][ T3248] ? security_bpf_map_free+0x6a/0x80 [ 53.458291][ T3248] ? bpf_map_free_deferred+0xb8/0x2e0 [ 53.463659][ T3248] process_one_work+0x8a1/0x10c0 [ 53.468606][ T3248] ? worker_detach_from_pool+0x260/0x260 [ 53.474243][ T3248] ? _raw_spin_lock_irqsave+0x120/0x120 [ 53.479795][ T3248] ? kthread_data+0x4e/0xc0 [ 53.484297][ T3248] ? wq_worker_running+0x97/0x170 [ 53.489324][ T3248] worker_thread+0xaca/0x1280 [ 53.493997][ T3248] ? _raw_spin_unlock_irqrestore+0xd9/0x130 [ 53.499895][ T3248] kthread+0x3f6/0x4f0 [ 53.503955][ T3248] ? rcu_lock_release+0x20/0x20 [ 53.508793][ T3248] ? kthread_blkcg+0xd0/0xd0 [ 53.513377][ T3248] ret_from_fork+0x1f/0x30 [ 53.517795][ T3248]