================================ WARNING: inconsistent lock state syzkaller #0 Not tainted -------------------------------- inconsistent {INITIAL USE} -> {IN-NMI} usage. syz.3.1700/11792 [HC1[1]:SC0[0]:HE0:SE1] takes: ffff888077007ca0 (&htab->lockdep_key){....}-{2:2}, at: htab_lock_bucket+0x17d/0x300 kernel/bpf/hashtab.c:166 {INITIAL USE} state was registered at: lock_acquire+0x19e/0x420 kernel/locking/lockdep.c:5754 __raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline] _raw_spin_lock+0x2e/0x40 kernel/locking/spinlock.c:154 htab_lock_bucket+0x17d/0x300 kernel/bpf/hashtab.c:166 htab_lru_map_delete_elem+0x1a4/0x650 kernel/bpf/hashtab.c:1485 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:10584 __perf_event_overflow+0x447/0x630 kernel/events/core.c:9720 perf_swevent_overflow kernel/events/core.c:9803 [inline] perf_swevent_event+0x319/0x570 kernel/events/core.c:9854 perf_bp_event+0x319/0x430 kernel/events/core.c:10781 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+0x197/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_user arch/x86/kernel/traps.c:1168 [inline] noist_exc_debug+0x77/0x120 arch/x86/kernel/traps.c:1205 asm_exc_debug+0x33/0x40 arch/x86/include/asm/idtentry.h:644 irq event stamp: 10446 hardirqs last enabled at (10445): [] mod_memcg_state include/linux/memcontrol.h:986 [inline] hardirqs last enabled at (10445): [] pcpu_memcg_post_alloc_hook+0x282/0x3f0 mm/percpu.c:1655 hardirqs last disabled at (10446): [] exc_debug_kernel arch/x86/kernel/traps.c:1063 [inline] hardirqs last disabled at (10446): [] exc_debug+0x73/0x140 arch/x86/kernel/traps.c:1199 softirqs last enabled at (9950): [] __do_softirq kernel/softirq.c:612 [inline] softirqs last enabled at (9950): [] invoke_softirq kernel/softirq.c:452 [inline] softirqs last enabled at (9950): [] __irq_exit_rcu+0xd3/0x190 kernel/softirq.c:661 softirqs last disabled at (9939): [] __do_softirq kernel/softirq.c:612 [inline] softirqs last disabled at (9939): [] invoke_softirq kernel/softirq.c:452 [inline] softirqs last disabled at (9939): [] __irq_exit_rcu+0xd3/0x190 kernel/softirq.c:661 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(&htab->lockdep_key); lock(&htab->lockdep_key); *** DEADLOCK *** no locks held by syz.3.1700/11792. stack backtrace: CPU: 0 PID: 11792 Comm: syz.3.1700 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/18/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 include/linux/spinlock_api_smp.h:133 [inline] _raw_spin_lock+0x2e/0x40 kernel/locking/spinlock.c:154 htab_lock_bucket+0x17d/0x300 kernel/bpf/hashtab.c:166 htab_lru_map_delete_elem+0x1a4/0x650 kernel/bpf/hashtab.c:1485 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:10584 __perf_event_overflow+0x447/0x630 kernel/events/core.c:9720 perf_swevent_overflow kernel/events/core.c:9803 [inline] perf_swevent_event+0x319/0x570 kernel/events/core.c:9854 perf_bp_event+0x319/0x430 kernel/events/core.c:10781 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+0x197/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:has_zero arch/x86/include/asm/word-at-a-time.h:49 [inline] RIP: 0010:do_strncpy_from_user lib/strncpy_from_user.c:54 [inline] RIP: 0010:strncpy_from_user+0x103/0x2d0 lib/strncpy_from_user.c:139 Code: 13 67 2a fd 49 83 fd 07 0f 86 a1 00 00 00 4c 89 74 24 08 48 c7 44 24 10 f8 ff ff ff 45 31 e4 4c 89 3c 24 49 89 de 4f 8b 3c 27 <48> b8 ff fe fe fe fe fe fe fe 49 8d 1c 07 4c 89 fd 48 f7 d5 48 b8 RSP: 0018:ffffc900055ffb50 EFLAGS: 00040246 RAX: ffffffff845cbf2d RBX: ffffc900055ffc70 RCX: ffff8880228cbc00 RDX: 0000000000000002 RSI: 000000000000007f RDI: 0000000000000007 RBP: ffffc900055ffd70 R08: ffff8880228cbc00 R09: 0000000000000003 R10: 0000000000000002 R11: 0000000000000002 R12: 0000000000000000 R13: 000000000000007f R14: ffffc900055ffc70 R15: 00006370004c5047 bpf_prog_load+0xcea/0x1670 kernel/bpf/syscall.c:2714 __sys_bpf+0x5ba/0x890 kernel/bpf/syscall.c:5477 __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/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f75e6d9cdd9 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:00007f75e7cfd028 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 RAX: ffffffffffffffda RBX: 00007f75e7015fa0 RCX: 00007f75e6d9cdd9 RDX: 0000000000000021 RSI: 0000200000000980 RDI: 0000000000000005 RBP: 00007f75e6e32d69 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f75e7016038 R14: 00007f75e7015fa0 R15: 00007fffb7628738 ---------------- Code disassembly (best guess): 0: 13 67 2a adc 0x2a(%rdi),%esp 3: fd std 4: 49 83 fd 07 cmp $0x7,%r13 8: 0f 86 a1 00 00 00 jbe 0xaf e: 4c 89 74 24 08 mov %r14,0x8(%rsp) 13: 48 c7 44 24 10 f8 ff movq $0xfffffffffffffff8,0x10(%rsp) 1a: ff ff 1c: 45 31 e4 xor %r12d,%r12d 1f: 4c 89 3c 24 mov %r15,(%rsp) 23: 49 89 de mov %rbx,%r14 26: 4f 8b 3c 27 mov (%r15,%r12,1),%r15 * 2a: 48 b8 ff fe fe fe fe movabs $0xfefefefefefefeff,%rax <-- trapping instruction 31: fe fe fe 34: 49 8d 1c 07 lea (%r15,%rax,1),%rbx 38: 4c 89 fd mov %r15,%rbp 3b: 48 f7 d5 not %rbp 3e: 48 rex.W 3f: b8 .byte 0xb8