BUG: KMSAN: uninit-value in tomoyo_realpath_from_path+0x4e5/0xaf0 security/tomoyo/realpath.c:286 tomoyo_realpath_from_path+0x4e5/0xaf0 security/tomoyo/realpath.c:286 tomoyo_get_realpath security/tomoyo/file.c:151 [inline] tomoyo_path_perm+0x27d/0xb40 security/tomoyo/file.c:822 tomoyo_inode_getattr+0x30/0x40 security/tomoyo/tomoyo.c:122 security_inode_getattr+0x121/0x1f0 security/security.c:1344 vfs_getattr fs/stat.c:157 [inline] vfs_statx+0x19d/0x5d0 fs/stat.c:232 vfs_fstatat fs/stat.c:255 [inline] __do_sys_newfstatat fs/stat.c:425 [inline] __se_sys_newfstatat+0xd0/0x940 fs/stat.c:419 __x64_sys_newfstatat+0xb9/0x110 fs/stat.c:419 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x46/0xb0 Local variable __shash_desc created at: ima_calc_field_array_hash_tfm+0x5a/0x880 security/integrity/ima/ima_crypto.c:586 ima_calc_field_array_hash+0x46a/0x630 security/integrity/ima/ima_crypto.c:655 CPU: 0 PID: 2845 Comm: logger Not tainted 5.19.0-rc4-syzkaller-31333-g97117d69c353 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/29/2022 =====================================================