Warning: Permanently added '10.128.1.7' (ED25519) to the list of known hosts. executing program executing program executing program executing program executing program executing program executing program [ 41.716442][ T23] [ 41.718790][ T23] ============================================ [ 41.725009][ T23] WARNING: possible recursive locking detected [ 41.731133][ T23] 5.15.160-syzkaller #0 Not tainted [ 41.736308][ T23] -------------------------------------------- [ 41.742426][ T23] kworker/1:1/23 is trying to acquire lock: [ 41.748370][ T23] ffff888074aa1868 (&htab->buckets[i].lock){+...}-{2:2}, at: sock_hash_delete_elem+0x177/0x400 [ 41.758792][ T23] [ 41.758792][ T23] but task is already holding lock: [ 41.766132][ T23] ffff888074aa1868 (&htab->buckets[i].lock){+...}-{2:2}, at: sock_hash_delete_elem+0x177/0x400 [ 41.776459][ T23] [ 41.776459][ T23] other info that might help us debug this: [ 41.784528][ T23] Possible unsafe locking scenario: [ 41.784528][ T23] [ 41.791970][ T23] CPU0 [ 41.795236][ T23] ---- [ 41.798624][ T23] lock(&htab->buckets[i].lock); [ 41.803646][ T23] lock(&htab->buckets[i].lock); [ 41.808658][ T23] [ 41.808658][ T23] *** DEADLOCK *** [ 41.808658][ T23] [ 41.816788][ T23] May be due to missing lock nesting notation [ 41.816788][ T23] [ 41.825083][ T23] 6 locks held by kworker/1:1/23: [ 41.830082][ T23] #0: ffff888011c70938 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x78a/0x10c0 [ 41.840403][ T23] #1: ffffc90000ddfd20 ((work_completion)(&map->work)){+.+.}-{0:0}, at: process_one_work+0x7d0/0x10c0 [ 41.851415][ T23] #2: ffffffff8c91fae0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x5/0x30 [ 41.860692][ T23] #3: ffff888074aa1868 (&htab->buckets[i].lock){+...}-{2:2}, at: sock_hash_delete_elem+0x177/0x400 [ 41.871705][ T23] #4: ffff88807b1fc290 (&psock->link_lock){+...}-{2:2}, at: sock_map_unref+0xcc/0x5d0 [ 41.881412][ T23] #5: ffffffff8c91fae0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x5/0x30 [ 41.890694][ T23] [ 41.890694][ T23] stack backtrace: [ 41.896812][ T23] CPU: 1 PID: 23 Comm: kworker/1:1 Not tainted 5.15.160-syzkaller #0 [ 41.905127][ T23] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 [ 41.915178][ T23] Workqueue: events bpf_map_free_deferred [ 41.920983][ T23] Call Trace: [ 41.924244][ T23] [ 41.927150][ T23] dump_stack_lvl+0x1e3/0x2d0 [ 41.931821][ T23] ? io_uring_drop_tctx_refs+0x1a0/0x1a0 [ 41.937426][ T23] ? panic+0x860/0x860 [ 41.941470][ T23] validate_chain+0x46d2/0x5930 [ 41.946297][ T23] ? check_path+0x40/0x40 [ 41.950597][ T23] ? reacquire_held_locks+0x660/0x660 [ 41.955977][ T23] ? check_noncircular+0x1e1/0x3b0 [ 41.961089][ T23] ? lockdep_unlock+0x166/0x300 [ 41.965931][ T23] ? lockdep_lock+0x2a0/0x2a0 [ 41.970704][ T23] ? add_chain_block+0x850/0x850 [ 41.975638][ T23] ? reacquire_held_locks+0x660/0x660 [ 41.981834][ T23] ? mark_lock+0x98/0x340 [ 41.986328][ T23] __lock_acquire+0x1295/0x1ff0 [ 41.991252][ T23] lock_acquire+0x1db/0x4f0 [ 41.995743][ T23] ? sock_hash_delete_elem+0x177/0x400 [ 42.001178][ T23] ? read_lock_is_recursive+0x10/0x10 [ 42.006521][ T23] ? sock_hash_delete_elem+0x177/0x400 [ 42.012126][ T23] ? __bpf_trace_softirq+0x10/0x10 [ 42.017233][ T23] ? rcu_is_watching+0x11/0xa0 [ 42.021975][ T23] ? sock_hash_delete_elem+0x177/0x400 [ 42.027407][ T23] _raw_spin_lock_bh+0x31/0x40 [ 42.032234][ T23] ? sock_hash_delete_elem+0x177/0x400 [ 42.037666][ T23] sock_hash_delete_elem+0x177/0x400 [ 42.042922][ T23] ? sock_hash_lookup+0x660/0x660 [ 42.047919][ T23] bpf_prog_2c29ac5cdc6b1842+0x3a/0x948 [ 42.053436][ T23] bpf_trace_run2+0x19e/0x340 [ 42.058087][ T23] ? bpf_trace_run1+0x2f0/0x2f0 [ 42.062914][ T23] ? sock_map_unref+0x3ac/0x5d0 [ 42.067739][ T23] ? do_raw_spin_lock+0x14a/0x370 [ 42.073299][ T23] ? __bpf_trace_softirq+0x10/0x10 [ 42.078484][ T23] ? sock_map_unref+0x3ac/0x5d0 [ 42.084328][ T23] __bpf_trace_kfree+0x6e/0x90 [ 42.089077][ T23] ? sock_map_unref+0x3ac/0x5d0 [ 42.093941][ T23] kfree+0x22f/0x270 [ 42.097956][ T23] ? sock_map_unref+0xcc/0x5d0 [ 42.102697][ T23] sock_map_unref+0x3ac/0x5d0 [ 42.107377][ T23] sock_hash_delete_elem+0x388/0x400 [ 42.112655][ T23] ? sock_hash_lookup+0x660/0x660 [ 42.117673][ T23] bpf_prog_2c29ac5cdc6b1842+0x3a/0x948 [ 42.123193][ T23] bpf_trace_run2+0x19e/0x340 [ 42.127846][ T23] ? bpf_trace_run1+0x2f0/0x2f0 [ 42.132687][ T23] ? sock_hash_free+0x713/0x780 [ 42.137513][ T23] ? lockdep_hardirqs_on+0x94/0x130 [ 42.142708][ T23] ? sock_hash_free+0x713/0x780 [ 42.147531][ T23] __bpf_trace_kfree+0x6e/0x90 [ 42.152271][ T23] ? sock_hash_free+0x713/0x780 [ 42.157094][ T23] kfree+0x22f/0x270 [ 42.160966][ T23] sock_hash_free+0x713/0x780 [ 42.165621][ T23] ? sock_hash_alloc+0x520/0x520 [ 42.170774][ T23] ? do_raw_spin_unlock+0x137/0x8b0 [ 42.176145][ T23] ? bpf_lsm_bpf_map_free_security+0x5/0x10 [ 42.182030][ T23] ? security_bpf_map_free+0x6a/0x80 [ 42.187865][ T23] ? bpf_map_free_deferred+0xb8/0x2e0 [ 42.193257][ T23] process_one_work+0x8a1/0x10c0 [ 42.198183][ T23] ? worker_detach_from_pool+0x260/0x260 [ 42.203792][ T23] ? _raw_spin_lock_irqsave+0x120/0x120 [ 42.209310][ T23] ? kthread_data+0x4e/0xc0 [ 42.213792][ T23] ? wq_worker_running+0x97/0x170 [ 42.218790][ T23] worker_thread+0xaca/0x1280 [ 42.223449][ T23] kthread+0x3f6/0x4f0 [ 42.227607][ T23] ? rcu_lock_release+0x20/0x20 [ 42.232519][ T23] ? kthread_blkcg+0xd0/0xd0 [ 42.237189][ T23] ret_from_fork+0x1f/0x30 [ 42.241587][ T23]