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+0x946/0x2c70 fs/buffer.c:2119 __block_write_begin fs/buffer.c:2168 [inline] block_write_begin+0x143/0x450 fs/buffer.c:2227 cont_write_begin+0xd5c/0x12f0 fs/buffer.c:2582 hfs_write_begin+0x9a/0x130 fs/hfs/inode.c:58 cont_expand_zero fs/buffer.c:2509 [inline] cont_write_begin+0x319/0x12f0 fs/buffer.c:2572 hfs_write_begin+0x9a/0x130 fs/hfs/inode.c:58 hfs_file_truncate+0x1a5/0xd20 fs/hfs/extent.c:494 hfs_inode_setattr+0x998/0xaa0 fs/hfs/inode.c:656 notify_change+0x19fd/0x1af0 fs/attr.c:499 do_truncate+0x22a/0x2a0 fs/open.c:66 do_sys_ftruncate+0x81c/0xb30 fs/open.c:194 __do_sys_ftruncate fs/open.c:205 [inline] __se_sys_ftruncate fs/open.c:203 [inline] __x64_sys_ftruncate+0x71/0xa0 fs/open.c:203 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x44/0x110 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b Uninit was created at: slab_post_alloc_hook+0x129/0xa70 mm/slab.h:768 slab_alloc_node mm/slub.c:3478 [inline] __kmem_cache_alloc_node+0x5c9/0x970 mm/slub.c:3517 kmalloc_trace+0x51/0x200 mm/slab_common.c:1098 kmalloc include/linux/slab.h:600 [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:1650 hfs_mount+0x4d/0x60 fs/hfs/super.c:456 legacy_get_tree+0x110/0x290 fs/fs_context.c:662 vfs_get_tree+0xa5/0x520 fs/super.c:1771 do_new_mount+0x68d/0x1550 fs/namespace.c:3337 path_mount+0x73d/0x1f20 fs/namespace.c:3664 do_mount fs/namespace.c:3677 [inline] __do_sys_mount fs/namespace.c:3886 [inline] __se_sys_mount+0x725/0x810 fs/namespace.c:3863 __x64_sys_mount+0xe4/0x140 fs/namespace.c:3863 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x44/0x110 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b CPU: 0 PID: 5005 Comm: syz-executor183 Not tainted 6.7.0-rc7-syzkaller-00003-gfbafc3e621c3 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 =====================================================