================================ WARNING: inconsistent lock state syzkaller #0 Not tainted -------------------------------- inconsistent {INITIAL USE} -> {IN-NMI} usage. syz.1.4165/19111 [HC1[1]:SC0[0]:HE0:SE1] takes: ffff88802649c0d0 (&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:5790 __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_map_delete_elem+0x19f/0x640 kernel/bpf/hashtab.c:1443 bpf_prog_a8e63e838209a5e2+0x49/0x4b bpf_dispatcher_nop_func include/linux/bpf.h:1226 [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:10584 __perf_event_overflow+0x461/0x660 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+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: 6162 hardirqs last enabled at (6161): [] asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:687 hardirqs last disabled at (6162): [] exc_debug_kernel arch/x86/kernel/traps.c:1063 [inline] hardirqs last disabled at (6162): [] exc_debug+0x73/0x140 arch/x86/kernel/traps.c:1199 softirqs last enabled at (6076): [] local_bh_disable include/linux/bottom_half.h:20 [inline] softirqs last enabled at (6076): [] rcu_read_lock_bh include/linux/rcupdate.h:838 [inline] softirqs last enabled at (6076): [] __dev_queue_xmit+0x272/0x37e0 net/core/dev.c:4399 softirqs last disabled at (6066): [] local_bh_disable include/linux/bottom_half.h:20 [inline] softirqs last disabled at (6066): [] rcu_read_lock_bh include/linux/rcupdate.h:838 [inline] softirqs last disabled at (6066): [] __dev_queue_xmit+0x272/0x37e0 net/core/dev.c:4399 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.1.4165/19111. stack backtrace: CPU: 1 PID: 19111 Comm: syz.1.4165 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026 Call Trace: <#DB> dump_stack_lvl+0x18c/0x250 lib/dump_stack.c:106 lock_acquire+0x2c2/0x420 kernel/locking/lockdep.c:5781 __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_map_delete_elem+0x19f/0x640 kernel/bpf/hashtab.c:1443 bpf_prog_a8e63e838209a5e2+0x49/0x4b bpf_dispatcher_nop_func include/linux/bpf.h:1226 [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:10584 __perf_event_overflow+0x461/0x660 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+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 25 12 20 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:ffffc9000bb3fb50 EFLAGS: 00040246 RAX: ffffffff846782cb RBX: 000000000000007f RCX: ffff8880285b3c00 RDX: 0000000000000002 RSI: 000000000000007f RDI: 0000000000000007 RBP: ffffc9000bb3fd70 R08: ffff8880285b3c00 R09: 0000000000000003 R10: 0000000000000002 R11: 0000000000000002 R12: 0000000000000000 R13: 0000000000000000 R14: fffffffffffffff8 R15: 00007465004c5047 bpf_prog_load+0xc9e/0x1610 kernel/bpf/syscall.c:2714 __sys_bpf+0x5ba/0x890 kernel/bpf/syscall.c:5494 __do_sys_bpf kernel/bpf/syscall.c:5598 [inline] __se_sys_bpf kernel/bpf/syscall.c:5596 [inline] __x64_sys_bpf+0x7c/0x90 kernel/bpf/syscall.c:5596 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:0x7fc87819e1d9 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:00007fc87904d028 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 RAX: ffffffffffffffda RBX: 00007fc878425fa0 RCX: 00007fc87819e1d9 RDX: 0000000000000094 RSI: 0000200000000400 RDI: 0000000000000005 RBP: 00007fc878235888 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fc878426038 R14: 00007fc878425fa0 R15: 00007ffc74ceaff8 ---------------- Code disassembly (best guess): 0: de e8 fsubrp %st,%st(0) 2: 25 12 20 fd 48 and $0x48fd2012,%eax 7: 83 fb 07 cmp $0x7,%ebx 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