loop0: detected capacity change from 0 to 64 ===================================================== BUG: KMSAN: uninit-value in hfs_find_set_zero_bits+0x836/0xca0 fs/hfs/bitmap.c:45 hfs_find_set_zero_bits+0x836/0xca0 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/0xf50 fs/hfs/extent.c:353 __block_write_begin_int+0xa6b/0x2f80 fs/buffer.c:2105 __block_write_begin fs/buffer.c:2154 [inline] block_write_begin+0x143/0x450 fs/buffer.c:2213 cont_write_begin+0xcc0/0x1320 fs/buffer.c:2567 hfs_write_begin+0x9a/0x140 fs/hfs/inode.c:53 cont_expand_zero fs/buffer.c:2494 [inline] cont_write_begin+0x341/0x1320 fs/buffer.c:2557 hfs_write_begin+0x9a/0x140 fs/hfs/inode.c:53 hfs_file_truncate+0x1a5/0xd30 fs/hfs/extent.c:494 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_sys_ftruncate fs/open.c:207 [inline] __se_sys_ftruncate fs/open.c:205 [inline] __x64_sys_ftruncate+0x133/0x280 fs/open.c:205 do_syscall_64+0xd5/0x1f0 entry_SYSCALL_64_after_hwframe+0x6d/0x75 Uninit was created at: slab_post_alloc_hook mm/slub.c:3804 [inline] slab_alloc_node mm/slub.c:3845 [inline] kmalloc_trace+0x578/0xba0 mm/slub.c:3992 kmalloc include/linux/slab.h:628 [inline] hfs_mdb_get+0x1bd4/0x28b0 fs/hfs/mdb.c:175 hfs_fill_super+0x1cf6/0x23c0 fs/hfs/super.c:406 mount_bdev+0x397/0x520 fs/super.c:1658 hfs_mount+0x4d/0x60 fs/hfs/super.c:456 legacy_get_tree+0x114/0x290 fs/fs_context.c:662 vfs_get_tree+0xa7/0x570 fs/super.c:1779 do_new_mount+0x71f/0x15e0 fs/namespace.c:3352 path_mount+0x742/0x1f20 fs/namespace.c:3679 do_mount fs/namespace.c:3692 [inline] __do_sys_mount fs/namespace.c:3898 [inline] __se_sys_mount+0x725/0x810 fs/namespace.c:3875 __x64_sys_mount+0xe4/0x150 fs/namespace.c:3875 do_syscall_64+0xd5/0x1f0 entry_SYSCALL_64_after_hwframe+0x6d/0x75 CPU: 1 PID: 4999 Comm: syz-executor240 Not tainted 6.8.0-syzkaller-08073-g480e035fc4c7 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/29/2024 =====================================================