Warning: Permanently added '10.128.10.5' (ED25519) to the list of known hosts. executing program executing program executing program executing program executing program executing program [ 42.544919][ T13] [ 42.547265][ T13] ====================================================== [ 42.554270][ T13] WARNING: possible circular locking dependency detected [ 42.561278][ T13] 5.15.158-syzkaller #0 Not tainted [ 42.566455][ T13] ------------------------------------------------------ [ 42.573448][ T13] kworker/0:1/13 is trying to acquire lock: [ 42.579666][ T13] ffff8880169c10f8 (&htab->buckets[i].lock){+.-.}-{2:2}, at: sock_hash_delete_elem+0x177/0x400 [ 42.590010][ T13] [ 42.590010][ T13] but task is already holding lock: [ 42.597357][ T13] ffff888078b0c290 (&psock->link_lock){+...}-{2:2}, at: sock_map_unref+0xcc/0x5d0 [ 42.606575][ T13] [ 42.606575][ T13] which lock already depends on the new lock. [ 42.606575][ T13] [ 42.616953][ T13] [ 42.616953][ T13] the existing dependency chain (in reverse order) is: [ 42.625944][ T13] [ 42.625944][ T13] -> #1 (&psock->link_lock){+...}-{2:2}: [ 42.633740][ T13] lock_acquire+0x1db/0x4f0 [ 42.638747][ T13] _raw_spin_lock_bh+0x31/0x40 [ 42.644014][ T13] sock_hash_update_common+0x620/0xa30 [ 42.649975][ T13] sock_map_update_elem_sys+0x485/0x770 [ 42.656020][ T13] map_update_elem+0x6a0/0x7c0 [ 42.661285][ T13] __sys_bpf+0x2fd/0x670 [ 42.666025][ T13] __x64_sys_bpf+0x78/0x90 [ 42.670940][ T13] do_syscall_64+0x3b/0xb0 [ 42.675854][ T13] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 42.682244][ T13] [ 42.682244][ T13] -> #0 (&htab->buckets[i].lock){+.-.}-{2:2}: [ 42.690472][ T13] validate_chain+0x1649/0x5930 [ 42.695825][ T13] __lock_acquire+0x1295/0x1ff0 [ 42.701178][ T13] lock_acquire+0x1db/0x4f0 [ 42.706180][ T13] _raw_spin_lock_bh+0x31/0x40 [ 42.711442][ T13] sock_hash_delete_elem+0x177/0x400 [ 42.717225][ T13] bpf_prog_c688579455f058d4+0x4e/0x8c0 [ 42.723268][ T13] bpf_trace_run2+0x19e/0x340 [ 42.728445][ T13] __bpf_trace_kfree+0x6e/0x90 [ 42.733708][ T13] __traceiter_kfree+0x26/0x40 [ 42.738971][ T13] kfree+0x22f/0x270 [ 42.743364][ T13] sock_map_unref+0x3ac/0x5d0 [ 42.748541][ T13] sock_hash_free+0x4d5/0x780 [ 42.753719][ T13] process_one_work+0x8a1/0x10c0 [ 42.759161][ T13] worker_thread+0xaca/0x1280 [ 42.764338][ T13] kthread+0x3f6/0x4f0 [ 42.768906][ T13] ret_from_fork+0x1f/0x30 [ 42.773822][ T13] [ 42.773822][ T13] other info that might help us debug this: [ 42.773822][ T13] [ 42.784032][ T13] Possible unsafe locking scenario: [ 42.784032][ T13] [ 42.791457][ T13] CPU0 CPU1 [ 42.796798][ T13] ---- ---- [ 42.802140][ T13] lock(&psock->link_lock); [ 42.806708][ T13] lock(&htab->buckets[i].lock); [ 42.814227][ T13] lock(&psock->link_lock); [ 42.821316][ T13] lock(&htab->buckets[i].lock); [ 42.826322][ T13] [ 42.826322][ T13] *** DEADLOCK *** [ 42.826322][ T13] [ 42.834443][ T13] 6 locks held by kworker/0:1/13: [ 42.839444][ T13] #0: ffff888011c70938 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x78a/0x10c0 [ 42.850464][ T13] #1: ffffc90000d27d20 ((work_completion)(&map->work)){+.+.}-{0:0}, at: process_one_work+0x7d0/0x10c0 [ 42.861483][ T13] #2: ffff88807632e120 (sk_lock-AF_UNIX){+.+.}-{0:0}, at: sock_hash_free+0x443/0x780 [ 42.871026][ T13] #3: ffffffff8c91fae0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x5/0x30 [ 42.880307][ T13] #4: ffff888078b0c290 (&psock->link_lock){+...}-{2:2}, at: sock_map_unref+0xcc/0x5d0 [ 42.889937][ T13] #5: ffffffff8c91fae0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x5/0x30 [ 42.899217][ T13] [ 42.899217][ T13] stack backtrace: [ 42.905079][ T13] CPU: 0 PID: 13 Comm: kworker/0:1 Not tainted 5.15.158-syzkaller #0 [ 42.913120][ T13] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 [ 42.923153][ T13] Workqueue: events bpf_map_free_deferred [ 42.928859][ T13] Call Trace: [ 42.932120][ T13] [ 42.935034][ T13] dump_stack_lvl+0x1e3/0x2d0 [ 42.939693][ T13] ? io_uring_drop_tctx_refs+0x1a0/0x1a0 [ 42.945305][ T13] ? print_circular_bug+0x12b/0x1a0 [ 42.950485][ T13] check_noncircular+0x2f8/0x3b0 [ 42.955404][ T13] ? add_chain_block+0x850/0x850 [ 42.960320][ T13] ? lockdep_lock+0x11f/0x2a0 [ 42.964982][ T13] validate_chain+0x1649/0x5930 [ 42.969813][ T13] ? hlock_conflict+0x53/0x1f0 [ 42.974566][ T13] ? __bfs+0x359/0x6e0 [ 42.978618][ T13] ? check_path+0x40/0x40 [ 42.982925][ T13] ? noop_count+0x30/0x30 [ 42.987235][ T13] ? reacquire_held_locks+0x660/0x660 [ 42.992587][ T13] ? check_path+0x21/0x40 [ 42.996895][ T13] ? check_noncircular+0x1e1/0x3b0 [ 43.001988][ T13] ? add_chain_block+0x850/0x850 [ 43.006905][ T13] ? lockdep_unlock+0x166/0x300 [ 43.011734][ T13] ? lockdep_lock+0x2a0/0x2a0 [ 43.016389][ T13] ? reacquire_held_locks+0x660/0x660 [ 43.021740][ T13] ? lockdep_unlock+0x166/0x300 [ 43.026569][ T13] ? lockdep_lock+0x2a0/0x2a0 [ 43.031227][ T13] ? mark_lock+0x98/0x340 [ 43.035537][ T13] __lock_acquire+0x1295/0x1ff0 [ 43.040373][ T13] lock_acquire+0x1db/0x4f0 [ 43.044855][ T13] ? sock_hash_delete_elem+0x177/0x400 [ 43.050295][ T13] ? read_lock_is_recursive+0x10/0x10 [ 43.055648][ T13] ? sock_hash_delete_elem+0x177/0x400 [ 43.061090][ T13] ? __bpf_trace_softirq+0x10/0x10 [ 43.066183][ T13] ? sock_hash_delete_elem+0x177/0x400 [ 43.071621][ T13] _raw_spin_lock_bh+0x31/0x40 [ 43.076374][ T13] ? sock_hash_delete_elem+0x177/0x400 [ 43.081812][ T13] sock_hash_delete_elem+0x177/0x400 [ 43.087080][ T13] ? sock_hash_lookup+0x660/0x660 [ 43.092089][ T13] bpf_prog_c688579455f058d4+0x4e/0x8c0 [ 43.097616][ T13] bpf_trace_run2+0x19e/0x340 [ 43.102275][ T13] ? bpf_trace_run1+0x2f0/0x2f0 [ 43.107103][ T13] ? sock_map_unref+0x3ac/0x5d0 [ 43.111931][ T13] ? read_lock_is_recursive+0x10/0x10 [ 43.117286][ T13] ? sock_map_unref+0x3ac/0x5d0 [ 43.122125][ T13] __bpf_trace_kfree+0x6e/0x90 [ 43.126878][ T13] ? sock_map_unref+0x3ac/0x5d0 [ 43.131709][ T13] __traceiter_kfree+0x26/0x40 [ 43.136452][ T13] ? sock_map_unref+0x3ac/0x5d0 [ 43.141282][ T13] kfree+0x22f/0x270 [ 43.145160][ T13] ? sock_map_unref+0xcc/0x5d0 [ 43.149904][ T13] sock_map_unref+0x3ac/0x5d0 [ 43.154563][ T13] sock_hash_free+0x4d5/0x780 [ 43.159224][ T13] ? sock_hash_alloc+0x520/0x520 [ 43.164140][ T13] ? do_raw_spin_unlock+0x137/0x8b0 [ 43.169318][ T13] ? bpf_lsm_bpf_map_free_security+0x5/0x10 [ 43.175191][ T13] ? security_bpf_map_free+0x6a/0x80 [ 43.180460][ T13] ? bpf_map_free_deferred+0xb8/0x2e0 [ 43.185813][ T13] process_one_work+0x8a1/0x10c0 [ 43.190736][ T13] ? worker_detach_from_pool+0x260/0x260 executing program executing program executing program executing program [ 43.196351][ T13] ? _raw_spin_lock_irqsave+0x120/0x120 [ 43.201879][ T13] ? kthread_data+0x4e/0xc0 [ 43.206360][ T13] ? wq_worker_running+0x97/0x170 [ 43.211363][ T13] worker_thread+0xaca/0x1280 [ 43.216031][ T13] kthread+0x3f6/0x4f0 [ 43.220096][ T13] ? rcu_lock_release+0x20/0x20 [ 43.224942][ T13] ? kthread_blkcg+0xd0/0xd0 [ 43.229530][ T13] ret_from_fork+0x1f/0x30 [ 43.233941][ T13] 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 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