loop1: detected capacity change from 0 to 64 ===================================================== BUG: KMSAN: uninit-value in __hfs_ext_read_extent fs/hfs/extent.c:160 [inline] BUG: KMSAN: uninit-value in __hfs_ext_cache_extent+0x69f/0x7e0 fs/hfs/extent.c:179 __hfs_ext_read_extent fs/hfs/extent.c:160 [inline] __hfs_ext_cache_extent+0x69f/0x7e0 fs/hfs/extent.c:179 hfs_file_truncate+0x769/0xd30 fs/hfs/extent.c:526 hfs_inode_setattr+0x998/0xab0 fs/hfs/inode.c:652 notify_change+0x1a07/0x1af0 fs/attr.c:497 do_truncate fs/open.c:65 [inline] do_ftruncate+0x8d3/0xc00 fs/open.c:181 do_sys_ftruncate fs/open.c:199 [inline] __do_compat_sys_ftruncate fs/open.c:213 [inline] __se_compat_sys_ftruncate fs/open.c:211 [inline] __ia32_compat_sys_ftruncate+0x102/0x210 fs/open.c:211 ia32_sys_call+0x39f2/0x40a0 arch/x86/include/generated/asm/syscalls_32.h:94 do_syscall_32_irqs_on arch/x86/entry/common.c:165 [inline] __do_fast_syscall_32+0xb4/0x120 arch/x86/entry/common.c:386 do_fast_syscall_32+0x38/0x80 arch/x86/entry/common.c:411 do_SYSENTER_32+0x1f/0x30 arch/x86/entry/common.c:449 entry_SYSENTER_compat_after_hwframe+0x84/0x8e Uninit was created at: slab_post_alloc_hook mm/slub.c:3877 [inline] slab_alloc_node mm/slub.c:3918 [inline] __do_kmalloc_node mm/slub.c:4038 [inline] __kmalloc+0x6e4/0x1060 mm/slub.c:4052 kmalloc include/linux/slab.h:632 [inline] hfs_find_init+0x91/0x250 fs/hfs/bfind.c:21 hfs_file_truncate+0x3c5/0xd30 fs/hfs/extent.c:512 hfs_inode_setattr+0x998/0xab0 fs/hfs/inode.c:652 notify_change+0x1a07/0x1af0 fs/attr.c:497 do_truncate fs/open.c:65 [inline] do_ftruncate+0x8d3/0xc00 fs/open.c:181 do_sys_ftruncate fs/open.c:199 [inline] __do_compat_sys_ftruncate fs/open.c:213 [inline] __se_compat_sys_ftruncate fs/open.c:211 [inline] __ia32_compat_sys_ftruncate+0x102/0x210 fs/open.c:211 ia32_sys_call+0x39f2/0x40a0 arch/x86/include/generated/asm/syscalls_32.h:94 do_syscall_32_irqs_on arch/x86/entry/common.c:165 [inline] __do_fast_syscall_32+0xb4/0x120 arch/x86/entry/common.c:386 do_fast_syscall_32+0x38/0x80 arch/x86/entry/common.c:411 do_SYSENTER_32+0x1f/0x30 arch/x86/entry/common.c:449 entry_SYSENTER_compat_after_hwframe+0x84/0x8e CPU: 0 PID: 6371 Comm: syz-executor.1 Not tainted 6.9.0-syzkaller-02339-g101b7a97143a #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 =====================================================