================================ WARNING: inconsistent lock state syzkaller #0 Not tainted -------------------------------- inconsistent {INITIAL USE} -> {IN-NMI} usage. syz.9.511/9026 [HC1[1]:SC0[0]:HE0:SE1] takes: ffffe8ffffd7b0d8 (&loc_l->lock){....}-{2:2}, at: bpf_common_lru_push_free kernel/bpf/bpf_lru_list.c:514 [inline] ffffe8ffffd7b0d8 (&loc_l->lock){....}-{2:2}, at: bpf_lru_push_free+0x33b/0xbb0 kernel/bpf/bpf_lru_list.c:553 {INITIAL USE} state was registered at: lock_acquire+0xf0/0x2e0 kernel/locking/lockdep.c:5868 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:132 [inline] _raw_spin_lock_irqsave+0x40/0x60 kernel/locking/spinlock.c:162 bpf_common_lru_pop_free kernel/bpf/bpf_lru_list.c:440 [inline] bpf_lru_pop_free+0x1a1/0x1ca0 kernel/bpf/bpf_lru_list.c:496 prealloc_lru_pop kernel/bpf/hashtab.c:301 [inline] htab_lru_map_update_elem+0x122/0x870 kernel/bpf/hashtab.c:1303 bpf_map_update_value+0x750/0x920 kernel/bpf/syscall.c:297 generic_map_update_batch+0x6ea/0x990 kernel/bpf/syscall.c:2032 bpf_map_do_batch+0x39b/0x630 kernel/bpf/syscall.c:5669 __sys_bpf+0x7c1/0x950 kernel/bpf/syscall.c:-1 __do_sys_bpf kernel/bpf/syscall.c:6341 [inline] __se_sys_bpf kernel/bpf/syscall.c:6339 [inline] __x64_sys_bpf+0x7c/0x90 kernel/bpf/syscall.c:6339 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x14d/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f irq event stamp: 46116 hardirqs last enabled at (46115): [] class_irqsave_destructor include/linux/irqflags.h:266 [inline] hardirqs last enabled at (46115): [] perf_swevent_event+0x6e8/0x7e0 kernel/events/core.c:10907 hardirqs last disabled at (46116): [] exc_debug_kernel+0x60/0x140 arch/x86/kernel/traps.c:1233 softirqs last enabled at (45992): [] local_bh_disable include/linux/bottom_half.h:20 [inline] softirqs last enabled at (45992): [] __alloc_skb+0x186/0x7d0 net/core/skbuff.c:695 softirqs last disabled at (45988): [] local_bh_disable include/linux/bottom_half.h:20 [inline] softirqs last disabled at (45988): [] __alloc_skb+0x186/0x7d0 net/core/skbuff.c:695 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(&loc_l->lock); lock(&loc_l->lock); *** DEADLOCK *** 2 locks held by syz.9.511/9026: #0: ffff88803558ad90 (&kcm->tx_mutex){+.+.}-{4:4}, at: kcm_sendmsg+0x1b8/0x2b60 net/kcm/kcmsock.c:759 #1: ffff88803558a920 (sk_lock-AF_KCM){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1709 [inline] #1: ffff88803558a920 (sk_lock-AF_KCM){+.+.}-{0:0}, at: kcm_sendmsg+0x1c2/0x2b60 net/kcm/kcmsock.c:760 stack backtrace: CPU: 1 UID: 0 PID: 9026 Comm: syz.9.511 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2026 Call Trace: <#DB> dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 print_usage_bug+0x28b/0x2e0 kernel/locking/lockdep.c:4042 lock_acquire+0x1b8/0x2e0 kernel/locking/lockdep.c:5859 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:132 [inline] _raw_spin_lock_irqsave+0x40/0x60 kernel/locking/spinlock.c:162 bpf_common_lru_push_free kernel/bpf/bpf_lru_list.c:514 [inline] bpf_lru_push_free+0x33b/0xbb0 kernel/bpf/bpf_lru_list.c:553 htab_lru_push_free kernel/bpf/hashtab.c:1271 [inline] htab_lru_map_delete_elem+0x3d3/0x440 kernel/bpf/hashtab.c:1561 bpf_prog_464bc2be3fc7c272+0x43/0x4b bpf_dispatcher_nop_func include/linux/bpf.h:1402 [inline] __bpf_prog_run include/linux/filter.h:723 [inline] bpf_prog_run include/linux/filter.h:730 [inline] bpf_overflow_handler kernel/events/core.c:10605 [inline] __perf_event_overflow+0x3b7/0xec0 kernel/events/core.c:10704 perf_swevent_overflow kernel/events/core.c:10845 [inline] perf_swevent_event+0x410/0x7e0 kernel/events/core.c:-1 perf_bp_event+0x318/0x430 kernel/events/core.c:11737 hw_breakpoint_handler arch/x86/kernel/hw_breakpoint.c:556 [inline] hw_breakpoint_exceptions_notify+0x243/0x680 arch/x86/kernel/hw_breakpoint.c:587 notifier_call_chain+0x1be/0x400 kernel/notifier.c:85 atomic_notifier_call_chain+0xda/0x180 kernel/notifier.c:223 notify_die+0x144/0x1a0 kernel/notifier.c:588 notify_debug+0x2e/0x50 arch/x86/kernel/traps.c:1208 exc_debug_kernel+0xb1/0x140 arch/x86/kernel/traps.c:1270 asm_exc_debug+0x1e/0x40 arch/x86/include/asm/idtentry.h:654 RIP: 0010:rep_movs_alternative+0x4a/0x90 arch/x86/lib/copy_user_64.S:74 Code: cc cc cc 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 48 8b 06 48 89 07 48 83 c6 08 48 83 c7 08 83 e9 08 74 db 83 f9 08 73 e8 eb c5 a4 c3 cc cc cc cc 48 8b 06 48 89 07 48 8d 47 08 48 83 e0 f8 48 RSP: 0018:ffffc90005707618 EFLAGS: 00050206 RAX: 00007ffffffff001 RBX: ffff88807e378000 RCX: 0000000000007d60 RDX: 0000000000000001 RSI: 0000200000000320 RDI: ffff88807e3782a0 RBP: ffffc90005707770 R08: ffff88807e37ffff R09: 1ffff1100fc6ffff R10: dffffc0000000000 R11: ffffed100fc70000 R12: ffffc90005707df8 R13: 0000200000000080 R14: 0000000000008000 R15: 1ffff92000ae0fbf copy_user_generic arch/x86/include/asm/uaccess_64.h:126 [inline] raw_copy_from_user arch/x86/include/asm/uaccess_64.h:141 [inline] copy_from_user_iter lib/iov_iter.c:67 [inline] iterate_ubuf include/linux/iov_iter.h:30 [inline] iterate_and_advance2 include/linux/iov_iter.h:302 [inline] iterate_and_advance include/linux/iov_iter.h:330 [inline] __copy_from_iter lib/iov_iter.c:261 [inline] _copy_from_iter+0x21b/0x1670 lib/iov_iter.c:272 copy_from_iter include/linux/uio.h:228 [inline] copy_from_iter_full include/linux/uio.h:245 [inline] skb_do_copy_data_nocache include/net/sock.h:2300 [inline] skb_copy_to_page_nocache include/net/sock.h:2326 [inline] kcm_sendmsg+0xe0c/0x2b60 net/kcm/kcmsock.c:860 sock_sendmsg_nosec net/socket.c:727 [inline] __sock_sendmsg net/socket.c:742 [inline] ____sys_sendmsg+0xa68/0xad0 net/socket.c:2592 ___sys_sendmsg+0x2a5/0x360 net/socket.c:2646 __sys_sendmsg net/socket.c:2678 [inline] __do_sys_sendmsg net/socket.c:2683 [inline] __se_sys_sendmsg net/socket.c:2681 [inline] __x64_sys_sendmsg+0x1bd/0x2a0 net/socket.c:2681 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x14d/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fbbdf19c799 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:00007fbbdffc7028 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007fbbdf415fa0 RCX: 00007fbbdf19c799 RDX: 0000000000048000 RSI: 0000200000000140 RDI: 000000000000000c RBP: 00007fbbdf232bd9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fbbdf416038 R14: 00007fbbdf415fa0 R15: 00007ffcaa1176a8 ---------------- Code disassembly (best guess): 0: cc int3 1: cc int3 2: cc int3 3: 66 2e 0f 1f 84 00 00 cs nopw 0x0(%rax,%rax,1) a: 00 00 00 d: 0f 1f 00 nopl (%rax) 10: 48 8b 06 mov (%rsi),%rax 13: 48 89 07 mov %rax,(%rdi) 16: 48 83 c6 08 add $0x8,%rsi 1a: 48 83 c7 08 add $0x8,%rdi 1e: 83 e9 08 sub $0x8,%ecx 21: 74 db je 0xfffffffe 23: 83 f9 08 cmp $0x8,%ecx 26: 73 e8 jae 0x10 28: eb c5 jmp 0xffffffef * 2a: f3 a4 rep movsb %ds:(%rsi),%es:(%rdi) <-- trapping instruction 2c: c3 ret 2d: cc int3 2e: cc int3 2f: cc int3 30: cc int3 31: 48 8b 06 mov (%rsi),%rax 34: 48 89 07 mov %rax,(%rdi) 37: 48 8d 47 08 lea 0x8(%rdi),%rax 3b: 48 83 e0 f8 and $0xfffffffffffffff8,%rax 3f: 48 rex.W