loop0: 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+0x69e/0x19f0 fs/hfs/extent.c:408 hfs_get_block+0x3d8/0xf40 fs/hfs/extent.c:353 __block_write_begin_int+0x830/0x2b50 fs/buffer.c:2107 __block_write_begin fs/buffer.c:2157 [inline] block_write_begin+0x143/0x450 fs/buffer.c:2216 cont_write_begin+0xd5c/0x12f0 fs/buffer.c:2573 hfs_write_begin+0x9a/0x130 fs/hfs/inode.c:58 generic_perform_write+0x3f5/0xc40 mm/filemap.c:3942 __generic_file_write_iter+0x20a/0x460 mm/filemap.c:4037 generic_file_write_iter+0x103/0x5b0 mm/filemap.c:4063 call_write_iter include/linux/fs.h:1985 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x8ef/0x15c0 fs/read_write.c:584 ksys_write+0x20f/0x4c0 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+0x91/0xd0 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+0x12f/0xb70 mm/slab.h:767 slab_alloc_node mm/slub.c:3478 [inline] __kmem_cache_alloc_node+0x536/0x8d0 mm/slub.c:3517 kmalloc_trace+0x51/0x200 mm/slab_common.c:1114 kmalloc include/linux/slab.h:599 [inline] hfs_mdb_get+0x1bd4/0x28b0 fs/hfs/mdb.c:175 hfs_fill_super+0x1cf5/0x23c0 fs/hfs/super.c:406 mount_bdev+0x3d7/0x560 fs/super.c:1629 hfs_mount+0x4d/0x60 fs/hfs/super.c:456 legacy_get_tree+0x110/0x290 fs/fs_context.c:638 vfs_get_tree+0xa5/0x520 fs/super.c:1750 do_new_mount+0x68d/0x1550 fs/namespace.c:3335 path_mount+0x73d/0x1f20 fs/namespace.c:3662 do_mount fs/namespace.c:3675 [inline] __do_sys_mount fs/namespace.c:3884 [inline] __se_sys_mount+0x725/0x810 fs/namespace.c:3861 __ia32_sys_mount+0xe3/0x150 fs/namespace.c:3861 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: 5469 Comm: syz-executor.0 Not tainted 6.5.0-syzkaller-12107-g7ba2090ca64e #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023 =====================================================