Warning: Permanently added '10.128.1.103' (ED25519) to the list of known hosts. executing program executing program executing program executing program executing program [ 53.727032][ T25] [ 53.729403][ T25] ============================================ [ 53.735542][ T25] WARNING: possible recursive locking detected [ 53.741810][ T25] 5.15.158-syzkaller #0 Not tainted [ 53.747004][ T25] -------------------------------------------- [ 53.753148][ T25] kworker/1:1/25 is trying to acquire lock: [ 53.759060][ T25] ffff88801a606068 (&htab->buckets[i].lock){+...}-{2:2}, at: sock_hash_delete_elem+0x177/0x400 [ 53.769431][ T25] [ 53.769431][ T25] but task is already holding lock: [ 53.776783][ T25] ffff88801a606068 (&htab->buckets[i].lock){+...}-{2:2}, at: sock_hash_delete_elem+0x177/0x400 [ 53.787134][ T25] [ 53.787134][ T25] other info that might help us debug this: [ 53.795269][ T25] Possible unsafe locking scenario: [ 53.795269][ T25] [ 53.802714][ T25] CPU0 [ 53.805984][ T25] ---- [ 53.809273][ T25] lock(&htab->buckets[i].lock); [ 53.814292][ T25] lock(&htab->buckets[i].lock); [ 53.819314][ T25] [ 53.819314][ T25] *** DEADLOCK *** [ 53.819314][ T25] [ 53.827446][ T25] May be due to missing lock nesting notation [ 53.827446][ T25] [ 53.835751][ T25] 4 locks held by kworker/1:1/25: [ 53.840764][ T25] #0: ffffffff8c91fae0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x5/0x30 [ 53.850076][ T25] #1: ffff88801a606068 (&htab->buckets[i].lock){+...}-{2:2}, at: sock_hash_delete_elem+0x177/0x400 [ 53.860948][ T25] #2: ffff888078bfa290 (&psock->link_lock){+...}-{2:2}, at: sock_map_unref+0xcc/0x5d0 [ 53.870606][ T25] #3: ffffffff8c91fae0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x5/0x30 [ 53.879918][ T25] [ 53.879918][ T25] stack backtrace: [ 53.885819][ T25] CPU: 1 PID: 25 Comm: kworker/1:1 Not tainted 5.15.158-syzkaller #0 [ 53.893877][ T25] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 [ 53.903929][ T25] Workqueue: 0x0 (rcu_gp) [ 53.908358][ T25] Call Trace: [ 53.911634][ T25] [ 53.914558][ T25] dump_stack_lvl+0x1e3/0x2d0 [ 53.919237][ T25] ? io_uring_drop_tctx_refs+0x1a0/0x1a0 [ 53.924867][ T25] ? panic+0x860/0x860 [ 53.928969][ T25] validate_chain+0x46d2/0x5930 [ 53.933852][ T25] ? sg_next+0x80/0xa0 [ 53.937919][ T25] ? reacquire_held_locks+0x660/0x660 [ 53.943291][ T25] ? check_noncircular+0x1e1/0x3b0 [ 53.948398][ T25] ? reacquire_held_locks+0x660/0x660 [ 53.953857][ T25] ? lockdep_unlock+0x166/0x300 [ 53.958702][ T25] ? lockdep_lock+0x2a0/0x2a0 [ 53.963386][ T25] ? validate_chain+0x112/0x5930 [ 53.968327][ T25] ? reacquire_held_locks+0x660/0x660 [ 53.973786][ T25] ? mark_lock+0x98/0x340 [ 53.978126][ T25] __lock_acquire+0x1295/0x1ff0 [ 53.982998][ T25] lock_acquire+0x1db/0x4f0 [ 53.987498][ T25] ? sock_hash_delete_elem+0x177/0x400 [ 53.992959][ T25] ? read_lock_is_recursive+0x10/0x10 [ 53.998329][ T25] ? sock_hash_delete_elem+0x177/0x400 [ 54.003788][ T25] ? __bpf_trace_softirq+0x10/0x10 [ 54.008899][ T25] ? sock_hash_delete_elem+0x177/0x400 [ 54.014356][ T25] _raw_spin_lock_bh+0x31/0x40 [ 54.019122][ T25] ? sock_hash_delete_elem+0x177/0x400 [ 54.024579][ T25] sock_hash_delete_elem+0x177/0x400 [ 54.029872][ T25] ? sock_hash_lookup+0x660/0x660 [ 54.034900][ T25] bpf_prog_2c29ac5cdc6b1842+0x3a/0x1c4 [ 54.040437][ T25] bpf_trace_run2+0x19e/0x340 [ 54.045112][ T25] ? bpf_trace_run1+0x2f0/0x2f0 [ 54.050054][ T25] ? sock_map_unref+0x3ac/0x5d0 [ 54.054902][ T25] ? do_raw_spin_lock+0x14a/0x370 [ 54.059946][ T25] ? __bpf_trace_softirq+0x10/0x10 [ 54.065055][ T25] ? sock_map_unref+0x3ac/0x5d0 [ 54.069905][ T25] __bpf_trace_kfree+0x6e/0x90 [ 54.074670][ T25] ? sock_map_unref+0x3ac/0x5d0 [ 54.079515][ T25] kfree+0x22f/0x270 [ 54.083411][ T25] ? sock_map_unref+0xcc/0x5d0 [ 54.088174][ T25] sock_map_unref+0x3ac/0x5d0 [ 54.092850][ T25] sock_hash_delete_elem+0x388/0x400 [ 54.098133][ T25] ? prandom_u32+0x218/0x260 [ 54.102767][ T25] ? sock_hash_lookup+0x660/0x660 [ 54.107791][ T25] bpf_prog_2c29ac5cdc6b1842+0x3a/0x1c4 [ 54.113329][ T25] bpf_trace_run2+0x19e/0x340 [ 54.118022][ T25] ? bpf_trace_run1+0x2f0/0x2f0 [ 54.122870][ T25] ? __kthread_create_on_node+0x33c/0x3f0 [ 54.128590][ T25] ? __kthread_create_on_node+0x33c/0x3f0 [ 54.134311][ T25] __bpf_trace_kfree+0x6e/0x90 [ 54.139073][ T25] ? __kthread_create_on_node+0x33c/0x3f0 [ 54.144790][ T25] kfree+0x22f/0x270 [ 54.148686][ T25] ? _raw_spin_unlock+0x24/0x40 [ 54.153539][ T25] __kthread_create_on_node+0x33c/0x3f0 [ 54.159109][ T25] ? kthread_create_on_node+0x120/0x120 [ 54.164826][ T25] ? vsnprintf+0x1b96/0x1c70 [ 54.169422][ T25] ? ptr_to_hashval+0x60/0x60 [ 54.174121][ T25] ? rcu_lock_release+0x20/0x20 [ 54.178968][ T25] kthread_create_on_node+0xda/0x120 [ 54.184251][ T25] ? vsnprintf+0x191/0x1c70 [ 54.188767][ T25] ? tsk_fork_get_node+0x60/0x60 [ 54.193806][ T25] ? kmem_cache_alloc_node_trace+0x171/0x2e0 [ 54.199786][ T25] ? create_worker+0x117/0x630 [ 54.204547][ T25] create_worker+0x34d/0x630 [ 54.209163][ T25] ? workqueue_prepare_cpu+0x170/0x170 [ 54.214726][ T25] ? _raw_spin_unlock_irq+0x25/0x40 [ 54.220012][ T25] worker_thread+0x4bf/0x1280 [ 54.224696][ T25] kthread+0x3f6/0x4f0 [ 54.228802][ T25] ? rcu_lock_release+0x20/0x20 [ 54.233651][ T25] ? kthread_blkcg+0xd0/0xd0 [ 54.238236][ T25] ret_from_fork+0x1f/0x30 [ 54.243464][ T25]