BUG: unable to handle page fault for address: 0000000100040058 #PF: supervisor read access in kernel mode #PF: error_code(0x0000) - not-present page PGD 0 P4D 0 Oops: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 5467 Comm: sed Not tainted 6.5.0-rc7-next-20230822-syzkaller-g28c736b0e92e #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023 RIP: 0010:freelist_ptr_decode mm/slub.c:395 [inline] RIP: 0010:get_freepointer mm/slub.c:408 [inline] RIP: 0010:get_freepointer_safe mm/slub.c:435 [inline] RIP: 0010:__slab_alloc_node mm/slub.c:3377 [inline] RIP: 0010:slab_alloc_node mm/slub.c:3468 [inline] RIP: 0010:__kmem_cache_alloc_node+0x209/0x350 mm/slub.c:3517 Code: 25 28 00 00 00 0f 85 52 01 00 00 48 8d 65 d8 5b 41 5c 41 5d 41 5e 41 5f 5d c3 41 8b 44 24 28 49 8d 48 08 4c 89 c2 4d 8b 0c 24 <48> 8b 1c 07 48 89 f8 65 49 0f c7 09 0f 1f 00 49 31 d0 48 31 f8 49 RSP: 0018:ffffc900058b7930 EFLAGS: 00010246 RAX: 0000000000000010 RBX: 0000000000000d40 RCX: 000000000002d6f9 RDX: 000000000002d6f1 RSI: 0000000000000020 RDI: 0000000100040048 RBP: ffffc900058b7978 R08: 000000000002d6f1 R09: 0000000000040610 R10: ffffffff8ecdd1d7 R11: 0000000000000000 R12: ffff888012c41500 R13: 0000000000000d40 R14: 00000000ffffffff R15: 0000000000000016 FS: 00007fe593c3a380(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000100040058 CR3: 0000000069865000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __do_kmalloc_node mm/slab_common.c:1022 [inline] __kmalloc+0x4f/0x100 mm/slab_common.c:1036 kmalloc include/linux/slab.h:603 [inline] kzalloc include/linux/slab.h:720 [inline] tomoyo_encode2+0x100/0x3d0 security/tomoyo/realpath.c:45 tomoyo_encode+0x29/0x50 security/tomoyo/realpath.c:80 tomoyo_realpath_from_path+0x196/0x710 security/tomoyo/realpath.c:283 tomoyo_get_realpath security/tomoyo/file.c:151 [inline] tomoyo_path_perm+0x271/0x450 security/tomoyo/file.c:822 security_inode_getattr+0xf1/0x150 security/security.c:2153 vfs_getattr fs/stat.c:206 [inline] vfs_statx+0x180/0x430 fs/stat.c:281 vfs_fstatat+0x90/0xb0 fs/stat.c:315 __do_sys_newfstatat+0x98/0x110 fs/stat.c:485 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fe593d8e5f4 Code: 64 c7 00 09 00 00 00 83 c8 ff c3 48 89 f2 b9 00 01 00 00 48 89 fe bf 9c ff ff ff e9 00 00 00 00 41 89 ca b8 06 01 00 00 0f 05 <45> 31 c0 3d 00 f0 ff ff 76 10 48 8b 15 03 a8 0d 00 f7 d8 41 83 c8 RSP: 002b:00007fffd5db0628 EFLAGS: 00000202 ORIG_RAX: 0000000000000106 RAX: ffffffffffffffda RBX: 00007fe593e66460 RCX: 00007fe593d8e5f4 RDX: 00007fffd5db0630 RSI: 00007fe593e2b130 RDI: 0000000000000001 RBP: 00007fe593e6a5a0 R08: 0000000000000000 R09: e3f831349d1af96f R10: 0000000000001000 R11: 0000000000000202 R12: 000000000000000f R13: 000000000000000f R14: 00007fe593e6a5a0 R15: 0000000000000001 Modules linked in: CR2: 0000000100040058 ---[ end trace 0000000000000000 ]--- RIP: 0010:freelist_ptr_decode mm/slub.c:395 [inline] RIP: 0010:get_freepointer mm/slub.c:408 [inline] RIP: 0010:get_freepointer_safe mm/slub.c:435 [inline] RIP: 0010:__slab_alloc_node mm/slub.c:3377 [inline] RIP: 0010:slab_alloc_node mm/slub.c:3468 [inline] RIP: 0010:__kmem_cache_alloc_node+0x209/0x350 mm/slub.c:3517 Code: 25 28 00 00 00 0f 85 52 01 00 00 48 8d 65 d8 5b 41 5c 41 5d 41 5e 41 5f 5d c3 41 8b 44 24 28 49 8d 48 08 4c 89 c2 4d 8b 0c 24 <48> 8b 1c 07 48 89 f8 65 49 0f c7 09 0f 1f 00 49 31 d0 48 31 f8 49 RSP: 0018:ffffc900058b7930 EFLAGS: 00010246 RAX: 0000000000000010 RBX: 0000000000000d40 RCX: 000000000002d6f9 RDX: 000000000002d6f1 RSI: 0000000000000020 RDI: 0000000100040048 RBP: ffffc900058b7978 R08: 000000000002d6f1 R09: 0000000000040610 R10: ffffffff8ecdd1d7 R11: 0000000000000000 R12: ffff888012c41500 R13: 0000000000000d40 R14: 00000000ffffffff R15: 0000000000000016 FS: 00007fe593c3a380(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000100040058 CR3: 0000000069865000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 25 28 00 00 00 and $0x28,%eax 5: 0f 85 52 01 00 00 jne 0x15d b: 48 8d 65 d8 lea -0x28(%rbp),%rsp f: 5b pop %rbx 10: 41 5c pop %r12 12: 41 5d pop %r13 14: 41 5e pop %r14 16: 41 5f pop %r15 18: 5d pop %rbp 19: c3 ret 1a: 41 8b 44 24 28 mov 0x28(%r12),%eax 1f: 49 8d 48 08 lea 0x8(%r8),%rcx 23: 4c 89 c2 mov %r8,%rdx 26: 4d 8b 0c 24 mov (%r12),%r9 * 2a: 48 8b 1c 07 mov (%rdi,%rax,1),%rbx <-- trapping instruction 2e: 48 89 f8 mov %rdi,%rax 31: 65 49 0f c7 09 cmpxchg16b %gs:(%r9) 36: 0f 1f 00 nopl (%rax) 39: 49 31 d0 xor %rdx,%r8 3c: 48 31 f8 xor %rdi,%rax 3f: 49 rex.WB