loop6: detected capacity change from 0 to 1024 ===================================================== BUG: KMSAN: uninit-value in __hfsplus_ext_read_extent fs/hfsplus/extents.c:167 [inline] BUG: KMSAN: uninit-value in __hfsplus_ext_cache_extent+0x82c/0x970 fs/hfsplus/extents.c:191 __hfsplus_ext_read_extent fs/hfsplus/extents.c:167 [inline] __hfsplus_ext_cache_extent+0x82c/0x970 fs/hfsplus/extents.c:191 hfsplus_ext_read_extent fs/hfsplus/extents.c:218 [inline] hfsplus_file_extend+0x775/0x1ba0 fs/hfsplus/extents.c:462 hfsplus_get_block+0xe99/0x1690 fs/hfsplus/extents.c:245 __block_write_begin_int+0xa6b/0x2f80 fs/buffer.c:2116 block_write_begin fs/buffer.c:2226 [inline] cont_write_begin+0xf82/0x1940 fs/buffer.c:2577 hfsplus_write_begin+0x85/0x120 fs/hfsplus/inode.c:46 cont_expand_zero fs/buffer.c:2504 [inline] cont_write_begin+0x32f/0x1940 fs/buffer.c:2567 hfsplus_write_begin+0x85/0x120 fs/hfsplus/inode.c:46 generic_cont_expand_simple+0x16b/0x350 fs/buffer.c:2468 hfsplus_setattr+0x2a8/0x560 fs/hfsplus/inode.c:258 notify_change+0x1a8e/0x1b80 fs/attr.c:552 do_truncate fs/open.c:65 [inline] do_ftruncate+0x8c1/0xbf0 fs/open.c:181 do_sys_ftruncate fs/open.c:196 [inline] __do_sys_ftruncate fs/open.c:201 [inline] __se_sys_ftruncate fs/open.c:199 [inline] __x64_sys_ftruncate+0x128/0x250 fs/open.c:199 x64_sys_call+0xb1e/0x3c30 arch/x86/include/generated/asm/syscalls_64.h:78 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x1e0 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f Uninit was created at: slab_post_alloc_hook mm/slub.c:4110 [inline] slab_alloc_node mm/slub.c:4153 [inline] __do_kmalloc_node mm/slub.c:4282 [inline] __kmalloc_noprof+0x923/0x1230 mm/slub.c:4295 kmalloc_noprof include/linux/slab.h:905 [inline] hfsplus_find_init+0x95/0x1d0 fs/hfsplus/bfind.c:21 hfsplus_ext_read_extent fs/hfsplus/extents.c:216 [inline] hfsplus_file_extend+0x6d8/0x1ba0 fs/hfsplus/extents.c:462 hfsplus_get_block+0xe99/0x1690 fs/hfsplus/extents.c:245 __block_write_begin_int+0xa6b/0x2f80 fs/buffer.c:2116 block_write_begin fs/buffer.c:2226 [inline] cont_write_begin+0xf82/0x1940 fs/buffer.c:2577 hfsplus_write_begin+0x85/0x120 fs/hfsplus/inode.c:46 cont_expand_zero fs/buffer.c:2504 [inline] cont_write_begin+0x32f/0x1940 fs/buffer.c:2567 hfsplus_write_begin+0x85/0x120 fs/hfsplus/inode.c:46 generic_cont_expand_simple+0x16b/0x350 fs/buffer.c:2468 hfsplus_setattr+0x2a8/0x560 fs/hfsplus/inode.c:258 notify_change+0x1a8e/0x1b80 fs/attr.c:552 do_truncate fs/open.c:65 [inline] do_ftruncate+0x8c1/0xbf0 fs/open.c:181 do_sys_ftruncate fs/open.c:196 [inline] __do_sys_ftruncate fs/open.c:201 [inline] __se_sys_ftruncate fs/open.c:199 [inline] __x64_sys_ftruncate+0x128/0x250 fs/open.c:199 x64_sys_call+0xb1e/0x3c30 arch/x86/include/generated/asm/syscalls_64.h:78 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x1e0 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f CPU: 1 UID: 0 PID: 19118 Comm: syz.6.4068 Not tainted 6.12.0-syzkaller-11930-g0e287d31b62b #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 =====================================================