Warning: Permanently added '10.128.1.185' (ED25519) to the list of known hosts. executing program [ 50.071590][ T3499] [ 50.073927][ T3499] ============================================ [ 50.080135][ T3499] WARNING: possible recursive locking detected [ 50.086271][ T3499] 5.15.156-syzkaller #0 Not tainted [ 50.091435][ T3499] -------------------------------------------- [ 50.097573][ T3499] syz-executor231/3499 is trying to acquire lock: [ 50.103955][ T3499] ffff888022fb75b8 (&trie->lock){....}-{2:2}, at: trie_delete_elem+0x90/0x690 [ 50.112826][ T3499] [ 50.112826][ T3499] but task is already holding lock: [ 50.120163][ T3499] ffff888022fb75b8 (&trie->lock){....}-{2:2}, at: trie_update_elem+0xc5/0xc00 [ 50.129000][ T3499] [ 50.129000][ T3499] other info that might help us debug this: [ 50.137027][ T3499] Possible unsafe locking scenario: [ 50.137027][ T3499] [ 50.144448][ T3499] CPU0 [ 50.147702][ T3499] ---- [ 50.150954][ T3499] lock(&trie->lock); [ 50.155015][ T3499] lock(&trie->lock); [ 50.159056][ T3499] [ 50.159056][ T3499] *** DEADLOCK *** [ 50.159056][ T3499] [ 50.167170][ T3499] May be due to missing lock nesting notation [ 50.167170][ T3499] [ 50.175460][ T3499] 3 locks held by syz-executor231/3499: [ 50.180999][ T3499] #0: ffffffff8c91fb20 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x5/0x30 [ 50.190279][ T3499] #1: ffff888022fb75b8 (&trie->lock){....}-{2:2}, at: trie_update_elem+0xc5/0xc00 [ 50.199554][ T3499] #2: ffffffff8c91fb20 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x5/0x30 [ 50.208826][ T3499] [ 50.208826][ T3499] stack backtrace: [ 50.214688][ T3499] CPU: 0 PID: 3499 Comm: syz-executor231 Not tainted 5.15.156-syzkaller #0 [ 50.223248][ T3499] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 [ 50.233308][ T3499] Call Trace: [ 50.236594][ T3499] [ 50.239511][ T3499] dump_stack_lvl+0x1e3/0x2d0 [ 50.244177][ T3499] ? io_uring_drop_tctx_refs+0x1a0/0x1a0 [ 50.249792][ T3499] ? panic+0x860/0x860 [ 50.253853][ T3499] validate_chain+0x46d2/0x5930 [ 50.258689][ T3499] ? __lock_acquire+0x1295/0x1ff0 [ 50.263692][ T3499] ? reacquire_held_locks+0x660/0x660 [ 50.269049][ T3499] ? mark_lock+0x98/0x340 [ 50.273353][ T3499] ? validate_chain+0x112/0x5930 [ 50.278266][ T3499] ? mark_lock+0x98/0x340 [ 50.282577][ T3499] __lock_acquire+0x1295/0x1ff0 [ 50.287418][ T3499] lock_acquire+0x1db/0x4f0 [ 50.291922][ T3499] ? trie_delete_elem+0x90/0x690 [ 50.296844][ T3499] ? mark_lock+0x98/0x340 [ 50.301146][ T3499] ? read_lock_is_recursive+0x10/0x10 [ 50.306491][ T3499] ? __lock_acquire+0x1295/0x1ff0 [ 50.311494][ T3499] _raw_spin_lock_irqsave+0xd1/0x120 [ 50.316784][ T3499] ? trie_delete_elem+0x90/0x690 [ 50.321708][ T3499] ? _raw_spin_lock+0x40/0x40 [ 50.326378][ T3499] ? read_lock_is_recursive+0x10/0x10 [ 50.331818][ T3499] trie_delete_elem+0x90/0x690 [ 50.336680][ T3499] ? __cant_sleep+0x270/0x270 [ 50.341340][ T3499] bpf_prog_fdee3c9a1e8a2a6e+0x3d/0x6a4 [ 50.346879][ T3499] bpf_trace_run2+0x19e/0x340 [ 50.351572][ T3499] ? bpf_trace_run1+0x2f0/0x2f0 [ 50.356414][ T3499] ? trie_update_elem+0x268/0xc00 [ 50.361416][ T3499] ? _raw_spin_lock_irqsave+0xac/0x120 [ 50.366855][ T3499] ? lockdep_hardirqs_off+0x70/0x100 [ 50.372115][ T3499] ? trie_update_elem+0x268/0xc00 [ 50.377116][ T3499] __bpf_trace_kfree+0x6e/0x90 [ 50.381858][ T3499] ? trie_update_elem+0x268/0xc00 [ 50.386867][ T3499] kfree+0x22f/0x270 [ 50.390740][ T3499] trie_update_elem+0x268/0xc00 [ 50.395653][ T3499] ? __might_sleep+0xc0/0xc0 [ 50.400217][ T3499] ? __lock_acquire+0x1ff0/0x1ff0 [ 50.405226][ T3499] bpf_map_update_value+0x5d7/0x6c0 [ 50.410403][ T3499] map_update_elem+0x6a0/0x7c0 [ 50.415142][ T3499] __sys_bpf+0x2fd/0x670 [ 50.419360][ T3499] ? bpf_link_show_fdinfo+0x2d0/0x2d0 [ 50.424722][ T3499] ? syscall_enter_from_user_mode+0x2e/0x240 [ 50.430676][ T3499] ? lockdep_hardirqs_on+0x94/0x130 [ 50.435864][ T3499] __x64_sys_bpf+0x78/0x90 [ 50.440775][ T3499] do_syscall_64+0x3b/0xb0 [ 50.445163][ T3499] ? clear_bhb_loop+0x15/0x70 [ 50.449812][ T3499] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 50.455680][ T3499] RIP: 0033:0x7f6e47aba829 [ 50.460073][ T3499] Code: 48 83 c4 28 c3 e8 37 17 00 00 0f 1f 80 00 00 00 00 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 [ 50.479650][ T3499] RSP: 002b:00007ffe738db1b8 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 [ 50.488036][ T3499] RAX: ffffffffffffffda RBX: 00007ffe738db388 RCX: 00007f6e47aba829 [ 50.495978][ T3499] RDX: 0000000000000090 RSI: 0000000020000680 RDI: 0000000000000002 [ 50.503921][ T3499] RBP: 00007f6e47b2d610 R08: 00007ffe738db388 R09: 00007ffe738db388 [ 50.511866][ T3499] R10: 00007ffe738db388 R11: 0000000000000246 R12: 0000000000000001 [ 50.519807][ T3499] R13: 00007ffe738db378 R14: 0000000000000001 R15: 0000000000000001 [ 50.527755][ T3499]