loop0: detected capacity change from 0 to 1024 ===================================================== BUG: KMSAN: uninit-value in hfs_find_1st_rec_by_cnid+0x27a/0x3f0 fs/hfsplus/bfind.c:78 hfs_find_1st_rec_by_cnid+0x27a/0x3f0 fs/hfsplus/bfind.c:78 __hfsplus_brec_find+0x26b/0x7b0 fs/hfsplus/bfind.c:135 hfsplus_brec_find+0x445/0x970 fs/hfsplus/bfind.c:195 hfsplus_find_attr fs/hfsplus/attributes.c:160 [inline] hfsplus_delete_all_attrs+0x282/0x410 fs/hfsplus/attributes.c:371 hfsplus_delete_cat+0x1284/0x1370 fs/hfsplus/catalog.c:425 hfsplus_unlink+0x4f8/0xe40 fs/hfsplus/dir.c:385 vfs_unlink+0x66f/0xa20 fs/namei.c:4329 do_unlinkat+0x3fa/0xed0 fs/namei.c:4395 __do_sys_unlink fs/namei.c:4443 [inline] __se_sys_unlink fs/namei.c:4441 [inline] __ia32_sys_unlink+0x77/0xa0 fs/namei.c:4441 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+0x12f/0xb70 mm/slab.h:767 slab_alloc_node mm/slub.c:3470 [inline] __kmem_cache_alloc_node+0x536/0x8d0 mm/slub.c:3509 __do_kmalloc_node mm/slab_common.c:984 [inline] __kmalloc+0x121/0x3c0 mm/slab_common.c:998 kmalloc include/linux/slab.h:586 [inline] hfsplus_find_init+0x91/0x250 fs/hfsplus/bfind.c:21 hfsplus_delete_all_attrs+0xc8/0x410 fs/hfsplus/attributes.c:366 hfsplus_delete_cat+0x1284/0x1370 fs/hfsplus/catalog.c:425 hfsplus_unlink+0x4f8/0xe40 fs/hfsplus/dir.c:385 vfs_unlink+0x66f/0xa20 fs/namei.c:4329 do_unlinkat+0x3fa/0xed0 fs/namei.c:4395 __do_sys_unlink fs/namei.c:4443 [inline] __se_sys_unlink fs/namei.c:4441 [inline] __ia32_sys_unlink+0x77/0xa0 fs/namei.c:4441 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: 6065 Comm: syz-executor.0 Not tainted 6.5.0-rc4-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2023 =====================================================