================================ WARNING: inconsistent lock state syzkaller #0 Not tainted -------------------------------- inconsistent {INITIAL USE} -> {IN-NMI} usage. syz.3.1549/11406 [HC1[1]:SC0[0]:HE0:SE1] takes: ffff888030283158 (&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:5756 __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:1224 [inline] __bpf_prog_run include/linux/filter.h:606 [inline] bpf_prog_run include/linux/filter.h:624 [inline] bpf_overflow_handler+0x43f/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: 2246 hardirqs last enabled at (2245): [] mod_memcg_state include/linux/memcontrol.h:986 [inline] hardirqs last enabled at (2245): [] pcpu_memcg_post_alloc_hook+0x282/0x3f0 mm/percpu.c:1655 hardirqs last disabled at (2246): [] exc_debug_kernel arch/x86/kernel/traps.c:1063 [inline] hardirqs last disabled at (2246): [] exc_debug+0x73/0x140 arch/x86/kernel/traps.c:1199 softirqs last enabled at (1692): [] bpf_prog_load+0x1204/0x1610 kernel/bpf/syscall.c:2779 softirqs last disabled at (1690): [] spin_lock_bh include/linux/spinlock.h:356 [inline] softirqs last disabled at (1690): [] bpf_ksym_add+0x2c/0x330 kernel/bpf/core.c:656 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.1549/11406. stack backtrace: CPU: 1 PID: 11406 Comm: syz.3.1549 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/16/2026 Call Trace: <#DB> dump_stack_lvl+0x18c/0x250 lib/dump_stack.c:106 lock_acquire+0x2c2/0x420 kernel/locking/lockdep.c:5747 __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:1224 [inline] __bpf_prog_run include/linux/filter.h:606 [inline] bpf_prog_run include/linux/filter.h:624 [inline] bpf_overflow_handler+0x43f/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 85 a5 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:ffffc9000b69fb50 EFLAGS: 00040246 RAX: ffffffff8466ea0b RBX: 000000000000007f RCX: ffff888018bd8000 RDX: 0000000000000002 RSI: 000000000000007f RDI: 0000000000000007 RBP: ffffc9000b69fd70 R08: ffff888018bd8000 R09: 0000000000000003 R10: 0000000000000002 R11: 0000000000000002 R12: 0000000000000000 R13: 0000000000000000 R14: fffffffffffffff8 R15: 656c6c616b7a7973 bpf_prog_load+0xc9e/0x1610 kernel/bpf/syscall.c:2714 __sys_bpf+0x5ba/0x890 kernel/bpf/syscall.c:5491 __do_sys_bpf kernel/bpf/syscall.c:5595 [inline] __se_sys_bpf kernel/bpf/syscall.c:5593 [inline] __x64_sys_bpf+0x7c/0x90 kernel/bpf/syscall.c:5593 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:0x7f5080f9e159 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:00007f5081eef028 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 RAX: ffffffffffffffda RBX: 00007f5081225fa0 RCX: 00007f5080f9e159 RDX: 0000000000000094 RSI: 0000200000000600 RDI: 0000000000000005 RBP: 00007f508103506b R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f5081226038 R14: 00007f5081225fa0 R15: 00007ffea7ddafd8 ---------------- Code disassembly (best guess), 1 bytes skipped: 0: e8 85 a5 20 fd call 0xfd20a58a 5: 48 83 fb 07 cmp $0x7,%rbx 9: 0f 86 9d 00 00 00 jbe 0xac f: 49 c7 c6 f8 ff ff ff mov $0xfffffffffffffff8,%r14 16: 45 31 e4 xor %r12d,%r12d 19: 4c 89 3c 24 mov %r15,(%rsp) 1d: 4c 89 6c 24 08 mov %r13,0x8(%rsp) 22: 4d 89 e5 mov %r12,%r13 25: 4f 8b 3c 27 mov (%r15,%r12,1),%r15 * 29: 48 b8 ff fe fe fe fe movabs $0xfefefefefefefeff,%rax <-- trapping instruction 30: fe fe fe 33: 4d 8d 24 07 lea (%r15,%rax,1),%r12 37: 4c 89 fd mov %r15,%rbp 3a: 48 f7 d5 not %rbp 3d: 48 rex.W 3e: b8 .byte 0xb8