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: 14856 Comm: udevd Not tainted 6.13.0-rc3-syzkaller-00289-g48f506ad0b68 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/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 1e 2f 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:ffffc9000e06f818 EFLAGS: 00010202
RAX: 0000000000000004 RBX: 0000000000000000 RCX: ffffffff8452205d
RDX: ffff888024a6da00 RSI: ffffffff84522032 RDI: 0000000000000020
RBP: ffffffff9a51b270 R08: 0000000000000004 R09: 0000000000000000
R10: 0000000053dc1bb4 R11: 00000000000a2001 R12: 0000000053dc1bb4
R13: dffffc0000000000 R14: ffff88802460ec69 R15: 0000000000000000
FS: 00007fcc06db0c80(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fecb113a261 CR3: 000000007eaa8000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
tomoyo_write_env security/tomoyo/environ.c:102 [inline]
tomoyo_write_misc+0x120/0x1e0 security/tomoyo/environ.c:121
tomoyo_write_domain2+0x129/0x1f0 security/tomoyo/common.c:1144
tomoyo_add_entry security/tomoyo/common.c:2034 [inline]
tomoyo_supervisor+0x4ad/0x1180 security/tomoyo/common.c:2095
tomoyo_audit_env_log security/tomoyo/environ.c:36 [inline]
tomoyo_env_perm+0x193/0x210 security/tomoyo/environ.c:63
tomoyo_environ security/tomoyo/domain.c:672 [inline]
tomoyo_find_next_domain+0xe6c/0x2070 security/tomoyo/domain.c:881
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:0x7fcc068fcef7
Code: ba 0f 00 5b 5d 41 5c 41 5d 41 5e 41 5f e9 63 d8 fb ff 48 83 c4 18 5b 5d 41 5c 41 5d 41 5e 41 5f c3 66 90 b8 3b 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 01 3f 0f 00 f7 d8 64 89 01 48
RSP: 002b:00007ffd776e5818 EFLAGS: 00000246 ORIG_RAX: 000000000000003b
RAX: ffffffffffffffda RBX: 00007fcc06db0ae0 RCX: 00007fcc068fcef7
RDX: 0000564cbc2eaf20 RSI: 00007ffd776e5918 RDI: 00007ffd776e6118
RBP: 0000000000000009 R08: 0000000000000000 R09: 0000000000000002
R10: 0000000000000008 R11: 0000000000000246 R12: 000000000000000e
R13: 000000000000000b R14: 0000564c9b677f18 R15: 00007ffd776e7a58
</TASK>
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 1e 2f 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:ffffc9000e06f818 EFLAGS: 00010202
RAX: 0000000000000004 RBX: 0000000000000000 RCX: ffffffff8452205d
RDX: ffff888024a6da00 RSI: ffffffff84522032 RDI: 0000000000000020
RBP: ffffffff9a51b270 R08: 0000000000000004 R09: 0000000000000000
R10: 0000000053dc1bb4 R11: 00000000000a2001 R12: 0000000053dc1bb4
R13: dffffc0000000000 R14: ffff88802460ec69 R15: 0000000000000000
FS: 00007fcc06db0c80(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f765e348178 CR3: 000000007eaa8000 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 1e 2f 47 fd call 0xfd472f3d
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