================================ WARNING: inconsistent lock state syzkaller #0 Not tainted -------------------------------- inconsistent {INITIAL USE} -> {IN-NMI} usage. syz.0.19/5870 [HC1[1]:SC0[0]:HE0:SE1] takes: ffff888034b69038 (rhashtable_bucket){..-.}-{0:0}, at: rht_lock+0x8b/0x180 include/linux/rhashtable.h:331 {INITIAL USE} state was registered at: lock_acquire+0x106/0x350 kernel/locking/lockdep.c:5868 rht_lock+0xa3/0x180 include/linux/rhashtable.h:331 __rhashtable_insert_fast include/linux/rhashtable.h:784 [inline] rhashtable_insert_fast include/linux/rhashtable.h:887 [inline] pidfs_add_pid+0x325/0xc50 fs/pidfs.c:178 alloc_pid+0xe7a/0x1310 kernel/pid.c:338 copy_process+0x20ea/0x4390 kernel/fork.c:2305 kernel_clone+0x2d7/0x940 kernel/fork.c:2748 user_mode_thread+0x110/0x180 kernel/fork.c:2824 rest_init+0x23/0x300 init/main.c:682 start_kernel+0x392/0x3e0 init/main.c:1175 x86_64_start_reservations+0x24/0x30 arch/x86/kernel/head64.c:310 x86_64_start_kernel+0x137/0x1b0 arch/x86/kernel/head64.c:291 common_startup_64+0x13e/0x157 irq event stamp: 998 hardirqs last enabled at (997): [] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:178 [inline] hardirqs last enabled at (997): [] _raw_spin_unlock_irqrestore+0x30/0x80 kernel/locking/spinlock.c:198 hardirqs last disabled at (998): [] exc_debug_kernel+0x60/0x140 arch/x86/kernel/traps.c:1235 softirqs last enabled at (910): [] spin_unlock_bh include/linux/spinlock.h:396 [inline] softirqs last enabled at (910): [] bpf_map_get_fd_by_id+0x1f9/0x320 kernel/bpf/syscall.c:4999 softirqs last disabled at (908): [] spin_lock_bh include/linux/spinlock.h:348 [inline] softirqs last disabled at (908): [] bpf_map_get_fd_by_id+0x126/0x320 kernel/bpf/syscall.c:4993 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(rhashtable_bucket); lock(rhashtable_bucket); *** DEADLOCK *** no locks held by syz.0.19/5870. stack backtrace: CPU: 1 UID: 0 PID: 5870 Comm: syz.0.19 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/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+0x1cc/0x350 kernel/locking/lockdep.c:5859 rht_lock+0xa3/0x180 include/linux/rhashtable.h:331 __rhashtable_remove_fast_one include/linux/rhashtable.h:1065 [inline] __rhashtable_remove_fast include/linux/rhashtable.h:1146 [inline] rhashtable_remove_fast include/linux/rhashtable.h:1175 [inline] rhtab_delete_elem+0x404/0x1b30 kernel/bpf/hashtab.c:2954 rhtab_map_delete_elem+0xe2/0x190 kernel/bpf/hashtab.c:2985 bpf_prog_a4f1e23443ac9f8e+0x4e/0x56 bpf_dispatcher_nop_func include/linux/bpf.h:1454 [inline] __bpf_prog_run include/linux/filter.h:724 [inline] bpf_prog_run include/linux/filter.h:731 [inline] bpf_overflow_handler kernel/events/core.c:10671 [inline] __perf_event_overflow+0x3b9/0xea0 kernel/events/core.c:10770 perf_swevent_overflow kernel/events/core.c:10911 [inline] perf_swevent_event+0x439/0x810 kernel/events/core.c:-1 perf_bp_event+0x318/0x430 kernel/events/core.c:11812 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+0x1a5/0x3d0 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:1210 exc_debug_kernel+0xb1/0x140 arch/x86/kernel/traps.c:1272 asm_exc_debug+0x1e/0x40 arch/x86/include/asm/idtentry.h:631 RIP: 0010:rep_movs_alternative+0x4c/0xa0 arch/x86/lib/copy_user_64.S:75 Code: 00 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 f3 a4 cc cc cc cc 48 8b 06 48 89 07 48 8d 47 08 48 83 e0 f8 48 29 f8 RSP: 0018:ffffc90004c7fa30 EFLAGS: 00040202 RAX: 00007ffffffff001 RBX: 0000000000000120 RCX: 0000000000000000 RDX: 0000000000000001 RSI: 0000200000000320 RDI: ffffc90003a23180 RBP: 0000000000000000 R08: ffffc90003a2317f R09: 1ffff9200074462f R10: dffffc0000000000 R11: fffff52000744630 R12: dffffc0000000000 R13: ffffc90004c7fb40 R14: ffffc90003a23060 R15: 0000200000000200 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] _inline_copy_from_user include/linux/uaccess.h:185 [inline] _copy_from_user+0x7a/0xb0 lib/usercopy.c:18 copy_from_user include/linux/uaccess.h:222 [inline] copy_from_bpfptr_offset include/linux/bpfptr.h:53 [inline] copy_from_bpfptr+0x5c/0x90 include/linux/bpfptr.h:59 bpf_prog_load+0xb92/0x1c00 kernel/bpf/syscall.c:3123 __sys_bpf+0xd0d/0xd90 kernel/bpf/syscall.c:6418 __do_sys_bpf kernel/bpf/syscall.c:6537 [inline] __se_sys_bpf kernel/bpf/syscall.c:6534 [inline] __x64_sys_bpf+0xba/0xd0 kernel/bpf/syscall.c:6534 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x174/0x580 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f73ccd9e019 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:00007f73cdb97028 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 RAX: ffffffffffffffda RBX: 00007f73cd025fa0 RCX: 00007f73ccd9e019 RDX: 0000000000000094 RSI: 0000200000000640 RDI: 0000000000000005 RBP: 00007f73cce3500c R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f73cd026038 R14: 00007f73cd025fa0 R15: 00007fff49aa5648 ---------------- Code disassembly (best guess): 0: 00 66 2e add %ah,0x2e(%rsi) 3: 0f 1f 84 00 00 00 00 nopl 0x0(%rax,%rax,1) a: 00 b: 0f 1f 00 nopl (%rax) e: 48 8b 06 mov (%rsi),%rax 11: 48 89 07 mov %rax,(%rdi) 14: 48 83 c6 08 add $0x8,%rsi 18: 48 83 c7 08 add $0x8,%rdi 1c: 83 e9 08 sub $0x8,%ecx 1f: 74 db je 0xfffffffc 21: 83 f9 08 cmp $0x8,%ecx 24: 73 e8 jae 0xe 26: eb c5 jmp 0xffffffed 28: f3 a4 rep movsb %ds:(%rsi),%es:(%rdi) * 2a: c3 ret <-- trapping instruction 2b: cc int3 2c: cc int3 2d: cc int3 2e: cc int3 2f: 48 8b 06 mov (%rsi),%rax 32: 48 89 07 mov %rax,(%rdi) 35: 48 8d 47 08 lea 0x8(%rdi),%rax 39: 48 83 e0 f8 and $0xfffffffffffffff8,%rax 3d: 48 29 f8 sub %rdi,%rax