================================ WARNING: inconsistent lock state syzkaller #0 Not tainted -------------------------------- inconsistent {INITIAL USE} -> {IN-NMI} usage. syz.2.1422/9921 [HC1[1]:SC0[0]:HE0:SE1] takes: ffff88807fae3a38 (&trie->lock){..-.}-{2:2}, at: trie_delete_elem+0x94/0x630 kernel/bpf/lpm_trie.c:466 {INITIAL USE} state was registered at: lock_acquire+0x19e/0x420 kernel/locking/lockdep.c:5754 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0xb4/0x100 kernel/locking/spinlock.c:162 trie_delete_elem+0x94/0x630 kernel/bpf/lpm_trie.c:466 0xffffffffa00009aa bpf_dispatcher_nop_func include/linux/bpf.h:1224 [inline] __bpf_prog_run include/linux/filter.h:617 [inline] bpf_prog_run include/linux/filter.h:624 [inline] bpf_prog_run_array include/linux/bpf.h:1994 [inline] trace_call_bpf+0x333/0x6c0 kernel/trace/bpf_trace.c:143 perf_trace_run_bpf_submit+0x7a/0x1c0 kernel/events/core.c:10287 perf_trace_mm_page_free+0xe4/0x120 include/trace/events/kmem.h:136 trace_mm_page_free+0xe8/0x110 include/trace/events/kmem.h:136 free_pages_prepare mm/page_alloc.c:1115 [inline] free_unref_page_prepare+0x89/0x8f0 mm/page_alloc.c:2366 free_unref_page+0x32/0x2e0 mm/page_alloc.c:2459 napi_frag_unref include/linux/skbuff.h:3539 [inline] skb_release_data+0x3ca/0x7f0 net/core/skbuff.c:982 skb_release_all net/core/skbuff.c:1054 [inline] __kfree_skb net/core/skbuff.c:1068 [inline] kfree_skb_reason+0x10e/0x170 net/core/skbuff.c:1104 kfree_skb include/linux/skbuff.h:1264 [inline] ipip_tunnel_xmit+0x237/0x4b0 net/ipv4/ipip.c:312 __netdev_start_xmit include/linux/netdevice.h:4945 [inline] netdev_start_xmit include/linux/netdevice.h:4959 [inline] xmit_one net/core/dev.c:3644 [inline] dev_hard_start_xmit+0x269/0x790 net/core/dev.c:3660 __dev_queue_xmit+0x198c/0x3630 net/core/dev.c:4454 packet_snd net/packet/af_packet.c:3142 [inline] packet_sendmsg+0x3a7b/0x4c70 net/packet/af_packet.c:3174 sock_sendmsg_nosec net/socket.c:730 [inline] __sock_sendmsg net/socket.c:745 [inline] ____sys_sendmsg+0x61b/0x980 net/socket.c:2595 ___sys_sendmsg+0x2a6/0x360 net/socket.c:2649 __sys_sendmsg net/socket.c:2678 [inline] __do_sys_sendmsg net/socket.c:2687 [inline] __se_sys_sendmsg+0x1d0/0x2c0 net/socket.c:2685 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 irq event stamp: 68342 hardirqs last enabled at (68341): [] syscall_enter_from_user_mode+0x25/0x80 kernel/entry/common.c:117 hardirqs last disabled at (68342): [] exc_debug_kernel arch/x86/kernel/traps.c:1063 [inline] hardirqs last disabled at (68342): [] exc_debug+0x73/0x140 arch/x86/kernel/traps.c:1199 softirqs last enabled at (68274): [] bpf_test_run+0x174/0x870 net/bpf/test_run.c:-1 softirqs last disabled at (68272): [] bpf_test_run+0x174/0x870 net/bpf/test_run.c:-1 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(&trie->lock); lock(&trie->lock); *** DEADLOCK *** no locks held by syz.2.1422/9921. stack backtrace: CPU: 1 PID: 9921 Comm: syz.2.1422 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/16/2026 Call Trace: <#DB> dump_stack_lvl+0x18c/0x250 lib/dump_stack.c:106 lock_acquire+0x2c2/0x420 kernel/locking/lockdep.c:5745 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0xb4/0x100 kernel/locking/spinlock.c:162 trie_delete_elem+0x94/0x630 kernel/bpf/lpm_trie.c:466 bpf_prog_2c29ac5cdc6b1842+0x42/0x46 bpf_dispatcher_nop_func include/linux/bpf.h:1224 [inline] __bpf_prog_run include/linux/filter.h:617 [inline] bpf_prog_run include/linux/filter.h:624 [inline] bpf_overflow_handler+0x1fc/0x510 kernel/events/core.c:10576 __perf_event_overflow+0x461/0x660 kernel/events/core.c:9712 perf_swevent_overflow kernel/events/core.c:9795 [inline] perf_swevent_event+0x319/0x570 kernel/events/core.c:9846 perf_bp_event+0x319/0x430 kernel/events/core.c:10773 hw_breakpoint_handler arch/x86/kernel/hw_breakpoint.c:555 [inline] hw_breakpoint_exceptions_notify+0x23e/0x670 arch/x86/kernel/hw_breakpoint.c:586 notifier_call_chain+0x18f/0x380 kernel/notifier.c:93 atomic_notifier_call_chain+0xda/0x180 kernel/notifier.c:231 notify_die+0x145/0x1a0 kernel/notifier.c:596 notify_debug+0x2e/0x50 arch/x86/kernel/traps.c:1042 exc_debug_kernel arch/x86/kernel/traps.c:1099 [inline] exc_debug+0xde/0x140 arch/x86/kernel/traps.c:1199 asm_exc_debug+0x1e/0x40 arch/x86/include/asm/idtentry.h:644 RIP: 0010:__put_user_4+0x13/0x20 arch/x86/lib/putuser.S:90 Code: c3 90 90 90 90 90 90 f3 0f 1e fa 0f 01 cb 66 89 01 31 c9 0f 01 ca c3 f3 0f 1e fa 48 89 cb 48 c1 fb 3f 48 09 d9 0f 01 cb 89 01 <31> c9 0f 01 ca c3 90 90 90 90 90 90 90 f3 0f 1e fa 0f 01 cb 89 01 RSP: 0018:ffffc9000bc67e80 EFLAGS: 00040206 RAX: 000000000000000c RBX: 0000000000000000 RCX: 0000200000000300 RDX: 0000000000000000 RSI: ffffffff8acadd60 RDI: ffffffff8b1d0660 RBP: 000000000000000c R08: ffffffff8e8c7caf R09: 1ffffffff1d18f95 R10: dffffc0000000000 R11: fffffbfff1d18f96 R12: 0000000000000000 R13: 0000200000000300 R14: 0000000000000001 R15: 0000000000000001 __sys_socketpair+0xb8/0x550 net/socket.c:1765 __do_sys_socketpair net/socket.c:1831 [inline] __se_sys_socketpair net/socket.c:1828 [inline] __x64_sys_socketpair+0x9b/0xb0 net/socket.c:1828 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f62c4b9df99 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 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 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f62c5b35028 EFLAGS: 00000246 ORIG_RAX: 0000000000000035 RAX: ffffffffffffffda RBX: 00007f62c4e25fa0 RCX: 00007f62c4b9df99 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000001 RBP: 00007f62c4c34ec4 R08: 0000000000000000 R09: 0000000000000000 R10: 0000200000000300 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f62c4e26038 R14: 00007f62c4e25fa0 R15: 00007ffe5cdfece8 ---------------- Code disassembly (best guess): 0: c3 ret 1: 90 nop 2: 90 nop 3: 90 nop 4: 90 nop 5: 90 nop 6: 90 nop 7: f3 0f 1e fa endbr64 b: 0f 01 cb stac e: 66 89 01 mov %ax,(%rcx) 11: 31 c9 xor %ecx,%ecx 13: 0f 01 ca clac 16: c3 ret 17: f3 0f 1e fa endbr64 1b: 48 89 cb mov %rcx,%rbx 1e: 48 c1 fb 3f sar $0x3f,%rbx 22: 48 09 d9 or %rbx,%rcx 25: 0f 01 cb stac 28: 89 01 mov %eax,(%rcx) * 2a: 31 c9 xor %ecx,%ecx <-- trapping instruction 2c: 0f 01 ca clac 2f: c3 ret 30: 90 nop 31: 90 nop 32: 90 nop 33: 90 nop 34: 90 nop 35: 90 nop 36: 90 nop 37: f3 0f 1e fa endbr64 3b: 0f 01 cb stac 3e: 89 01 mov %eax,(%rcx)