loop2: detected capacity change from 0 to 64 ===================================================== BUG: KMSAN: uninit-value in hfs_find_set_zero_bits+0x836/0xc90 fs/hfs/bitmap.c:45 hfs_find_set_zero_bits+0x836/0xc90 fs/hfs/bitmap.c:45 hfs_vbm_search_free+0x141/0x530 fs/hfs/bitmap.c:151 hfs_extend_file+0x6fc/0x1bf0 fs/hfs/extent.c:408 hfs_get_block+0x400/0x1020 fs/hfs/extent.c:353 __block_write_begin_int+0x75e/0x2b80 fs/buffer.c:2034 __block_write_begin fs/buffer.c:2084 [inline] block_write_begin+0x143/0x450 fs/buffer.c:2145 cont_write_begin+0xd8f/0x1350 fs/buffer.c:2504 hfs_write_begin+0x9a/0x130 fs/hfs/inode.c:58 cont_expand_zero fs/buffer.c:2431 [inline] cont_write_begin+0x32f/0x1350 fs/buffer.c:2494 hfs_write_begin+0x9a/0x130 fs/hfs/inode.c:58 hfs_file_truncate+0x1d9/0xe80 fs/hfs/extent.c:494 hfs_inode_setattr+0x946/0xb70 fs/hfs/inode.c:656 notify_change+0x1bfc/0x1cf0 fs/attr.c:482 do_truncate+0x240/0x2d0 fs/open.c:66 do_sys_ftruncate+0x7d9/0xac0 fs/open.c:194 __do_compat_sys_ftruncate fs/open.c:211 [inline] __se_compat_sys_ftruncate fs/open.c:209 [inline] __ia32_compat_sys_ftruncate+0x70/0xa0 fs/open.c:209 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 kmalloc_trace+0x51/0x200 mm/slab_common.c:1061 kmalloc include/linux/slab.h:580 [inline] hfs_mdb_get+0x1c4e/0x29b0 fs/hfs/mdb.c:175 hfs_fill_super+0x1d78/0x2460 fs/hfs/super.c:406 mount_bdev+0x50e/0x840 fs/super.c:1371 hfs_mount+0x4d/0x60 fs/hfs/super.c:456 legacy_get_tree+0x110/0x290 fs/fs_context.c:610 vfs_get_tree+0xa5/0x500 fs/super.c:1501 do_new_mount+0x69a/0x1580 fs/namespace.c:3042 path_mount+0x725/0x1ee0 fs/namespace.c:3372 do_mount fs/namespace.c:3385 [inline] __do_sys_mount fs/namespace.c:3594 [inline] __se_sys_mount+0x734/0x840 fs/namespace.c:3571 __ia32_sys_mount+0xe3/0x150 fs/namespace.c:3571 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: 9359 Comm: syz-executor.2 Not tainted 6.3.0-rc3-syzkaller-g90ea0df61c98 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023 =====================================================