Oops: general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] SMP KASAN PTI KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007] CPU: 1 UID: 0 PID: 6092 Comm: udevd Not tainted 6.17.0-rc1-syzkaller-g8f5ae30d69d7 #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025 RIP: 0010:___pcpu_freelist_pop kernel/bpf/percpu_freelist.c:114 [inline] RIP: 0010:__pcpu_freelist_pop+0x6b7/0x8c0 kernel/bpf/percpu_freelist.c:125 Code: 10 48 3b 8c 24 80 00 00 00 0f 85 b4 01 00 00 48 8d 65 d8 5b 41 5c 41 5d 41 5e 41 5f 5d c3 cc cc cc cc cc 48 89 f8 48 c1 e8 03 <80> 3c 18 00 48 89 7c 24 20 74 0a e8 49 3f 41 00 48 8b 7c 24 20 48 RSP: 0018:ffffc9000af37180 EFLAGS: 00010046 RAX: 0000000000000000 RBX: dffffc0000000000 RCX: ffffe8ffffd69b30 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000002 RBP: ffffc9000af37250 R08: 0000000000000003 R09: 0000000000000004 R10: dffffc0000000000 R11: fffff520015e6e3c R12: 1ffffd1ffffad365 R13: ffffe8ffffd69b28 R14: 0000000000000001 R15: 0000000000000000 FS: 00007f3439155880(0000) GS:ffff888125d1c000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b33509ff8 CR3: 0000000031e72000 CR4: 00000000003526f0 Call Trace: pcpu_freelist_pop+0xca/0x170 kernel/bpf/percpu_freelist.c:134 __bpf_get_stackid+0x574/0xcf0 kernel/bpf/stackmap.c:259 ____bpf_get_stackid_raw_tp kernel/trace/bpf_trace.c:1810 [inline] bpf_get_stackid_raw_tp+0x196/0x210 kernel/trace/bpf_trace.c:1799 bpf_prog_b724608cae728045+0x27/0x2f bpf_dispatcher_nop_func include/linux/bpf.h:1332 [inline] __bpf_prog_run include/linux/filter.h:718 [inline] bpf_prog_run include/linux/filter.h:725 [inline] __bpf_trace_run kernel/trace/bpf_trace.c:2257 [inline] bpf_trace_run2+0x284/0x4b0 kernel/trace/bpf_trace.c:2298 __do_trace_kfree include/trace/events/kmem.h:94 [inline] trace_kfree include/trace/events/kmem.h:94 [inline] kfree+0x3a0/0x440 mm/slub.c:4866 tomoyo_realpath_from_path+0x598/0x5d0 security/tomoyo/realpath.c:286 tomoyo_get_realpath security/tomoyo/file.c:151 [inline] tomoyo_check_open_permission+0x1c1/0x3b0 security/tomoyo/file.c:771 security_file_open+0xb1/0x270 security/security.c:3144 do_dentry_open+0x384/0x13f0 fs/open.c:942 vfs_open+0x3b/0x340 fs/open.c:1095 do_open fs/namei.c:3887 [inline] path_openat+0x2ee5/0x3830 fs/namei.c:4046 do_filp_open+0x1fa/0x410 fs/namei.c:4073 do_sys_openat2+0x121/0x1c0 fs/open.c:1435 do_sys_open fs/open.c:1450 [inline] __do_sys_openat fs/open.c:1466 [inline] __se_sys_openat fs/open.c:1461 [inline] __x64_sys_openat+0x138/0x170 fs/open.c:1461 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f34391e1407 Code: 48 89 fa 4c 89 df e8 38 aa 00 00 8b 93 08 03 00 00 59 5e 48 83 f8 fc 74 1a 5b c3 0f 1f 84 00 00 00 00 00 48 8b 44 24 10 0f 05 <5b> c3 0f 1f 80 00 00 00 00 83 e2 39 83 fa 08 75 de e8 23 ff ff ff RSP: 002b:00007fff9f704680 EFLAGS: 00000202 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007f3439155880 RCX: 00007f34391e1407 RDX: 00000000000a0800 RSI: 000055ae30094e60 RDI: ffffffffffffff9c RBP: 000055ae30085910 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000202 R12: 000055ae30099bc0 R13: 000055ae300931b0 R14: 0000000000000000 R15: 000055ae30099bc0 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:___pcpu_freelist_pop kernel/bpf/percpu_freelist.c:114 [inline] RIP: 0010:__pcpu_freelist_pop+0x6b7/0x8c0 kernel/bpf/percpu_freelist.c:125 Code: 10 48 3b 8c 24 80 00 00 00 0f 85 b4 01 00 00 48 8d 65 d8 5b 41 5c 41 5d 41 5e 41 5f 5d c3 cc cc cc cc cc 48 89 f8 48 c1 e8 03 <80> 3c 18 00 48 89 7c 24 20 74 0a e8 49 3f 41 00 48 8b 7c 24 20 48 RSP: 0018:ffffc9000af37180 EFLAGS: 00010046 RAX: 0000000000000000 RBX: dffffc0000000000 RCX: ffffe8ffffd69b30 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000002 RBP: ffffc9000af37250 R08: 0000000000000003 R09: 0000000000000004 R10: dffffc0000000000 R11: fffff520015e6e3c R12: 1ffffd1ffffad365 R13: ffffe8ffffd69b28 R14: 0000000000000001 R15: 0000000000000000 FS: 00007f3439155880(0000) GS:ffff888125d1c000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b33509ff8 CR3: 0000000031e72000 CR4: 00000000003526f0 ---------------- Code disassembly (best guess): 0: 10 48 3b adc %cl,0x3b(%rax) 3: 8c 24 80 mov %fs,(%rax,%rax,4) 6: 00 00 add %al,(%rax) 8: 00 0f add %cl,(%rdi) a: 85 b4 01 00 00 48 8d test %esi,-0x72b80000(%rcx,%rax,1) 11: 65 d8 5b 41 fcomps %gs:0x41(%rbx) 15: 5c pop %rsp 16: 41 5d pop %r13 18: 41 5e pop %r14 1a: 41 5f pop %r15 1c: 5d pop %rbp 1d: c3 ret 1e: cc int3 1f: cc int3 20: cc int3 21: cc int3 22: cc int3 23: 48 89 f8 mov %rdi,%rax 26: 48 c1 e8 03 shr $0x3,%rax * 2a: 80 3c 18 00 cmpb $0x0,(%rax,%rbx,1) <-- trapping instruction 2e: 48 89 7c 24 20 mov %rdi,0x20(%rsp) 33: 74 0a je 0x3f 35: e8 49 3f 41 00 call 0x413f83 3a: 48 8b 7c 24 20 mov 0x20(%rsp),%rdi 3f: 48 rex.W