Oops: general protection fault, probably for non-canonical address 0xdffffc0000000004: 0000 [#1] PREEMPT SMP KASAN PTI KASAN: null-ptr-deref in range [0x0000000000000020-0x0000000000000027] CPU: 0 UID: 0 PID: 14481 Comm: syz.7.2214 Not tainted 6.13.0-rc3-syzkaller-00136-g8faabc041a00 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/25/2024 RIP: 0010:tomoyo_get_name+0xed/0x490 security/tomoyo/memory.c:167 Code: 48 8b 98 00 b0 51 9a 48 39 dd 0f 84 53 01 00 00 49 bd 00 00 00 00 00 fc ff df e8 be 37 47 fd 48 8d 7b 20 48 89 f8 48 c1 e8 03 <42> 0f b6 04 28 84 c0 74 08 3c 03 0f 8e 00 03 00 00 44 8b 7b 20 44 RSP: 0018:ffffc900043a7a48 EFLAGS: 00010202 RAX: 0000000000000004 RBX: 0000000000000000 RCX: ffffc900157ab000 RDX: 0000000000080000 RSI: ffffffff84521732 RDI: 0000000000000020 RBP: ffffffff9a51be90 R08: 0000000000000004 R09: 0000000000000000 R10: 000000005b06cb1c R11: 0000000000000002 R12: 000000005b06cb1c R13: dffffc0000000000 R14: ffff888033e36000 R15: 0000000000000000 FS: 00007f49ad9946c0(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fb3b86a56c0 CR3: 000000001decc000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: tomoyo_assign_domain+0x311/0x830 security/tomoyo/domain.c:569 tomoyo_find_next_domain+0x6eb/0x2070 security/tomoyo/domain.c:849 tomoyo_bprm_check_security security/tomoyo/tomoyo.c:102 [inline] tomoyo_bprm_check_security+0x12e/0x1d0 security/tomoyo/tomoyo.c:92 security_bprm_check+0x1b9/0x1e0 security/security.c:1296 search_binary_handler fs/exec.c:1736 [inline] exec_binprm fs/exec.c:1790 [inline] bprm_execve fs/exec.c:1842 [inline] bprm_execve+0x642/0x19b0 fs/exec.c:1818 do_execveat_common.isra.0+0x4f1/0x630 fs/exec.c:1949 do_execve fs/exec.c:2023 [inline] __do_sys_execve fs/exec.c:2099 [inline] __se_sys_execve fs/exec.c:2094 [inline] __x64_sys_execve+0x8c/0xb0 fs/exec.c:2094 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f49acb85d29 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f49ad994038 EFLAGS: 00000246 ORIG_RAX: 000000000000003b RAX: ffffffffffffffda RBX: 00007f49acd75fa0 RCX: 00007f49acb85d29 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000080 RBP: 00007f49acc01aa8 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f49acd75fa0 R15: 00007ffc98f235b8 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:tomoyo_get_name+0xed/0x490 security/tomoyo/memory.c:167 Code: 48 8b 98 00 b0 51 9a 48 39 dd 0f 84 53 01 00 00 49 bd 00 00 00 00 00 fc ff df e8 be 37 47 fd 48 8d 7b 20 48 89 f8 48 c1 e8 03 <42> 0f b6 04 28 84 c0 74 08 3c 03 0f 8e 00 03 00 00 44 8b 7b 20 44 RSP: 0018:ffffc900043a7a48 EFLAGS: 00010202 RAX: 0000000000000004 RBX: 0000000000000000 RCX: ffffc900157ab000 RDX: 0000000000080000 RSI: ffffffff84521732 RDI: 0000000000000020 RBP: ffffffff9a51be90 R08: 0000000000000004 R09: 0000000000000000 R10: 000000005b06cb1c R11: 0000000000000002 R12: 000000005b06cb1c R13: dffffc0000000000 R14: ffff888033e36000 R15: 0000000000000000 FS: 00007f49ad9946c0(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2fcccff8 CR3: 000000001decc000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 48 8b 98 00 b0 51 9a mov -0x65ae5000(%rax),%rbx 7: 48 39 dd cmp %rbx,%rbp a: 0f 84 53 01 00 00 je 0x163 10: 49 bd 00 00 00 00 00 movabs $0xdffffc0000000000,%r13 17: fc ff df 1a: e8 be 37 47 fd call 0xfd4737dd 1f: 48 8d 7b 20 lea 0x20(%rbx),%rdi 23: 48 89 f8 mov %rdi,%rax 26: 48 c1 e8 03 shr $0x3,%rax * 2a: 42 0f b6 04 28 movzbl (%rax,%r13,1),%eax <-- trapping instruction 2f: 84 c0 test %al,%al 31: 74 08 je 0x3b 33: 3c 03 cmp $0x3,%al 35: 0f 8e 00 03 00 00 jle 0x33b 3b: 44 8b 7b 20 mov 0x20(%rbx),%r15d 3f: 44 rex.R