general protection fault, probably for non-canonical address 0xdffffc0000000003: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000018-0x000000000000001f] CPU: 1 PID: 2938 Comm: systemd-udevd Not tainted 5.15.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:tomoyo_check_acl+0xac/0x430 security/tomoyo/domain.c:173 Code: 04 28 84 c0 0f 85 05 03 00 00 48 8b 1c 24 4c 8b 23 49 39 dc 0f 84 14 02 00 00 0f 1f 40 00 49 8d 6c 24 18 48 89 e8 48 c1 e8 03 <42> 0f b6 04 28 84 c0 0f 85 1d 01 00 00 0f b6 6d 00 31 ff 89 ee e8 RSP: 0018:ffffc9000228f8b8 EFLAGS: 00010206 RAX: 0000000000000003 RBX: ffff888079a20710 RCX: ffff88807a805580 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000018 R08: ffffffff83d9fdf5 R09: ffffffff83da1411 R10: 0000000000000003 R11: ffff88807a805580 R12: 0000000000000000 R13: dffffc0000000000 R14: ffff888079a20700 R15: 0000000000000000 FS: 00007f8bec9328c0(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f9d93edbe47 CR3: 0000000078548000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: tomoyo_path_permission+0x1af/0x370 security/tomoyo/file.c:586 tomoyo_path_perm+0x3dd/0x660 security/tomoyo/file.c:838 security_inode_getattr+0xc0/0x140 security/security.c:1333 vfs_getattr fs/stat.c:157 [inline] vfs_statx+0x168/0x3f0 fs/stat.c:225 vfs_fstatat fs/stat.c:243 [inline] vfs_lstat include/linux/fs.h:3356 [inline] __do_sys_newlstat fs/stat.c:398 [inline] __se_sys_newlstat+0xba/0x750 fs/stat.c:392 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7f8beb7a4335 Code: 69 db 2b 00 64 c7 00 16 00 00 00 b8 ff ff ff ff c3 0f 1f 40 00 83 ff 01 48 89 f0 77 30 48 89 c7 48 89 d6 b8 06 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 03 f3 c3 90 48 8b 15 31 db 2b 00 f7 d8 64 89 RSP: 002b:00007ffc71b8e568 EFLAGS: 00000246 ORIG_RAX: 0000000000000006 RAX: ffffffffffffffda RBX: 0000564b9d5c4b40 RCX: 00007f8beb7a4335 RDX: 00007ffc71b8e5a0 RSI: 00007ffc71b8e5a0 RDI: 0000564b9d5c3b40 RBP: 00007ffc71b8e660 R08: 00007f8beba631a8 R09: 0000000000001010 R10: 00007f8beba62b58 R11: 0000000000000246 R12: 0000564b9d5c3b40 R13: 0000564b9d5c3b5a R14: 0000564b9d5aeee5 R15: 0000564b9d5aeeea Modules linked in: ---[ end trace c3a26bc18b284947 ]--- RIP: 0010:tomoyo_check_acl+0xac/0x430 security/tomoyo/domain.c:173 Code: 04 28 84 c0 0f 85 05 03 00 00 48 8b 1c 24 4c 8b 23 49 39 dc 0f 84 14 02 00 00 0f 1f 40 00 49 8d 6c 24 18 48 89 e8 48 c1 e8 03 <42> 0f b6 04 28 84 c0 0f 85 1d 01 00 00 0f b6 6d 00 31 ff 89 ee e8 RSP: 0018:ffffc9000228f8b8 EFLAGS: 00010206 RAX: 0000000000000003 RBX: ffff888079a20710 RCX: ffff88807a805580 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000018 R08: ffffffff83d9fdf5 R09: ffffffff83da1411 R10: 0000000000000003 R11: ffff88807a805580 R12: 0000000000000000 R13: dffffc0000000000 R14: ffff888079a20700 R15: 0000000000000000 FS: 00007f8bec9328c0(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f9d93f014c1 CR3: 0000000078548000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 04 28 add $0x28,%al 2: 84 c0 test %al,%al 4: 0f 85 05 03 00 00 jne 0x30f a: 48 8b 1c 24 mov (%rsp),%rbx e: 4c 8b 23 mov (%rbx),%r12 11: 49 39 dc cmp %rbx,%r12 14: 0f 84 14 02 00 00 je 0x22e 1a: 0f 1f 40 00 nopl 0x0(%rax) 1e: 49 8d 6c 24 18 lea 0x18(%r12),%rbp 23: 48 89 e8 mov %rbp,%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: 0f 85 1d 01 00 00 jne 0x154 37: 0f b6 6d 00 movzbl 0x0(%rbp),%ebp 3b: 31 ff xor %edi,%edi 3d: 89 ee mov %ebp,%esi 3f: e8 .byte 0xe8