================================ WARNING: inconsistent lock state syzkaller #0 Not tainted -------------------------------- inconsistent {INITIAL USE} -> {IN-NMI} usage. syz.2.1780/12075 [HC1[1]:SC0[0]:HE0:SE1] takes: ffff8880303cfa38 (&trie->lock){....}-{2:2}, at: trie_delete_elem+0x95/0x680 kernel/bpf/lpm_trie.c:467 {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_update_elem+0xcd/0xdf0 kernel/bpf/lpm_trie.c:335 bpf_map_update_value+0x64b/0x710 kernel/bpf/syscall.c:203 map_update_elem+0x586/0x710 kernel/bpf/syscall.c:1567 __sys_bpf+0x6b5/0x890 kernel/bpf/syscall.c:5465 __do_sys_bpf kernel/bpf/syscall.c:5581 [inline] __se_sys_bpf kernel/bpf/syscall.c:5579 [inline] __x64_sys_bpf+0x7c/0x90 kernel/bpf/syscall.c:5579 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: 934 hardirqs last enabled at (933): [] __local_bh_enable_ip+0x13a/0x1c0 kernel/softirq.c:411 hardirqs last disabled at (934): [] exc_debug_kernel arch/x86/kernel/traps.c:1063 [inline] hardirqs last disabled at (934): [] exc_debug+0x73/0x140 arch/x86/kernel/traps.c:1199 softirqs last enabled at (932): [] lock_sock include/net/sock.h:1780 [inline] softirqs last enabled at (932): [] udpv6_sendmsg+0xa04/0x2350 net/ipv6/udp.c:1421 softirqs last disabled at (930): [] spin_lock_bh include/linux/spinlock.h:356 [inline] softirqs last disabled at (930): [] lock_sock_nested+0x6a/0x100 net/core/sock.c:3547 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(&trie->lock); lock(&trie->lock); *** DEADLOCK *** 1 lock held by syz.2.1780/12075: #0: ffff88802378b130 (sk_lock-AF_INET6){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1780 [inline] #0: ffff88802378b130 (sk_lock-AF_INET6){+.+.}-{0:0}, at: udpv6_sendmsg+0xa04/0x2350 net/ipv6/udp.c:1421 stack backtrace: CPU: 0 PID: 12075 Comm: syz.2.1780 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/09/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+0x95/0x680 kernel/bpf/lpm_trie.c:467 bpf_prog_2c29ac5cdc6b1842+0x42/0x46 bpf_dispatcher_nop_func include/linux/bpf.h:1224 [inline] __bpf_prog_run include/linux/filter.h:616 [inline] bpf_prog_run include/linux/filter.h:623 [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:rep_movs_alternative+0x4a/0x90 arch/x86/lib/copy_user_64.S:71 Code: 75 f1 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 48 8b 06 48 89 07 48 83 c6 08 48 83 c7 08 83 e9 08 74 df 83 f9 08 73 e8 eb c9 a4 c3 48 8b 06 48 89 07 48 8d 47 08 48 83 e0 f8 48 29 f8 48 01 RSP: 0018:ffffc9000fb87458 EFLAGS: 00050206 RAX: ffffffff842eee01 RBX: 00000000000004f8 RCX: 00000000000004f7 RDX: 0000000000000001 RSI: 0000200000000301 RDI: ffff88802b6f3049 RBP: ffffc9000fb87588 R08: ffff88802b6f353f R09: 1ffff110056de6a7 R10: dffffc0000000000 R11: ffffed10056de6a8 R12: ffff88802b6f3048 R13: 0000200000000300 R14: ffffc9000fb87c18 R15: 1ffff92001f70f83 copy_user_generic arch/x86/include/asm/uaccess_64.h:112 [inline] raw_copy_from_user arch/x86/include/asm/uaccess_64.h:127 [inline] copyin lib/iov_iter.c:193 [inline] _copy_from_iter+0x242/0x1290 lib/iov_iter.c:391 copy_from_iter include/linux/uio.h:209 [inline] copy_from_iter_full include/linux/uio.h:216 [inline] udplite_getfrag+0x4d/0xa0 include/net/udplite.h:25 __ip6_append_data+0x20f6/0x3d40 net/ipv6/ip6_output.c:1744 ip6_append_data+0x1b0/0x350 net/ipv6/ip6_output.c:1855 udpv6_sendmsg+0xc34/0x2350 net/ipv6/udp.c:1613 sock_sendmsg_nosec net/socket.c:730 [inline] __sock_sendmsg net/socket.c:745 [inline] sock_write_iter+0x2dc/0x420 net/socket.c:1161 call_write_iter include/linux/fs.h:2018 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x474/0x9a0 fs/read_write.c:584 ksys_write+0x151/0x260 fs/read_write.c:637 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:0x7fc529d9de59 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:00007fc52ac74028 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fc52a026090 RCX: 00007fc529d9de59 RDX: 000000000000fe33 RSI: 0000200000000300 RDI: 0000000000000005 RBP: 00007fc529e33e6f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fc52a026128 R14: 00007fc52a026090 R15: 00007ffd54123888 ---------------- Code disassembly (best guess): 0: 75 f1 jne 0xfffffff3 2: c3 ret 3: 66 2e 0f 1f 84 00 00 cs nopw 0x0(%rax,%rax,1) a: 00 00 00 d: 0f 1f 00 nopl (%rax) 10: 48 8b 06 mov (%rsi),%rax 13: 48 89 07 mov %rax,(%rdi) 16: 48 83 c6 08 add $0x8,%rsi 1a: 48 83 c7 08 add $0x8,%rdi 1e: 83 e9 08 sub $0x8,%ecx 21: 74 df je 0x2 23: 83 f9 08 cmp $0x8,%ecx 26: 73 e8 jae 0x10 28: eb c9 jmp 0xfffffff3 * 2a: f3 a4 rep movsb %ds:(%rsi),%es:(%rdi) <-- trapping instruction 2c: c3 ret 2d: 48 8b 06 mov (%rsi),%rax 30: 48 89 07 mov %rax,(%rdi) 33: 48 8d 47 08 lea 0x8(%rdi),%rax 37: 48 83 e0 f8 and $0xfffffffffffffff8,%rax 3b: 48 29 f8 sub %rdi,%rax 3e: 48 rex.W 3f: 01 .byte 0x1