===================================================== BUG: KMSAN: uninit-value in hfsplus_attr_bin_cmp_key+0x172/0x200 fs/hfsplus/attributes.c:42 hfsplus_attr_bin_cmp_key+0x172/0x200 fs/hfsplus/attributes.c:42 hfs_find_rec_by_key+0x133/0x350 fs/hfsplus/bfind.c:100 __hfsplus_brec_find+0x395/0x9c0 fs/hfsplus/bfind.c:135 hfsplus_brec_find+0x571/0xa40 fs/hfsplus/bfind.c:195 hfsplus_find_attr+0x438/0x4d0 __hfsplus_getxattr+0x4c4/0x10b0 fs/hfsplus/xattr.c:522 hfsplus_getxattr+0x20a/0x280 fs/hfsplus/xattr.c:590 hfsplus_security_getxattr+0xda/0xf0 fs/hfsplus/xattr_security.c:20 __vfs_getxattr+0x8ad/0x990 fs/xattr.c:425 cap_inode_need_killpriv+0x9d/0x110 security/commoncap.c:301 security_inode_need_killpriv+0xc0/0x170 security/security.c:1492 dentry_needs_remove_privs+0x151/0x270 fs/inode.c:1967 do_truncate+0x2a4/0x530 fs/open.c:57 do_sys_ftruncate+0x922/0xbd0 fs/open.c:193 __do_compat_sys_ftruncate fs/open.c:210 [inline] __se_compat_sys_ftruncate fs/open.c:208 [inline] __ia32_compat_sys_ftruncate+0xa1/0xd0 fs/open.c:208 do_syscall_32_irqs_on arch/x86/entry/common.c:112 [inline] __do_fast_syscall_32+0xa2/0x100 arch/x86/entry/common.c:178 do_fast_syscall_32+0x37/0x80 arch/x86/entry/common.c:203 do_SYSENTER_32+0x1f/0x30 arch/x86/entry/common.c:246 entry_SYSENTER_compat_after_hwframe+0x70/0x82 Uninit was created at: slab_post_alloc_hook+0x271/0xf70 mm/slab.h:766 slab_alloc_node mm/slub.c:3452 [inline] __kmem_cache_alloc_node+0x68c/0xac0 mm/slub.c:3491 __do_kmalloc_node mm/slab_common.c:967 [inline] __kmalloc+0x260/0x640 mm/slab_common.c:981 kmalloc include/linux/slab.h:584 [inline] hfsplus_find_init+0xeb/0x360 fs/hfsplus/bfind.c:21 __hfsplus_getxattr+0x3e8/0x10b0 fs/hfsplus/xattr.c:516 hfsplus_getxattr+0x20a/0x280 fs/hfsplus/xattr.c:590 hfsplus_security_getxattr+0xda/0xf0 fs/hfsplus/xattr_security.c:20 __vfs_getxattr+0x8ad/0x990 fs/xattr.c:425 cap_inode_need_killpriv+0x9d/0x110 security/commoncap.c:301 security_inode_need_killpriv+0xc0/0x170 security/security.c:1492 dentry_needs_remove_privs+0x151/0x270 fs/inode.c:1967 do_truncate+0x2a4/0x530 fs/open.c:57 do_sys_ftruncate+0x922/0xbd0 fs/open.c:193 __do_compat_sys_ftruncate fs/open.c:210 [inline] __se_compat_sys_ftruncate fs/open.c:208 [inline] __ia32_compat_sys_ftruncate+0xa1/0xd0 fs/open.c:208 do_syscall_32_irqs_on arch/x86/entry/common.c:112 [inline] __do_fast_syscall_32+0xa2/0x100 arch/x86/entry/common.c:178 do_fast_syscall_32+0x37/0x80 arch/x86/entry/common.c:203 do_SYSENTER_32+0x1f/0x30 arch/x86/entry/common.c:246 entry_SYSENTER_compat_after_hwframe+0x70/0x82 CPU: 0 PID: 9667 Comm: syz-executor.4 Not tainted 6.2.0-rc8-syzkaller-80999-g31b504f219a9 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/21/2023 =====================================================