loop4: detected capacity change from 0 to 1024 hfsplus: b-tree write err: -5, ino 3 ------------[ cut here ]------------ kernel BUG at fs/hfsplus/bnode.c:631! Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP Modules linked in: CPU: 0 PID: 4474 Comm: syz.4.120 Not tainted 5.15.178-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024 pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : hfsplus_bnode_put+0x588/0x594 fs/hfsplus/bnode.c:631 lr : hfsplus_bnode_put+0x588/0x594 fs/hfsplus/bnode.c:631 sp : ffff8000206075e0 x29: ffff8000206075e0 x28: 1fffe0001836173d x27: ffff0000c1b0b800 x26: dfff800000000000 x25: ffff0000ca4fc000 x24: 1fffe00019252780 x23: dfff800000000000 x22: 0000000000000100 x21: ffff0000c9293c80 x20: 0000000000000000 x19: ffff0000c9293c00 x18: 0000000000000000 x17: 0000000000000000 x16: ffff800011b4e58c x15: ffff80000897d03c x14: 1ffff0000296e06c x13: dfff800000000000 x12: 0000000000000001 x11: 0000000000000000 x10: 0000000000000000 x9 : ffff0000c9f68000 x8 : ffff800008fc7318 x7 : ffff800008922854 x6 : 0000000000000000 x5 : 0000000000000000 x4 : 0000000000000000 x3 : ffff800008fc6dec x2 : 0000000000000000 x1 : 0000000000000000 x0 : 0000000000000000 Call trace: hfsplus_bnode_put+0x588/0x594 fs/hfsplus/bnode.c:631 hfsplus_btree_write+0x2cc/0x6d4 fs/hfsplus/btree.c:308 hfsplus_system_write_inode fs/hfsplus/super.c:136 [inline] hfsplus_write_inode+0x3a4/0x4ec fs/hfsplus/super.c:162 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 sync_inode_metadata+0xc0/0x124 fs/fs-writeback.c:2820 hfsplus_file_fsync+0xe4/0x508 fs/hfsplus/inode.c:319 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: aa1403e0 97e4389e 17ffff77 97d3f465 (d4210000) ---[ end trace 3a2613e271d3d5be ]---