Warning: Permanently added '10.128.1.140' (ED25519) to the list of known hosts. executing program [ 54.815270][ T3500] [ 54.817632][ T3500] ====================================================== [ 54.825108][ T3500] WARNING: possible circular locking dependency detected [ 54.833006][ T3500] 5.15.159-syzkaller #0 Not tainted [ 54.838548][ T3500] ------------------------------------------------------ [ 54.845556][ T3500] syz-executor154/3500 is trying to acquire lock: [ 54.851988][ T3500] ffff88814ad6d290 (&psock->link_lock){+...}-{2:2}, at: sock_hash_update_common+0x620/0xa30 [ 54.862095][ T3500] [ 54.862095][ T3500] but task is already holding lock: [ 54.869450][ T3500] ffff88814ab8d520 (&htab->buckets[i].lock){+...}-{2:2}, at: sock_hash_update_common+0x20c/0xa30 [ 54.880594][ T3500] [ 54.880594][ T3500] which lock already depends on the new lock. [ 54.880594][ T3500] [ 54.890992][ T3500] [ 54.890992][ T3500] the existing dependency chain (in reverse order) is: [ 54.899997][ T3500] [ 54.899997][ T3500] -> #1 (&htab->buckets[i].lock){+...}-{2:2}: [ 54.908850][ T3500] lock_acquire+0x1db/0x4f0 [ 54.915215][ T3500] _raw_spin_lock_bh+0x31/0x40 [ 54.920519][ T3500] sock_hash_delete_elem+0x177/0x400 [ 54.926331][ T3500] bpf_prog_78b015942f8c5b4e+0x5b/0x714 [ 54.932400][ T3500] bpf_trace_run2+0x19e/0x340 [ 54.937631][ T3500] __bpf_trace_kfree+0x6e/0x90 [ 54.943996][ T3500] kfree+0x22f/0x270 [ 54.948420][ T3500] sock_map_unref+0x3ac/0x5d0 [ 54.953621][ T3500] sock_map_update_common+0x4ec/0x5b0 [ 54.959562][ T3500] sock_map_update_elem_sys+0x440/0x770 [ 54.965623][ T3500] map_update_elem+0x6a0/0x7c0 [ 54.970914][ T3500] __sys_bpf+0x2fd/0x670 [ 54.975692][ T3500] __x64_sys_bpf+0x78/0x90 [ 54.980717][ T3500] do_syscall_64+0x3b/0xb0 [ 54.985753][ T3500] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 54.992199][ T3500] [ 54.992199][ T3500] -> #0 (&psock->link_lock){+...}-{2:2}: [ 55.002120][ T3500] validate_chain+0x1649/0x5930 [ 55.011488][ T3500] __lock_acquire+0x1295/0x1ff0 [ 55.022060][ T3500] lock_acquire+0x1db/0x4f0 [ 55.027804][ T3500] _raw_spin_lock_bh+0x31/0x40 [ 55.033303][ T3500] sock_hash_update_common+0x620/0xa30 [ 55.043140][ T3500] sock_map_update_elem_sys+0x485/0x770 [ 55.051974][ T3500] map_update_elem+0x6a0/0x7c0 [ 55.064854][ T3500] __sys_bpf+0x2fd/0x670 [ 55.069835][ T3500] __x64_sys_bpf+0x78/0x90 [ 55.074810][ T3500] do_syscall_64+0x3b/0xb0 [ 55.080928][ T3500] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 55.089370][ T3500] [ 55.089370][ T3500] other info that might help us debug this: [ 55.089370][ T3500] [ 55.103346][ T3500] Possible unsafe locking scenario: [ 55.103346][ T3500] [ 55.114077][ T3500] CPU0 CPU1 [ 55.120716][ T3500] ---- ---- [ 55.130724][ T3500] lock(&htab->buckets[i].lock); [ 55.137079][ T3500] lock(&psock->link_lock); [ 55.149572][ T3500] lock(&htab->buckets[i].lock); [ 55.161294][ T3500] lock(&psock->link_lock); [ 55.169042][ T3500] [ 55.169042][ T3500] *** DEADLOCK *** [ 55.169042][ T3500] [ 55.177476][ T3500] 3 locks held by syz-executor154/3500: [ 55.183143][ T3500] #0: ffff8880766e7920 (sk_lock-AF_UNIX){+.+.}-{0:0}, at: sock_map_update_elem_sys+0x1c8/0x770 [ 55.194832][ T3500] #1: ffffffff8c91fae0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x5/0x30 [ 55.204411][ T3500] #2: ffff88814ab8d520 (&htab->buckets[i].lock){+...}-{2:2}, at: sock_hash_update_common+0x20c/0xa30 [ 55.217153][ T3500] [ 55.217153][ T3500] stack backtrace: [ 55.223848][ T3500] CPU: 1 PID: 3500 Comm: syz-executor154 Not tainted 5.15.159-syzkaller #0 [ 55.237907][ T3500] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 [ 55.247963][ T3500] Call Trace: [ 55.251237][ T3500] [ 55.254161][ T3500] dump_stack_lvl+0x1e3/0x2d0 [ 55.258845][ T3500] ? io_uring_drop_tctx_refs+0x1a0/0x1a0 [ 55.264475][ T3500] ? print_circular_bug+0x12b/0x1a0 [ 55.269699][ T3500] check_noncircular+0x2f8/0x3b0 [ 55.274630][ T3500] ? add_chain_block+0x850/0x850 [ 55.279559][ T3500] ? lockdep_lock+0x11f/0x2a0 [ 55.284257][ T3500] validate_chain+0x1649/0x5930 [ 55.289104][ T3500] ? do_raw_spin_unlock+0x137/0x8b0 [ 55.294322][ T3500] ? reacquire_held_locks+0x660/0x660 [ 55.299686][ T3500] ? _raw_spin_unlock_irqrestore+0xd9/0x130 [ 55.305572][ T3500] ? _raw_spin_unlock+0x40/0x40 [ 55.310420][ T3500] ? stack_trace_save+0x113/0x1c0 [ 55.315439][ T3500] ? stack_trace_snprint+0xe0/0xe0 [ 55.320544][ T3500] ? __lock_acquire+0x1295/0x1ff0 [ 55.325566][ T3500] ? look_up_lock_class+0x77/0x120 [ 55.330683][ T3500] ? register_lock_class+0x100/0x9a0 [ 55.336765][ T3500] ? stack_depot_save+0x3db/0x440 [ 55.341808][ T3500] ? is_dynamic_key+0x1f0/0x1f0 [ 55.346916][ T3500] ? ____kasan_kmalloc+0xd1/0xf0 [ 55.351854][ T3500] ? mark_lock+0x98/0x340 [ 55.356177][ T3500] ? __sys_bpf+0x2fd/0x670 [ 55.360590][ T3500] __lock_acquire+0x1295/0x1ff0 [ 55.365441][ T3500] lock_acquire+0x1db/0x4f0 [ 55.369936][ T3500] ? sock_hash_update_common+0x620/0xa30 [ 55.375569][ T3500] ? read_lock_is_recursive+0x10/0x10 [ 55.380955][ T3500] ? sock_hash_update_common+0x620/0xa30 [ 55.386590][ T3500] ? __bpf_trace_softirq+0x10/0x10 [ 55.391710][ T3500] ? bpf_map_kmalloc_node+0xdb/0x160 [ 55.396989][ T3500] ? sock_hash_update_common+0x620/0xa30 [ 55.402651][ T3500] _raw_spin_lock_bh+0x31/0x40 [ 55.407413][ T3500] ? sock_hash_update_common+0x620/0xa30 [ 55.413035][ T3500] sock_hash_update_common+0x620/0xa30 [ 55.418517][ T3500] sock_map_update_elem_sys+0x485/0x770 [ 55.424057][ T3500] ? sock_map_prog_detach+0x290/0x290 [ 55.429437][ T3500] map_update_elem+0x6a0/0x7c0 [ 55.434208][ T3500] __sys_bpf+0x2fd/0x670 [ 55.438448][ T3500] ? bpf_link_show_fdinfo+0x2d0/0x2d0 [ 55.443839][ T3500] ? syscall_enter_from_user_mode+0x2e/0x240 [ 55.449834][ T3500] ? lockdep_hardirqs_on+0x94/0x130 [ 55.455032][ T3500] __x64_sys_bpf+0x78/0x90 [ 55.463862][ T3500] do_syscall_64+0x3b/0xb0 [ 55.468494][ T3500] ? clear_bhb_loop+0x15/0x70 [ 55.474007][ T3500] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 55.482788][ T3500] RIP: 0033:0x7faea3d200b9 [ 55.487209][ T3500] Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 c1 17 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 [ 55.506897][ T3500] RSP: 002b:00007fff946ed0e8 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 executing program executing program [ 55.515413][ T3500] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007faea3d200b9 [ 55.523384][ T3500] RDX: 0000000000000020 RSI: 0000000020000080 RDI: 0000000000000002 [ 55.531345][ T3500] RBP: 0000000000000000 R08: 0000000000000006 R09: 0000000000000006 [ 55.539311][ T3500] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 55.547334][ T3500] R13: 0000000000000000 R14: 0000000000000001 R15: 0000000000000001 [ 55.555517][ T3500] executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program