Warning: Permanently added '10.128.0.103' (ED25519) to the list of known hosts. executing program [ 66.042761][ T3544] [ 66.045131][ T3544] ============================================ [ 66.051275][ T3544] WARNING: possible recursive locking detected [ 66.057416][ T3544] 6.1.87-syzkaller #0 Not tainted [ 66.062452][ T3544] -------------------------------------------- [ 66.068590][ T3544] syz-executor383/3544 is trying to acquire lock: [ 66.074994][ T3544] ffff888079e9ca38 (&trie->lock){....}-{2:2}, at: trie_delete_elem+0x90/0x690 [ 66.083916][ T3544] [ 66.083916][ T3544] but task is already holding lock: [ 66.091292][ T3544] ffff888079e9ca38 (&trie->lock){....}-{2:2}, at: trie_update_elem+0xc5/0xc00 [ 66.100198][ T3544] [ 66.100198][ T3544] other info that might help us debug this: [ 66.108271][ T3544] Possible unsafe locking scenario: [ 66.108271][ T3544] [ 66.115732][ T3544] CPU0 [ 66.119024][ T3544] ---- [ 66.122308][ T3544] lock(&trie->lock); [ 66.126407][ T3544] lock(&trie->lock); [ 66.130499][ T3544] [ 66.130499][ T3544] *** DEADLOCK *** [ 66.130499][ T3544] [ 66.138671][ T3544] May be due to missing lock nesting notation [ 66.138671][ T3544] [ 66.147003][ T3544] 3 locks held by syz-executor383/3544: [ 66.152554][ T3544] #0: ffffffff8d12ac80 (rcu_read_lock){....}-{1:2}, at: bpf_map_update_value+0x207/0x6f0 [ 66.162517][ T3544] #1: ffff888079e9ca38 (&trie->lock){....}-{2:2}, at: trie_update_elem+0xc5/0xc00 [ 66.171866][ T3544] #2: ffffffff8d12ac80 (rcu_read_lock){....}-{1:2}, at: bpf_trace_run2+0x110/0x410 [ 66.181364][ T3544] [ 66.181364][ T3544] stack backtrace: [ 66.187251][ T3544] CPU: 1 PID: 3544 Comm: syz-executor383 Not tainted 6.1.87-syzkaller #0 [ 66.195666][ T3544] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 [ 66.205814][ T3544] Call Trace: [ 66.209097][ T3544] [ 66.212093][ T3544] dump_stack_lvl+0x1e3/0x2cb [ 66.216809][ T3544] ? nf_tcp_handle_invalid+0x642/0x642 [ 66.222283][ T3544] ? panic+0x764/0x764 [ 66.226362][ T3544] validate_chain+0x4711/0x5950 [ 66.231229][ T3544] ? __bitmap_and+0x2ef/0x310 [ 66.235909][ T3544] ? smp_call_function_many_cond+0x1ec9/0x3460 [ 66.242081][ T3544] ? reacquire_held_locks+0x660/0x660 [ 66.247468][ T3544] ? mark_lock+0x9a/0x340 [ 66.251813][ T3544] ? __lock_acquire+0x125b/0x1f80 [ 66.256856][ T3544] ? mark_lock+0x9a/0x340 [ 66.261206][ T3544] __lock_acquire+0x125b/0x1f80 [ 66.266079][ T3544] lock_acquire+0x1f8/0x5a0 [ 66.270596][ T3544] ? trie_delete_elem+0x90/0x690 [ 66.275550][ T3544] ? read_lock_is_recursive+0x10/0x10 [ 66.280936][ T3544] ? __lock_acquire+0x125b/0x1f80 [ 66.286001][ T3544] _raw_spin_lock_irqsave+0xd1/0x120 [ 66.291315][ T3544] ? trie_delete_elem+0x90/0x690 [ 66.296275][ T3544] ? _raw_spin_lock+0x40/0x40 [ 66.300970][ T3544] ? read_lock_is_recursive+0x10/0x10 [ 66.306368][ T3544] trie_delete_elem+0x90/0x690 [ 66.311159][ T3544] ? __cant_sleep+0x270/0x270 [ 66.315854][ T3544] ? read_lock_is_recursive+0x10/0x10 [ 66.321241][ T3544] ? do_raw_spin_lock+0x14a/0x370 [ 66.326299][ T3544] bpf_prog_fdee3c9a1e8a2a6e+0x3d/0x41 [ 66.331765][ T3544] bpf_trace_run2+0x1fd/0x410 [ 66.336456][ T3544] ? bpf_trace_run2+0x110/0x410 [ 66.341311][ T3544] ? bpf_trace_run1+0x3d0/0x3d0 [ 66.346165][ T3544] ? trie_update_elem+0x268/0xc00 [ 66.351203][ T3544] ? _raw_spin_lock_irqsave+0xdd/0x120 [ 66.356670][ T3544] ? _raw_spin_lock+0x40/0x40 [ 66.361376][ T3544] ? trie_update_elem+0x268/0xc00 [ 66.366414][ T3544] __bpf_trace_kfree+0x6e/0x90 [ 66.371185][ T3544] ? trie_update_elem+0x268/0xc00 [ 66.376224][ T3544] kfree+0xf6/0x190 [ 66.380041][ T3544] trie_update_elem+0x268/0xc00 [ 66.384929][ T3544] ? __might_fault+0xa1/0x110 [ 66.389617][ T3544] ? __lock_acquire+0x1f80/0x1f80 [ 66.394661][ T3544] bpf_map_update_value+0x5cf/0x6f0 [ 66.399893][ T3544] map_update_elem+0x503/0x680 [ 66.404712][ T3544] __sys_bpf+0x337/0x6c0 [ 66.408975][ T3544] ? bpf_link_show_fdinfo+0x2d0/0x2d0 [ 66.414374][ T3544] ? print_irqtrace_events+0x210/0x210 [ 66.419849][ T3544] ? print_irqtrace_events+0x210/0x210 [ 66.425331][ T3544] ? syscall_enter_from_user_mode+0x2e/0x230 [ 66.431320][ T3544] ? lockdep_hardirqs_on+0x94/0x130 [ 66.436532][ T3544] __x64_sys_bpf+0x78/0x90 [ 66.440967][ T3544] do_syscall_64+0x3b/0xb0 [ 66.445410][ T3544] ? clear_bhb_loop+0x45/0xa0 [ 66.450119][ T3544] entry_SYSCALL_64_after_hwframe+0x68/0xd2 [ 66.456026][ T3544] RIP: 0033:0x7f9e9fa33829 [ 66.460445][ T3544] 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 [ 66.480059][ T3544] RSP: 002b:00007ffc0c5c0768 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 [ 66.488516][ T3544] RAX: ffffffffffffffda RBX: 00007ffc0c5c0938 RCX: 00007f9e9fa33829 [ 66.496494][ T3544] RDX: 0000000000000090 RSI: 0000000020000680 RDI: 0000000000000002 [ 66.504488][ T3544] RBP: 00007f9e9faa6610 R08: 00007ffc0c5c0938 R09: 00007ffc0c5c0938 [ 66.512474][ T3544] R10: 00007ffc0c5c0938 R11: 0000000000000246 R12: 0000000000000001 [ 66.520449][ T3544] R13: 00007ffc0c5c0928 R14: 0000000000000001 R15: 0000000000000001 [ 66.528431][ T3544]