================================ WARNING: inconsistent lock state syzkaller #0 Not tainted -------------------------------- inconsistent {INITIAL USE} -> {IN-NMI} usage. syz.3.4780/20596 [HC1[1]:SC0[0]:HE0:SE1] takes: ffff88802c5df820 (&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+0x19f/0x640 kernel/bpf/hashtab.c:1485 bpf_prog_fdeb40924ded8187+0x45/0x49 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_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: 818 hardirqs last enabled at (817): [] ___slab_alloc+0x10e9/0x12f0 mm/slub.c:3187 hardirqs last disabled at (818): [] exc_debug_kernel arch/x86/kernel/traps.c:1063 [inline] hardirqs last disabled at (818): [] exc_debug+0x73/0x140 arch/x86/kernel/traps.c:1199 softirqs last enabled at (570): [] bpf_prog_load+0x1204/0x1610 kernel/bpf/syscall.c:2779 softirqs last disabled at (568): [] spin_lock_bh include/linux/spinlock.h:356 [inline] softirqs last disabled at (568): [] bpf_ksym_add+0x2c/0x330 kernel/bpf/core.c:655 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.4780/20596. stack backtrace: CPU: 0 PID: 20596 Comm: syz.3.4780 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 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+0x19f/0x640 kernel/bpf/hashtab.c:1485 bpf_prog_fdeb40924ded8187+0x45/0x49 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: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+0x10f/0x2f0 lib/strncpy_from_user.c:139 Code: de e8 85 0a 23 fd 48 83 fb 07 0f 86 9d 00 00 00 49 c7 c6 f8 ff ff ff 45 31 e4 4c 89 3c 24 4c 89 6c 24 08 4d 89 e5 4f 8b 3c 27 <48> b8 ff fe fe fe fe fe fe fe 4d 8d 24 07 4c 89 fd 48 f7 d5 48 b8 RSP: 0018:ffffc900044bfd40 EFLAGS: 00040246 RAX: ffffffff8463df2b RBX: 0000000000000fe0 RCX: ffff88807b931e00 RDX: 0000000000000002 RSI: 0000000000000fe0 RDI: 0000000000000007 RBP: 0000200000000300 R08: ffffea0001901007 R09: 1ffffd4000320200 R10: dffffc0000000000 R11: fffff94000320201 R12: 0000000000000000 R13: 0000000000000000 R14: fffffffffffffff8 R15: 632e70756f726763 getname_flags+0xf6/0x500 fs/namei.c:151 do_sys_openat2+0xda/0x1d0 fs/open.c:1416 do_sys_open fs/open.c:1437 [inline] __do_sys_openat fs/open.c:1453 [inline] __se_sys_openat fs/open.c:1448 [inline] __x64_sys_openat+0x139/0x160 fs/open.c:1448 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:0x7f011f19de59 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:00007f011ffda028 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007f011f425fa0 RCX: 00007f011f19de59 RDX: 00000000000026e1 RSI: 0000200000000300 RDI: ffffffffffffff9c RBP: 00007f011f233e6f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f011f426038 R14: 00007f011f425fa0 R15: 00007ffd9632fa68 ---------------- Code disassembly (best guess): 0: de e8 fsubrp %st,%st(0) 2: 85 0a test %ecx,(%rdx) 4: 23 fd and %ebp,%edi 6: 48 83 fb 07 cmp $0x7,%rbx a: 0f 86 9d 00 00 00 jbe 0xad 10: 49 c7 c6 f8 ff ff ff mov $0xfffffffffffffff8,%r14 17: 45 31 e4 xor %r12d,%r12d 1a: 4c 89 3c 24 mov %r15,(%rsp) 1e: 4c 89 6c 24 08 mov %r13,0x8(%rsp) 23: 4d 89 e5 mov %r12,%r13 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: 4d 8d 24 07 lea (%r15,%rax,1),%r12 38: 4c 89 fd mov %r15,%rbp 3b: 48 f7 d5 not %rbp 3e: 48 rex.W 3f: b8 .byte 0xb8