loop3: detected capacity change from 0 to 64 ------------[ cut here ]------------ kernel BUG at fs/hfs/inode.c:447! Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP Modules linked in: CPU: 0 PID: 4282 Comm: syz.3.58 Not tainted 5.15.173-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/30/2024 pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : hfs_write_inode+0xc18/0xc1c fs/hfs/inode.c:447 lr : hfs_write_inode+0xc18/0xc1c fs/hfs/inode.c:447 sp : ffff8000207a7540 x29: ffff8000207a76a0 x28: dfff800000000000 x27: ffff7000040f4eac x26: ffff8000207a7560 x25: ffff800014abd310 x24: 0000000000000001 x23: ffff800011d405e0 x22: 0000000000000005 x21: ffff0000db0da1d8 x20: ffff8000207a75e0 x19: ffff8000207a7580 x18: 0000000000000000 x17: 0000000000000002 x16: ffff800008ff17d0 x15: 0000000000000004 x14: ffff0000cd41b680 x13: 0000000000ff0100 x12: 0000000000040000 x11: 00000000000038b3 x10: ffff800021c8b000 x9 : 00000000000038b4 x8 : ffff800008ff227c x7 : 0000000000000000 x6 : 0000000000000000 x5 : 0000000000000000 x4 : 0000000000000000 x3 : 0000000000000030 x2 : 0000000000000008 x1 : ffff800014e4ccc0 x0 : 0000000000000005 Call trace: hfs_write_inode+0xc18/0xc1c fs/hfs/inode.c:447 write_inode fs/fs-writeback.c:1495 [inline] __writeback_single_inode+0x584/0x13a4 fs/fs-writeback.c:1705 writeback_single_inode+0x1c0/0x79c fs/fs-writeback.c:1760 write_inode_now+0x240/0x2d0 fs/fs-writeback.c:2800 hfs_file_fsync+0xac/0x148 fs/hfs/inode.c:680 vfs_fsync_range+0x168/0x188 fs/sync.c:188 generic_write_sync include/linux/fs.h:2991 [inline] generic_file_write_iter+0x15c/0x1b8 mm/filemap.c:3948 call_write_iter include/linux/fs.h:2174 [inline] new_sync_write fs/read_write.c:507 [inline] vfs_write+0x884/0xb44 fs/read_write.c:594 ksys_write+0x15c/0x26c fs/read_write.c:647 __do_sys_write fs/read_write.c:659 [inline] __se_sys_write fs/read_write.c:656 [inline] __arm64_sys_write+0x7c/0x90 fs/read_write.c:656 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181 el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:608 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 Code: aa1803e0 97e38e2a 17ffff00 97d34821 (d4210000) ---[ end trace b2eb8fd0dc0e1832 ]---