Warning: Permanently added '10.128.1.63' (ED25519) to the list of known hosts. executing program executing program executing program executing program [ 42.583623][ T21] [ 42.585968][ T21] ============================================ [ 42.592093][ T21] WARNING: possible recursive locking detected [ 42.598214][ T21] 5.15.158-syzkaller #0 Not tainted [ 42.603379][ T21] -------------------------------------------- [ 42.609515][ T21] kworker/1:0/21 is trying to acquire lock: [ 42.615374][ T21] ffff88801eebc668 (&htab->buckets[i].lock){+...}-{2:2}, at: sock_hash_delete_elem+0x177/0x400 [ 42.625704][ T21] [ 42.625704][ T21] but task is already holding lock: [ 42.633038][ T21] ffff88801eebc668 (&htab->buckets[i].lock){+...}-{2:2}, at: sock_hash_delete_elem+0x177/0x400 [ 42.643353][ T21] [ 42.643353][ T21] other info that might help us debug this: [ 42.651380][ T21] Possible unsafe locking scenario: [ 42.651380][ T21] [ 42.658802][ T21] CPU0 [ 42.662076][ T21] ---- [ 42.665329][ T21] lock(&htab->buckets[i].lock); [ 42.670327][ T21] lock(&htab->buckets[i].lock); [ 42.675338][ T21] [ 42.675338][ T21] *** DEADLOCK *** [ 42.675338][ T21] [ 42.683449][ T21] May be due to missing lock nesting notation [ 42.683449][ T21] [ 42.691740][ T21] 6 locks held by kworker/1:0/21: [ 42.696732][ T21] #0: ffff888011c70938 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x78a/0x10c0 [ 42.707049][ T21] #1: ffffc90000db7d20 ((work_completion)(&map->work)){+.+.}-{0:0}, at: process_one_work+0x7d0/0x10c0 [ 42.718082][ T21] #2: ffffffff8c91fae0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x5/0x30 [ 42.727357][ T21] #3: ffff88801eebc668 (&htab->buckets[i].lock){+...}-{2:2}, at: sock_hash_delete_elem+0x177/0x400 [ 42.738114][ T21] #4: ffff88814b0f5290 (&psock->link_lock){+...}-{2:2}, at: sock_map_unref+0xcc/0x5d0 [ 42.747748][ T21] #5: ffffffff8c91fae0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x5/0x30 [ 42.757019][ T21] [ 42.757019][ T21] stack backtrace: [ 42.762879][ T21] CPU: 1 PID: 21 Comm: kworker/1:0 Not tainted 5.15.158-syzkaller #0 [ 42.770960][ T21] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 [ 42.780999][ T21] Workqueue: events bpf_map_free_deferred [ 42.786711][ T21] Call Trace: [ 42.789973][ T21] [ 42.792886][ T21] dump_stack_lvl+0x1e3/0x2d0 [ 42.797543][ T21] ? io_uring_drop_tctx_refs+0x1a0/0x1a0 [ 42.803147][ T21] ? panic+0x860/0x860 [ 42.807192][ T21] validate_chain+0x46d2/0x5930 [ 42.812017][ T21] ? check_path+0x40/0x40 [ 42.816333][ T21] ? reacquire_held_locks+0x660/0x660 [ 42.821674][ T21] ? check_noncircular+0x1e1/0x3b0 [ 42.826764][ T21] ? lockdep_unlock+0x166/0x300 [ 42.831588][ T21] ? lockdep_lock+0x2a0/0x2a0 [ 42.836237][ T21] ? add_chain_block+0x850/0x850 [ 42.841147][ T21] ? reacquire_held_locks+0x660/0x660 [ 42.846493][ T21] ? mark_lock+0x98/0x340 [ 42.850796][ T21] __lock_acquire+0x1295/0x1ff0 [ 42.855629][ T21] lock_acquire+0x1db/0x4f0 [ 42.860118][ T21] ? sock_hash_delete_elem+0x177/0x400 [ 42.865567][ T21] ? read_lock_is_recursive+0x10/0x10 [ 42.870935][ T21] ? sock_hash_delete_elem+0x177/0x400 [ 42.876379][ T21] ? __bpf_trace_softirq+0x10/0x10 [ 42.881480][ T21] ? sock_hash_delete_elem+0x177/0x400 [ 42.886951][ T21] _raw_spin_lock_bh+0x31/0x40 [ 42.891702][ T21] ? sock_hash_delete_elem+0x177/0x400 [ 42.897145][ T21] sock_hash_delete_elem+0x177/0x400 [ 42.902414][ T21] ? sock_hash_lookup+0x660/0x660 [ 42.907418][ T21] bpf_prog_2c29ac5cdc6b1842+0x3a/0x7c8 [ 42.912953][ T21] bpf_trace_run2+0x19e/0x340 [ 42.917619][ T21] ? bpf_trace_run1+0x2f0/0x2f0 [ 42.922442][ T21] ? sock_map_unref+0x3ac/0x5d0 [ 42.927265][ T21] ? do_raw_spin_lock+0x14a/0x370 [ 42.932272][ T21] ? __bpf_trace_softirq+0x10/0x10 [ 42.937357][ T21] ? sock_map_unref+0x3ac/0x5d0 [ 42.942183][ T21] __bpf_trace_kfree+0x6e/0x90 [ 42.946938][ T21] ? sock_map_unref+0x3ac/0x5d0 [ 42.951776][ T21] kfree+0x22f/0x270 [ 42.955648][ T21] ? sock_map_unref+0xcc/0x5d0 [ 42.960388][ T21] sock_map_unref+0x3ac/0x5d0 [ 42.965046][ T21] sock_hash_delete_elem+0x388/0x400 [ 42.970309][ T21] ? sock_hash_lookup+0x660/0x660 [ 42.975323][ T21] ? mark_lock+0x98/0x340 [ 42.979644][ T21] bpf_prog_2c29ac5cdc6b1842+0x3a/0x7c8 [ 42.985168][ T21] bpf_trace_run2+0x19e/0x340 [ 42.989831][ T21] ? bpf_trace_run1+0x2f0/0x2f0 [ 42.994673][ T21] ? sock_hash_free+0x713/0x780 [ 42.999503][ T21] ? lockdep_hardirqs_on+0x94/0x130 [ 43.004683][ T21] ? sock_hash_free+0x713/0x780 [ 43.009513][ T21] __bpf_trace_kfree+0x6e/0x90 [ 43.014254][ T21] ? sock_hash_free+0x713/0x780 [ 43.019083][ T21] kfree+0x22f/0x270 [ 43.022957][ T21] sock_hash_free+0x713/0x780 [ 43.027609][ T21] ? sock_hash_alloc+0x520/0x520 [ 43.032520][ T21] ? do_raw_spin_unlock+0x137/0x8b0 [ 43.037706][ T21] ? bpf_lsm_bpf_map_free_security+0x5/0x10 [ 43.043574][ T21] ? security_bpf_map_free+0x6a/0x80 [ 43.048835][ T21] ? bpf_map_free_deferred+0xb8/0x2e0 [ 43.054183][ T21] process_one_work+0x8a1/0x10c0 [ 43.059098][ T21] ? worker_detach_from_pool+0x260/0x260 [ 43.064819][ T21] ? _raw_spin_lock_irqsave+0x120/0x120 [ 43.070470][ T21] ? kthread_data+0x4e/0xc0 [ 43.074962][ T21] ? wq_worker_running+0x97/0x170 [ 43.079972][ T21] worker_thread+0xaca/0x1280 [ 43.084647][ T21] kthread+0x3f6/0x4f0 [ 43.088691][ T21] ? rcu_lock_release+0x20/0x20 [ 43.093530][ T21] ? kthread_blkcg+0xd0/0xd0 [ 43.098090][ T21] ret_from_fork+0x1f/0x30 [ 43.102482][ T21]