Oops: general protection fault, probably for non-canonical address 0xdffffc0000000003: 0000 [#1] PREEMPT SMP KASAN PTI KASAN: null-ptr-deref in range [0x0000000000000018-0x000000000000001f] CPU: 1 UID: 0 PID: 29996 Comm: udevd Not tainted 6.13.0-rc2-syzkaller-00333-ga0e3919a2df2 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/25/2024 RIP: 0010:tomoyo_check_acl+0xb0/0x410 security/tomoyo/domain.c:173 Code: 00 0f 85 57 03 00 00 49 8b 5d 00 49 39 dd 0f 84 fc 01 00 00 e8 f1 f8 47 fd 48 8d 7b 18 48 89 f8 48 89 fa 48 c1 e8 03 83 e2 07 <0f> b6 04 28 38 d0 7f 08 84 c0 0f 85 cc 02 00 00 44 0f b6 7b 18 31 RSP: 0018:ffffc90004b07b48 EFLAGS: 00010246 RAX: 0000000000000003 RBX: 0000000000000000 RCX: 0000000000000001 RDX: 0000000000000000 RSI: ffffffff845144ff RDI: 0000000000000018 RBP: dffffc0000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000007 R11: 732f766564752f62 R12: ffff88802a371400 R13: ffff8880274aa890 R14: 0000000000000000 R15: 0000000000000007 FS: 00007f7739b40c80(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f77396c2723 CR3: 0000000034822000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: tomoyo_env_perm+0x1be/0x210 security/tomoyo/environ.c:62 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:0x7f77396fcef7 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:00007fff141cf408 EFLAGS: 00000246 ORIG_RAX: 000000000000003b RAX: ffffffffffffffda RBX: 00007f7739b40ae0 RCX: 00007f77396fcef7 RDX: 000055d815d18900 RSI: 00007fff141cf508 RDI: 00007fff141cfd08 RBP: 0000000000000009 R08: 0000000000000000 R09: 0000000000000002 R10: 0000000000000008 R11: 0000000000000246 R12: 000000000000000e R13: 000000000000000b R14: 000055d7de831f18 R15: 00007fff141d1648 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:tomoyo_check_acl+0xb0/0x410 security/tomoyo/domain.c:173 Code: 00 0f 85 57 03 00 00 49 8b 5d 00 49 39 dd 0f 84 fc 01 00 00 e8 f1 f8 47 fd 48 8d 7b 18 48 89 f8 48 89 fa 48 c1 e8 03 83 e2 07 <0f> b6 04 28 38 d0 7f 08 84 c0 0f 85 cc 02 00 00 44 0f b6 7b 18 31 RSP: 0018:ffffc90004b07b48 EFLAGS: 00010246 RAX: 0000000000000003 RBX: 0000000000000000 RCX: 0000000000000001 RDX: 0000000000000000 RSI: ffffffff845144ff RDI: 0000000000000018 RBP: dffffc0000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000007 R11: 732f766564752f62 R12: ffff88802a371400 R13: ffff8880274aa890 R14: 0000000000000000 R15: 0000000000000007 FS: 00007f7739b40c80(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fbf11748178 CR3: 0000000034822000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 00 0f add %cl,(%rdi) 2: 85 57 03 test %edx,0x3(%rdi) 5: 00 00 add %al,(%rax) 7: 49 8b 5d 00 mov 0x0(%r13),%rbx b: 49 39 dd cmp %rbx,%r13 e: 0f 84 fc 01 00 00 je 0x210 14: e8 f1 f8 47 fd call 0xfd47f90a 19: 48 8d 7b 18 lea 0x18(%rbx),%rdi 1d: 48 89 f8 mov %rdi,%rax 20: 48 89 fa mov %rdi,%rdx 23: 48 c1 e8 03 shr $0x3,%rax 27: 83 e2 07 and $0x7,%edx * 2a: 0f b6 04 28 movzbl (%rax,%rbp,1),%eax <-- trapping instruction 2e: 38 d0 cmp %dl,%al 30: 7f 08 jg 0x3a 32: 84 c0 test %al,%al 34: 0f 85 cc 02 00 00 jne 0x306 3a: 44 0f b6 7b 18 movzbl 0x18(%rbx),%r15d 3f: 31 .byte 0x31