loop4: detected capacity change from 0 to 64 ===================================================== BUG: KMSAN: uninit-value in hfs_find_set_zero_bits+0xe0c/0x1050 fs/hfs/bitmap.c:45 hfs_find_set_zero_bits+0xe0c/0x1050 fs/hfs/bitmap.c:45 hfs_vbm_search_free+0x1d3/0x700 fs/hfs/bitmap.c:151 hfs_extend_file+0x8cf/0x2200 fs/hfs/extent.c:408 hfs_get_block+0x738/0x1620 fs/hfs/extent.c:353 __block_write_begin_int+0x880/0x2ac0 fs/buffer.c:1991 __block_write_begin fs/buffer.c:2041 [inline] block_write_begin+0x20c/0x530 fs/buffer.c:2102 cont_write_begin+0xc95/0x1110 fs/buffer.c:2456 hfs_write_begin+0x18b/0x270 fs/hfs/inode.c:58 generic_perform_write+0x4b1/0xc30 mm/filemap.c:3772 __generic_file_write_iter+0x3f1/0x9f0 mm/filemap.c:3900 generic_file_write_iter+0x171/0x600 mm/filemap.c:3932 call_write_iter include/linux/fs.h:2189 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0xc5c/0x1a60 fs/read_write.c:584 ksys_write+0x28f/0x510 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+0xdf/0x120 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+0x271/0xf70 mm/slab.h:766 slab_alloc_node mm/slub.c:3452 [inline] __kmem_cache_alloc_node+0x68c/0xac0 mm/slub.c:3491 kmalloc_trace+0x98/0x260 mm/slab_common.c:1062 kmalloc include/linux/slab.h:580 [inline] hfs_mdb_get+0x2059/0x3000 fs/hfs/mdb.c:175 hfs_fill_super+0x1fb1/0x2790 fs/hfs/super.c:406 mount_bdev+0x628/0x920 fs/super.c:1359 hfs_mount+0xcd/0xe0 fs/hfs/super.c:456 legacy_get_tree+0x167/0x2e0 fs/fs_context.c:610 vfs_get_tree+0xdc/0x5d0 fs/super.c:1489 do_new_mount+0x7a9/0x16f0 fs/namespace.c:3145 path_mount+0xf98/0x26a0 fs/namespace.c:3475 do_mount fs/namespace.c:3488 [inline] __do_sys_mount fs/namespace.c:3697 [inline] __se_sys_mount+0x919/0x9e0 fs/namespace.c:3674 __ia32_sys_mount+0x15b/0x1b0 fs/namespace.c:3674 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: 7700 Comm: syz-executor.4 Not tainted 6.2.0-rc8-syzkaller-80998-g9c866a280876 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/21/2023 =====================================================