loop4: detected capacity change from 0 to 1024 ===================================================== BUG: KMSAN: uninit-value in hfsplus_attr_bin_cmp_key+0xf1/0x190 fs/hfsplus/attributes.c:42 hfsplus_attr_bin_cmp_key+0xf1/0x190 fs/hfsplus/attributes.c:42 hfs_find_rec_by_key+0xb0/0x240 fs/hfsplus/bfind.c:100 __hfsplus_brec_find+0x27e/0x7d0 fs/hfsplus/bfind.c:135 hfsplus_brec_find+0x46a/0x9d0 fs/hfsplus/bfind.c:195 hfsplus_find_attr+0x30c/0x390 __hfsplus_getxattr+0x384/0xe50 fs/hfsplus/xattr.c:522 hfsplus_getxattr+0x123/0x1e0 fs/hfsplus/xattr.c:590 hfsplus_security_getxattr+0x53/0x60 fs/hfsplus/xattr_security.c:20 __vfs_getxattr+0x7b5/0x810 fs/xattr.c:426 cap_inode_need_killpriv+0x56/0xb0 security/commoncap.c:301 security_inode_need_killpriv+0x93/0x140 security/security.c:1492 dentry_needs_remove_privs fs/inode.c:1968 [inline] __file_remove_privs+0x335/0xa50 fs/inode.c:1999 file_remove_privs+0x2f/0x40 fs/inode.c:2026 __generic_file_write_iter+0x119/0x920 mm/filemap.c:3999 generic_file_write_iter+0x103/0x5b0 mm/filemap.c:4086 call_write_iter include/linux/fs.h:1851 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x834/0x1580 fs/read_write.c:584 ksys_write+0x21f/0x4f0 fs/read_write.c:637 __do_sys_write fs/read_write.c:649 [inline] __se_sys_write fs/read_write.c:646 [inline] __ia32_sys_write+0x91/0xd0 fs/read_write.c:646 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+0x12d/0xb60 mm/slab.h:774 slab_alloc_node mm/slub.c:3452 [inline] __kmem_cache_alloc_node+0x518/0x920 mm/slub.c:3491 __do_kmalloc_node mm/slab_common.c:966 [inline] __kmalloc+0x121/0x3c0 mm/slab_common.c:980 kmalloc include/linux/slab.h:584 [inline] hfsplus_find_init+0x91/0x250 fs/hfsplus/bfind.c:21 __hfsplus_getxattr+0x2d5/0xe50 fs/hfsplus/xattr.c:516 hfsplus_getxattr+0x123/0x1e0 fs/hfsplus/xattr.c:590 hfsplus_security_getxattr+0x53/0x60 fs/hfsplus/xattr_security.c:20 __vfs_getxattr+0x7b5/0x810 fs/xattr.c:426 cap_inode_need_killpriv+0x56/0xb0 security/commoncap.c:301 security_inode_need_killpriv+0x93/0x140 security/security.c:1492 dentry_needs_remove_privs fs/inode.c:1968 [inline] __file_remove_privs+0x335/0xa50 fs/inode.c:1999 file_remove_privs+0x2f/0x40 fs/inode.c:2026 __generic_file_write_iter+0x119/0x920 mm/filemap.c:3999 generic_file_write_iter+0x103/0x5b0 mm/filemap.c:4086 call_write_iter include/linux/fs.h:1851 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x834/0x1580 fs/read_write.c:584 ksys_write+0x21f/0x4f0 fs/read_write.c:637 __do_sys_write fs/read_write.c:649 [inline] __se_sys_write fs/read_write.c:646 [inline] __ia32_sys_write+0x91/0xd0 fs/read_write.c:646 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: 1 PID: 8528 Comm: syz-executor.4 Not tainted 6.3.0-rc1-syzkaller-ge61893130d87 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023 =====================================================