================================ WARNING: inconsistent lock state syzkaller #0 Not tainted -------------------------------- inconsistent {INITIAL USE} -> {IN-NMI} usage. syz.1.1226/9729 [HC1[1]:SC0[0]:HE0:SE1] takes: ffffe8ffffd4b3d8 (&l->lock#2){....}-{2:2}, at: bpf_lru_push_free+0x13e/0x520 kernel/bpf/bpf_lru_list.c:-1 {INITIAL USE} state was registered at: lock_acquire+0x117/0x340 kernel/locking/lockdep.c:5868 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0xa7/0xf0 kernel/locking/spinlock.c:162 bpf_percpu_lru_pop_free kernel/bpf/bpf_lru_list.c:407 [inline] bpf_lru_pop_free+0xcb/0x19b0 kernel/bpf/bpf_lru_list.c:494 prealloc_lru_pop kernel/bpf/hashtab.c:299 [inline] htab_lru_map_update_elem+0x168/0x8a0 kernel/bpf/hashtab.c:1215 bpf_map_update_value+0x751/0x920 kernel/bpf/syscall.c:294 generic_map_update_batch+0x5a9/0x810 kernel/bpf/syscall.c:2038 bpf_map_do_batch+0x39b/0x630 kernel/bpf/syscall.c:5647 __sys_bpf+0x750/0x8a0 kernel/bpf/syscall.c:-1 __do_sys_bpf kernel/bpf/syscall.c:6320 [inline] __se_sys_bpf kernel/bpf/syscall.c:6318 [inline] __x64_sys_bpf+0x7c/0x90 kernel/bpf/syscall.c:6318 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f irq event stamp: 19590 hardirqs last enabled at (19589): [] syscall_enter_from_user_mode include/linux/entry-common.h:108 [inline] hardirqs last enabled at (19589): [] do_syscall_64+0xbe/0xf80 arch/x86/entry/syscall_64.c:90 hardirqs last disabled at (19590): [] exc_debug_kernel+0x68/0x150 arch/x86/kernel/traps.c:1233 softirqs last enabled at (17462): [] __do_softirq kernel/softirq.c:656 [inline] softirqs last enabled at (17462): [] invoke_softirq kernel/softirq.c:496 [inline] softirqs last enabled at (17462): [] __irq_exit_rcu+0xca/0x1f0 kernel/softirq.c:723 softirqs last disabled at (17443): [] __do_softirq kernel/softirq.c:656 [inline] softirqs last disabled at (17443): [] invoke_softirq kernel/softirq.c:496 [inline] softirqs last disabled at (17443): [] __irq_exit_rcu+0xca/0x1f0 kernel/softirq.c:723 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(&l->lock#2); lock(&l->lock#2); *** DEADLOCK *** no locks held by syz.1.1226/9729. stack backtrace: CPU: 1 UID: 0 PID: 9729 Comm: syz.1.1226 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025 Call Trace: <#DB> dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120 print_usage_bug+0x28b/0x2e0 kernel/locking/lockdep.c:4042 lock_acquire+0x1f8/0x340 kernel/locking/lockdep.c:5859 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0xa7/0xf0 kernel/locking/spinlock.c:162 bpf_lru_push_free+0x13e/0x520 kernel/bpf/bpf_lru_list.c:-1 htab_lru_push_free kernel/bpf/hashtab.c:1183 [inline] htab_lru_map_delete_elem+0x3a3/0x410 kernel/bpf/hashtab.c:1464 bpf_prog_464bc2be3fc7c272+0x43/0x4b bpf_dispatcher_nop_func include/linux/bpf.h:1378 [inline] __bpf_prog_run include/linux/filter.h:723 [inline] bpf_prog_run include/linux/filter.h:730 [inline] bpf_overflow_handler kernel/events/core.c:10303 [inline] __perf_event_overflow+0x39c/0xe70 kernel/events/core.c:10402 perf_swevent_overflow kernel/events/core.c:10536 [inline] perf_swevent_event+0x4f8/0x5e0 kernel/events/core.c:10574 perf_bp_event+0x251/0x300 kernel/events/core.c:11395 hw_breakpoint_handler arch/x86/kernel/hw_breakpoint.c:556 [inline] hw_breakpoint_exceptions_notify+0x244/0x680 arch/x86/kernel/hw_breakpoint.c:587 notifier_call_chain+0x19d/0x3a0 kernel/notifier.c:85 atomic_notifier_call_chain+0xda/0x180 kernel/notifier.c:223 notify_die+0x130/0x180 kernel/notifier.c:588 notify_debug+0x2e/0x50 arch/x86/kernel/traps.c:1208 exc_debug_kernel+0xbe/0x150 arch/x86/kernel/traps.c:1270 asm_exc_debug+0x1e/0x40 arch/x86/include/asm/idtentry.h:654 RIP: 0010:rep_movs_alternative+0x11/0x90 arch/x86/lib/copy_user_64.S:47 Code: c3 cc cc cc cc cc cc cc cc 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 48 83 f9 40 73 44 83 f9 08 73 25 85 c9 74 0f 8a 06 <88> 07 48 ff c7 48 ff c6 48 ff c9 75 f1 e9 bd 48 04 00 66 2e 0f 1f RSP: 0018:ffffc90003407cf8 EFLAGS: 00040202 RAX: 00007ffffffff0ff RBX: 0000000000000004 RCX: 0000000000000004 RDX: 0000000000000001 RSI: 0000200000000300 RDI: ffffc90003407d60 RBP: ffffc90003407ea8 R08: ffffc90003407d63 R09: 1ffff92000680fac R10: dffffc0000000000 R11: fffff52000680fad R12: ffffc90003407d60 R13: 0000000000000004 R14: ffffc90003407d60 R15: 0000200000000300 copy_user_generic arch/x86/include/asm/uaccess_64.h:126 [inline] raw_copy_from_user arch/x86/include/asm/uaccess_64.h:141 [inline] _inline_copy_from_user include/linux/uaccess.h:185 [inline] _copy_from_user+0x7a/0xb0 lib/usercopy.c:18 copy_from_user include/linux/uaccess.h:223 [inline] copy_from_bpfptr_offset include/linux/bpfptr.h:53 [inline] copy_from_bpfptr include/linux/bpfptr.h:59 [inline] __sys_bpf+0x1f2/0x8a0 kernel/bpf/syscall.c:6180 __do_sys_bpf kernel/bpf/syscall.c:6320 [inline] __se_sys_bpf kernel/bpf/syscall.c:6318 [inline] __x64_sys_bpf+0x7c/0x90 kernel/bpf/syscall.c:6318 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f352398f749 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f352473f038 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 RAX: ffffffffffffffda RBX: 00007f3523be5fa0 RCX: 00007f352398f749 RDX: 0000000000000004 RSI: 0000200000000300 RDI: 0000000000000016 RBP: 00007f3523a13f91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f3523be6038 R14: 00007f3523be5fa0 R15: 00007fff33ebec58 ---------------- Code disassembly (best guess): 0: c3 ret 1: cc int3 2: cc int3 3: cc int3 4: cc int3 5: cc int3 6: cc int3 7: cc int3 8: cc int3 9: 90 nop a: 90 nop b: 90 nop c: 90 nop d: 90 nop e: 90 nop f: 90 nop 10: 90 nop 11: 90 nop 12: 90 nop 13: 90 nop 14: 90 nop 15: 90 nop 16: 90 nop 17: 90 nop 18: 90 nop 19: 48 83 f9 40 cmp $0x40,%rcx 1d: 73 44 jae 0x63 1f: 83 f9 08 cmp $0x8,%ecx 22: 73 25 jae 0x49 24: 85 c9 test %ecx,%ecx 26: 74 0f je 0x37 28: 8a 06 mov (%rsi),%al * 2a: 88 07 mov %al,(%rdi) <-- trapping instruction 2c: 48 ff c7 inc %rdi 2f: 48 ff c6 inc %rsi 32: 48 ff c9 dec %rcx 35: 75 f1 jne 0x28 37: e9 bd 48 04 00 jmp 0x448f9 3c: 66 data16 3d: 2e cs 3e: 0f .byte 0xf 3f: 1f (bad)