================================ WARNING: inconsistent lock state syzkaller #0 Not tainted -------------------------------- inconsistent {INITIAL USE} -> {IN-NMI} usage. syz.2.3269/17541 [HC1[1]:SC0[0]:HE0:SE1] takes: ffff888050fc11a0 (&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: 836 hardirqs last enabled at (835): [] syscall_enter_from_user_mode+0x25/0x80 kernel/entry/common.c:117 hardirqs last disabled at (836): [] exc_debug_kernel arch/x86/kernel/traps.c:1063 [inline] hardirqs last disabled at (836): [] exc_debug+0x73/0x140 arch/x86/kernel/traps.c:1199 softirqs last enabled at (496): [] bpf_prog_load+0x1266/0x1670 kernel/bpf/syscall.c:2779 softirqs last disabled at (494): [] spin_lock_bh include/linux/spinlock.h:356 [inline] softirqs last disabled at (494): [] bpf_ksym_add+0x2d/0x340 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.2.3269/17541. stack backtrace: CPU: 1 PID: 17541 Comm: syz.2.3269 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:copy_iovec_from_user lib/iov_iter.c:1383 [inline] RIP: 0010:__import_iovec_ubuf lib/iov_iter.c:1449 [inline] RIP: 0010:__import_iovec+0x190/0x850 lib/iov_iter.c:1468 Code: 99 b6 fd 48 c7 03 00 00 00 00 4c 89 fb e9 d3 04 00 00 4d 85 e4 0f 88 5d 05 00 00 0f 01 cb 0f ae e8 4d 8b 7c 24 08 49 8b 1c 24 <31> ff 4c 89 fe e8 f6 65 5e fd 4d 85 ff 0f 88 4d 05 00 00 e8 a8 61 RSP: 0018:ffffc90012397aa0 EFLAGS: 00040206 RAX: 1ffff92002472fac RBX: 0000200000000000 RCX: 0000000000000002 RDX: ffff888031759e00 RSI: 0000000000000001 RDI: 0000000000000001 RBP: 0000000000000008 R08: ffffc90012397d60 R09: ffffc90012397e30 R10: ffffc90012397e70 R11: fffff52002472fd0 R12: 0000200000000300 R13: dffffc0000000000 R14: ffffc90012397cc0 R15: 000000000000002e import_iovec+0x73/0xa0 lib/iov_iter.c:1535 copy_msghdr_from_user net/socket.c:2531 [inline] sendmsg_copy_msghdr net/socket.c:2625 [inline] ___sys_sendmsg+0x256/0x360 net/socket.c:2644 __sys_sendmsg net/socket.c:2677 [inline] __do_sys_sendmsg net/socket.c:2686 [inline] __se_sys_sendmsg+0x1c2/0x2b0 net/socket.c:2684 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:0x7fe70259cdd9 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:00007fe7033ef028 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007fe702816090 RCX: 00007fe70259cdd9 RDX: 0000000000000000 RSI: 0000200000000600 RDI: 000000000000000c RBP: 00007fe702632d69 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fe702816128 R14: 00007fe702816090 R15: 00007fffa9931b48 ---------------- Code disassembly (best guess): 0: 99 cltd 1: b6 fd mov $0xfd,%dh 3: 48 c7 03 00 00 00 00 movq $0x0,(%rbx) a: 4c 89 fb mov %r15,%rbx d: e9 d3 04 00 00 jmp 0x4e5 12: 4d 85 e4 test %r12,%r12 15: 0f 88 5d 05 00 00 js 0x578 1b: 0f 01 cb stac 1e: 0f ae e8 lfence 21: 4d 8b 7c 24 08 mov 0x8(%r12),%r15 26: 49 8b 1c 24 mov (%r12),%rbx * 2a: 31 ff xor %edi,%edi <-- trapping instruction 2c: 4c 89 fe mov %r15,%rsi 2f: e8 f6 65 5e fd call 0xfd5e662a 34: 4d 85 ff test %r15,%r15 37: 0f 88 4d 05 00 00 js 0x58a 3d: e8 .byte 0xe8 3e: a8 61 test $0x61,%al