Warning: Permanently added '10.128.1.29' (ED25519) to the list of known hosts. executing program executing program executing program executing program executing program executing program executing program [ 67.944556][ T57] [ 67.946959][ T57] ====================================================== [ 67.953995][ T57] WARNING: possible circular locking dependency detected [ 67.961022][ T57] 6.1.90-syzkaller #0 Not tainted [ 67.966065][ T57] ------------------------------------------------------ [ 67.973087][ T57] kworker/u4:4/57 is trying to acquire lock: [ 67.979149][ T57] ffff888073203820 (&htab->buckets[i].lock){+.-.}-{2:2}, at: sock_hash_delete_elem+0x177/0x400 [ 67.989649][ T57] executing program [ 67.989649][ T57] but task is already holding lock: [ 67.997044][ T57] ffff8880196c7290 (&psock->link_lock){+...}-{2:2}, at: sock_map_unref+0xcc/0x5d0 [ 68.006411][ T57] [ 68.006411][ T57] which lock already depends on the new lock. [ 68.006411][ T57] [ 68.016994][ T57] [ 68.016994][ T57] the existing dependency chain (in reverse order) is: [ 68.026028][ T57] [ 68.026028][ T57] -> #1 (&psock->link_lock){+...}-{2:2}: [ 68.033901][ T57] lock_acquire+0x1f8/0x5a0 [ 68.039003][ T57] _raw_spin_lock_bh+0x31/0x40 [ 68.044349][ T57] sock_hash_update_common+0x620/0xa30 [ 68.050481][ T57] sock_map_update_elem_sys+0x5a0/0x910 [ 68.056654][ T57] map_update_elem+0x503/0x680 [ 68.061979][ T57] __sys_bpf+0x337/0x6c0 [ 68.066786][ T57] __x64_sys_bpf+0x78/0x90 [ 68.071792][ T57] do_syscall_64+0x3b/0xb0 [ 68.076801][ T57] entry_SYSCALL_64_after_hwframe+0x68/0xd2 [ 68.083285][ T57] [ 68.083285][ T57] -> #0 (&htab->buckets[i].lock){+.-.}-{2:2}: [ 68.092190][ T57] validate_chain+0x1661/0x5950 [ 68.097684][ T57] __lock_acquire+0x125b/0x1f80 [ 68.103110][ T57] lock_acquire+0x1f8/0x5a0 [ 68.108274][ T57] _raw_spin_lock_bh+0x31/0x40 [ 68.113579][ T57] sock_hash_delete_elem+0x177/0x400 [ 68.119430][ T57] bpf_prog_330576d32f01b34b+0x5b/0x5f [ 68.125430][ T57] bpf_trace_run2+0x1fd/0x410 [ 68.130652][ T57] __bpf_trace_kfree+0x6e/0x90 [ 68.136031][ T57] __traceiter_kfree+0x26/0x40 [ 68.141347][ T57] kfree+0xf6/0x190 [ 68.145688][ T57] sock_map_unref+0x3ac/0x5d0 [ 68.150904][ T57] sock_hash_free+0x57c/0x820 [ 68.156141][ T57] process_one_work+0x8a9/0x11d0 [ 68.161702][ T57] worker_thread+0xa47/0x1200 [ 68.166924][ T57] kthread+0x28d/0x320 [ 68.171511][ T57] ret_from_fork+0x1f/0x30 [ 68.176459][ T57] [ 68.176459][ T57] other info that might help us debug this: [ 68.176459][ T57] [ 68.186881][ T57] Possible unsafe locking scenario: [ 68.186881][ T57] executing program [ 68.194375][ T57] CPU0 CPU1 [ 68.199756][ T57] ---- ---- [ 68.205146][ T57] lock(&psock->link_lock); [ 68.209755][ T57] lock(&htab->buckets[i].lock); [ 68.217643][ T57] lock(&psock->link_lock); [ 68.224815][ T57] lock(&htab->buckets[i].lock); [ 68.229966][ T57] [ 68.229966][ T57] *** DEADLOCK *** [ 68.229966][ T57] [ 68.238138][ T57] 6 locks held by kworker/u4:4/57: [ 68.243287][ T57] #0: ffff888012479138 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work+0x7a9/0x11d0 [ 68.254413][ T57] #1: ffffc90001587d20 ((work_completion)(&map->work)){+.+.}-{0:0}, at: process_one_work+0x7a9/0x11d0 [ 68.265537][ T57] #2: ffff888023f44930 (sk_lock-AF_UNIX){+.+.}-{0:0}, at: sock_hash_free+0x4af/0x820 [ 68.275144][ T57] #3: ffffffff8d12ac80 (rcu_read_lock){....}-{1:2}, at: sock_hash_free+0x4bb/0x820 [ 68.284597][ T57] #4: ffff8880196c7290 (&psock->link_lock){+...}-{2:2}, at: sock_map_unref+0xcc/0x5d0 [ 68.294297][ T57] #5: ffffffff8d12ac80 (rcu_read_lock){....}-{1:2}, at: bpf_trace_run2+0x110/0x410 [ 68.303733][ T57] [ 68.303733][ T57] stack backtrace: [ 68.309627][ T57] CPU: 0 PID: 57 Comm: kworker/u4:4 Not tainted 6.1.90-syzkaller #0 [ 68.317629][ T57] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 [ 68.327794][ T57] Workqueue: events_unbound bpf_map_free_deferred [ 68.334247][ T57] Call Trace: [ 68.337560][ T57] [ 68.340517][ T57] dump_stack_lvl+0x1e3/0x2cb executing program [ 68.345329][ T57] ? nf_tcp_handle_invalid+0x642/0x642 [ 68.350937][ T57] ? print_circular_bug+0x12b/0x1a0 [ 68.356206][ T57] check_noncircular+0x2fa/0x3b0 [ 68.361342][ T57] ? deref_stack_reg+0x17c/0x210 [ 68.366311][ T57] ? reacquire_held_locks+0x660/0x660 [ 68.371723][ T57] ? add_chain_block+0x850/0x850 [ 68.377062][ T57] ? lockdep_lock+0x11f/0x2a0 [ 68.381767][ T57] ? unwind_next_frame+0x111a/0x2220 [ 68.387071][ T57] ? _find_first_zero_bit+0xd0/0x100 [ 68.392399][ T57] validate_chain+0x1661/0x5950 [ 68.397408][ T57] ? reacquire_held_locks+0x660/0x660 [ 68.402831][ T57] ? rb_commit+0x760/0x760 [ 68.407782][ T57] ? lockdep_unlock+0x165/0x300 [ 68.412753][ T57] ? rb_commit+0x711/0x760 [ 68.417352][ T57] ? mark_lock+0x9a/0x340 [ 68.421710][ T57] __lock_acquire+0x125b/0x1f80 [ 68.426702][ T57] lock_acquire+0x1f8/0x5a0 [ 68.431225][ T57] ? sock_hash_delete_elem+0x177/0x400 [ 68.436718][ T57] ? read_lock_is_recursive+0x10/0x10 [ 68.442198][ T57] ? bpf_bprintf_cleanup+0xc0/0xc0 [ 68.447544][ T57] ? sock_hash_delete_elem+0x177/0x400 [ 68.453064][ T57] ? __bpf_trace_softirq+0x10/0x10 [ 68.458232][ T57] ? rcu_is_watching+0x11/0xb0 [ 68.463017][ T57] ? sock_hash_delete_elem+0x177/0x400 [ 68.468585][ T57] _raw_spin_lock_bh+0x31/0x40 [ 68.473359][ T57] ? sock_hash_delete_elem+0x177/0x400 [ 68.478831][ T57] sock_hash_delete_elem+0x177/0x400 [ 68.484127][ T57] ? bpf_trace_run2+0x145/0x410 [ 68.489004][ T57] ? sock_hash_lookup+0x660/0x660 [ 68.494054][ T57] bpf_prog_330576d32f01b34b+0x5b/0x5f [ 68.499532][ T57] bpf_trace_run2+0x1fd/0x410 [ 68.504218][ T57] ? bpf_trace_run2+0x110/0x410 [ 68.509073][ T57] ? bpf_trace_run1+0x3d0/0x3d0 [ 68.513954][ T57] ? do_raw_spin_lock+0x14a/0x370 [ 68.518981][ T57] ? sock_map_unref+0x3ac/0x5d0 [ 68.523869][ T57] ? __bpf_trace_softirq+0x10/0x10 [ 68.528998][ T57] ? sock_map_unref+0x3ac/0x5d0 [ 68.533949][ T57] __bpf_trace_kfree+0x6e/0x90 [ 68.538857][ T57] ? sock_map_unref+0x3ac/0x5d0 [ 68.543747][ T57] __traceiter_kfree+0x26/0x40 [ 68.548521][ T57] ? sock_map_unref+0x3ac/0x5d0 [ 68.553400][ T57] kfree+0xf6/0x190 [ 68.557365][ T57] sock_map_unref+0x3ac/0x5d0 [ 68.562166][ T57] ? sock_hash_free+0x4bb/0x820 [ 68.567046][ T57] sock_hash_free+0x57c/0x820 [ 68.571852][ T57] ? sock_hash_alloc+0x500/0x500 [ 68.576841][ T57] ? bpf_map_free_deferred+0x46/0xc0 [ 68.582187][ T57] ? bpf_map_free_deferred+0x46/0xc0 [ 68.587517][ T57] ? kfree+0x30/0x190 [ 68.591545][ T57] ? process_one_work+0x7a9/0x11d0 [ 68.596851][ T57] process_one_work+0x8a9/0x11d0 [ 68.601925][ T57] ? worker_detach_from_pool+0x260/0x260 [ 68.607663][ T57] ? _raw_spin_lock_irqsave+0x120/0x120 [ 68.613233][ T57] ? kthread_data+0x4e/0xc0 [ 68.617751][ T57] ? wq_worker_running+0x97/0x190 [ 68.622815][ T57] worker_thread+0xa47/0x1200 [ 68.627542][ T57] ? _raw_spin_unlock+0x40/0x40 [ 68.632521][ T57] ? __sched_text_start+0x8/0x8 [ 68.637429][ T57] ? _raw_spin_unlock+0x40/0x40 [ 68.642293][ T57] kthread+0x28d/0x320 executing program executing program executing program executing program executing program [ 68.646407][ T57] ? worker_clr_flags+0x190/0x190 [ 68.651467][ T57] ? kthread_blkcg+0xd0/0xd0 [ 68.656073][ T57] ret_from_fork+0x1f/0x30 [ 68.660738][ T57] 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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