loop7: detected capacity change from 0 to 1024 ===================================================== BUG: KMSAN: uninit-value in hfsplus_attr_bin_cmp_key+0xd9/0x190 fs/hfsplus/attributes.c:42 hfsplus_attr_bin_cmp_key+0xd9/0x190 fs/hfsplus/attributes.c:42 hfs_find_rec_by_key+0xab/0x240 fs/hfsplus/bfind.c:89 __hfsplus_brec_find+0x271/0x840 fs/hfsplus/bfind.c:124 hfsplus_brec_find+0x4df/0x9f0 fs/hfsplus/bfind.c:184 hfsplus_find_attr fs/hfsplus/attributes.c:-1 [inline] hfsplus_attr_exists+0x3c4/0x4b0 fs/hfsplus/attributes.c:182 __hfsplus_setxattr+0x593/0x37c0 fs/hfsplus/xattr.c:336 hfsplus_setxattr+0x243/0x410 fs/hfsplus/xattr.c:432 hfsplus_trusted_setxattr+0x55/0x70 fs/hfsplus/xattr_trusted.c:30 __vfs_setxattr+0x73f/0x850 fs/xattr.c:200 __vfs_setxattr_noperm+0x224/0xad0 fs/xattr.c:234 __vfs_setxattr_locked+0x448/0x490 fs/xattr.c:295 vfs_setxattr+0x27f/0x640 fs/xattr.c:321 do_setxattr fs/xattr.c:636 [inline] filename_setxattr+0x3a4/0xcc0 fs/xattr.c:665 path_setxattrat+0x58a/0x7d0 fs/xattr.c:713 __do_sys_setxattr fs/xattr.c:747 [inline] __se_sys_setxattr fs/xattr.c:743 [inline] __x64_sys_setxattr+0x100/0x1b0 fs/xattr.c:743 x64_sys_call+0x3157/0x3db0 arch/x86/include/generated/asm/syscalls_64.h:189 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xd9/0x1b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Uninit was created at: slab_post_alloc_hook mm/slub.c:4167 [inline] slab_alloc_node mm/slub.c:4210 [inline] __do_kmalloc_node mm/slub.c:4340 [inline] __kmalloc_noprof+0x95f/0x1310 mm/slub.c:4353 kmalloc_noprof include/linux/slab.h:909 [inline] hfsplus_find_init+0x90/0x1d0 fs/hfsplus/bfind.c:21 hfsplus_attr_exists+0xe0/0x4b0 fs/hfsplus/attributes.c:178 __hfsplus_setxattr+0x593/0x37c0 fs/hfsplus/xattr.c:336 hfsplus_setxattr+0x243/0x410 fs/hfsplus/xattr.c:432 hfsplus_trusted_setxattr+0x55/0x70 fs/hfsplus/xattr_trusted.c:30 __vfs_setxattr+0x73f/0x850 fs/xattr.c:200 __vfs_setxattr_noperm+0x224/0xad0 fs/xattr.c:234 __vfs_setxattr_locked+0x448/0x490 fs/xattr.c:295 vfs_setxattr+0x27f/0x640 fs/xattr.c:321 do_setxattr fs/xattr.c:636 [inline] filename_setxattr+0x3a4/0xcc0 fs/xattr.c:665 path_setxattrat+0x58a/0x7d0 fs/xattr.c:713 __do_sys_setxattr fs/xattr.c:747 [inline] __se_sys_setxattr fs/xattr.c:743 [inline] __x64_sys_setxattr+0x100/0x1b0 fs/xattr.c:743 x64_sys_call+0x3157/0x3db0 arch/x86/include/generated/asm/syscalls_64.h:189 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xd9/0x1b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f CPU: 1 UID: 0 PID: 9032 Comm: syz.7.922 Not tainted 6.15.0-rc3-syzkaller-00094-g02ddfb981de8 #0 PREEMPT(undef) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/29/2025 =====================================================