Warning: Permanently added '10.128.0.166' (ED25519) to the list of known hosts. executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 50.775514][ T13] [ 50.777888][ T13] ============================================ [ 50.784040][ T13] WARNING: possible recursive locking detected [ 50.790176][ T13] 5.15.157-syzkaller #0 Not tainted [ 50.795360][ T13] -------------------------------------------- [ 50.801496][ T13] kworker/0:1/13 is trying to acquire lock: [ 50.807375][ T13] ffff88814b392d68 (&htab->buckets[i].lock){+...}-{2:2}, at: sock_hash_delete_elem+0x177/0x400 [ 50.817743][ T13] [ 50.817743][ T13] but task is already holding lock: [ 50.825094][ T13] ffff88814b392d68 (&htab->buckets[i].lock){+...}-{2:2}, at: sock_hash_delete_elem+0x177/0x400 [ 50.835568][ T13] [ 50.835568][ T13] other info that might help us debug this: [ 50.843635][ T13] Possible unsafe locking scenario: [ 50.843635][ T13] [ 50.851083][ T13] CPU0 [ 50.854366][ T13] ---- [ 50.857638][ T13] lock(&htab->buckets[i].lock); [ 50.862657][ T13] lock(&htab->buckets[i].lock); [ 50.867674][ T13] [ 50.867674][ T13] *** DEADLOCK *** [ 50.867674][ T13] [ 50.875897][ T13] May be due to missing lock nesting notation [ 50.875897][ T13] [ 50.884228][ T13] 6 locks held by kworker/0:1/13: [ 50.889243][ T13] #0: ffff888011c70938 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x78a/0x10c0 [ 50.899602][ T13] #1: ffffc90000d27d20 ((work_completion)(&map->work)){+.+.}-{0:0}, at: process_one_work+0x7d0/0x10c0 [ 50.910649][ T13] #2: ffffffff8c91fb20 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x5/0x30 [ 50.919957][ T13] #3: ffff88814b392d68 (&htab->buckets[i].lock){+...}-{2:2}, at: sock_hash_delete_elem+0x177/0x400 [ 50.930745][ T13] #4: ffff888015bf0290 (&psock->link_lock){+...}-{2:2}, at: sock_map_unref+0xcc/0x5d0 [ 50.940398][ T13] #5: ffffffff8c91fb20 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x5/0x30 [ 50.949704][ T13] [ 50.949704][ T13] stack backtrace: [ 50.955586][ T13] CPU: 0 PID: 13 Comm: kworker/0:1 Not tainted 5.15.157-syzkaller #0 [ 50.963648][ T13] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 [ 50.973694][ T13] Workqueue: events bpf_map_free_deferred [ 50.979412][ T13] Call Trace: [ 50.982686][ T13] [ 50.985613][ T13] dump_stack_lvl+0x1e3/0x2d0 [ 50.990289][ T13] ? io_uring_drop_tctx_refs+0x1a0/0x1a0 [ 50.995915][ T13] ? panic+0x860/0x860 [ 50.999990][ T13] validate_chain+0x46d2/0x5930 [ 51.004840][ T13] ? check_path+0x40/0x40 [ 51.009184][ T13] ? reacquire_held_locks+0x660/0x660 [ 51.014551][ T13] ? check_noncircular+0x1e1/0x3b0 [ 51.019663][ T13] ? lockdep_unlock+0x166/0x300 [ 51.024519][ T13] ? lockdep_lock+0x2a0/0x2a0 [ 51.029208][ T13] ? add_chain_block+0x850/0x850 [ 51.034146][ T13] ? reacquire_held_locks+0x660/0x660 [ 51.039522][ T13] ? mark_lock+0x98/0x340 [ 51.043861][ T13] __lock_acquire+0x1295/0x1ff0 [ 51.048719][ T13] lock_acquire+0x1db/0x4f0 [ 51.053216][ T13] ? sock_hash_delete_elem+0x177/0x400 [ 51.058674][ T13] ? read_lock_is_recursive+0x10/0x10 [ 51.064039][ T13] ? sock_hash_delete_elem+0x177/0x400 [ 51.069496][ T13] ? __bpf_trace_softirq+0x10/0x10 [ 51.074606][ T13] ? sock_hash_delete_elem+0x177/0x400 [ 51.080062][ T13] _raw_spin_lock_bh+0x31/0x40 [ 51.084826][ T13] ? sock_hash_delete_elem+0x177/0x400 [ 51.090280][ T13] sock_hash_delete_elem+0x177/0x400 [ 51.095563][ T13] ? sock_hash_lookup+0x660/0x660 [ 51.100586][ T13] bpf_prog_2c29ac5cdc6b1842+0x3a/0xac [ 51.106039][ T13] bpf_trace_run2+0x19e/0x340 [ 51.110716][ T13] ? bpf_trace_run1+0x2f0/0x2f0 [ 51.115564][ T13] ? sock_map_unref+0x3ac/0x5d0 [ 51.120414][ T13] ? do_raw_spin_lock+0x14a/0x370 [ 51.125432][ T13] ? __bpf_trace_softirq+0x10/0x10 [ 51.130538][ T13] ? sock_map_unref+0x3ac/0x5d0 [ 51.135396][ T13] __bpf_trace_kfree+0x6e/0x90 [ 51.140195][ T13] ? sock_map_unref+0x3ac/0x5d0 [ 51.145062][ T13] kfree+0x22f/0x270 [ 51.148968][ T13] ? sock_map_unref+0xcc/0x5d0 [ 51.153731][ T13] sock_map_unref+0x3ac/0x5d0 [ 51.158414][ T13] sock_hash_delete_elem+0x388/0x400 [ 51.163700][ T13] ? sock_hash_lookup+0x660/0x660 [ 51.168723][ T13] bpf_prog_2c29ac5cdc6b1842+0x3a/0xac [ 51.174190][ T13] bpf_trace_run2+0x19e/0x340 [ 51.178865][ T13] ? bpf_trace_run1+0x2f0/0x2f0 [ 51.183709][ T13] ? sock_hash_free+0x713/0x780 [ 51.188555][ T13] ? lockdep_hardirqs_on+0x94/0x130 [ 51.193758][ T13] ? sock_hash_free+0x713/0x780 [ 51.198624][ T13] __bpf_trace_kfree+0x6e/0x90 [ 51.203388][ T13] ? sock_hash_free+0x713/0x780 [ 51.208233][ T13] kfree+0x22f/0x270 [ 51.212125][ T13] sock_hash_free+0x713/0x780 [ 51.216801][ T13] ? sock_hash_alloc+0x520/0x520 [ 51.221739][ T13] ? do_raw_spin_unlock+0x137/0x8b0 [ 51.226960][ T13] ? bpf_lsm_bpf_map_free_security+0x5/0x10 [ 51.232852][ T13] ? security_bpf_map_free+0x6a/0x80 [ 51.238220][ T13] ? bpf_map_free_deferred+0xb8/0x2e0 [ 51.243612][ T13] process_one_work+0x8a1/0x10c0 [ 51.248664][ T13] ? worker_detach_from_pool+0x260/0x260 [ 51.254313][ T13] ? _raw_spin_lock_irqsave+0x120/0x120 [ 51.259873][ T13] ? kthread_data+0x4e/0xc0 [ 51.264384][ T13] ? wq_worker_running+0x97/0x170 [ 51.269410][ T13] worker_thread+0xaca/0x1280 [ 51.274094][ T13] kthread+0x3f6/0x4f0 [ 51.278156][ T13] ? rcu_lock_release+0x20/0x20 [ 51.283001][ T13] ? kthread_blkcg+0xd0/0xd0 [ 51.287591][ T13] ret_from_fork+0x1f/0x30 [ 51.292009][ T13]