loop0: detected capacity change from 0 to 1024 hfsplus: new node 0 already hashed? ------------[ cut here ]------------ WARNING: CPU: 1 PID: 4296 at fs/hfsplus/bnode.c:579 hfsplus_bnode_create+0x40c/0x4c8 fs/hfsplus/bnode.c:578 Modules linked in: CPU: 1 PID: 4296 Comm: syz-executor221 Not tainted 6.1.135-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : hfsplus_bnode_create+0x40c/0x4c8 fs/hfsplus/bnode.c:578 lr : hfsplus_bnode_create+0x40c/0x4c8 fs/hfsplus/bnode.c:578 sp : ffff800020657440 x29: ffff800020657460 x28: 1ffff000040cae9c x27: dfff800000000000 x26: 0000000000000000 x25: 0000000000000080 x24: 0000000000000000 x23: ffff0000c0c06e88 x22: 0000000000000000 x21: ffff0000d1898000 x20: 0000000000000000 x19: ffff0000c0c06e00 x18: ffff800011a7bd00 x17: 0000000000000000 x16: ffff8000082d1c08 x15: 0000000000000000 x14: 00000000ffffffff x13: 0000000000000001 x12: 0000000000ff0100 x11: ff008000083098bc x10: 0000000000000000 x9 : 86f8d931d2d06600 x8 : 86f8d931d2d06600 x7 : 0000000000000001 x6 : 0000000000000001 x5 : ffff800020656f18 x4 : ffff800015154740 x3 : ffff80000a83b22c x2 : ffff0001b3e38cd0 x1 : 0000000100000000 x0 : 0000000000000023 Call trace: hfsplus_bnode_create+0x40c/0x4c8 fs/hfsplus/bnode.c:578 hfsplus_bmap_alloc+0x4e8/0x590 fs/hfsplus/btree.c:415 hfs_btree_inc_height+0xf8/0x8e0 fs/hfsplus/brec.c:475 hfsplus_brec_insert+0x108/0xaa8 fs/hfsplus/brec.c:75 __hfsplus_ext_write_extent+0x278/0x4cc fs/hfsplus/extents.c:107 __hfsplus_ext_cache_extent+0x84/0xa88 fs/hfsplus/extents.c:186 hfsplus_file_truncate+0x370/0x970 fs/hfsplus/extents.c:600 hfsplus_setattr+0x18c/0x258 fs/hfsplus/inode.c:269 notify_change+0xb0c/0xdcc fs/attr.c:499 do_truncate+0x178/0x1f0 fs/open.c:65 do_sys_ftruncate+0x284/0x31c fs/open.c:193 __do_sys_ftruncate fs/open.c:204 [inline] __se_sys_ftruncate fs/open.c:202 [inline] __arm64_sys_ftruncate+0x60/0x74 fs/open.c:202 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2bc arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:140 do_el0_svc+0x58/0x13c arch/arm64/kernel/syscall.c:204 el0_svc+0x58/0x138 arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585 irq event stamp: 19316 hardirqs last enabled at (19315): [] __up_console_sem+0xb4/0x100 kernel/printk/printk.c:261 hardirqs last disabled at (19316): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:405 softirqs last enabled at (18472): [] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:32 softirqs last disabled at (18470): [] local_bh_disable+0x10/0x34 include/linux/bottom_half.h:19 ---[ end trace 0000000000000000 ]--- ------------[ cut here ]------------ kernel BUG at fs/hfsplus/bnode.c:624! Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP Modules linked in: CPU: 1 PID: 4296 Comm: syz-executor221 Tainted: G W 6.1.135-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : hfsplus_bnode_put+0x490/0x49c fs/hfsplus/bnode.c:624 lr : hfsplus_bnode_put+0x490/0x49c fs/hfsplus/bnode.c:624 sp : ffff800020657540 x29: ffff800020657540 x28: 0000000000000000 x27: dfff800000000000 x26: ffff7000040caebc x25: ffff8000206575e0 x24: 1fffe00018180dc0 x23: ffff0000d1898000 x22: dfff800000000000 x21: 0000000000000000 x20: ffff0000c0c06e80 x19: ffff0000c0c06e00 x18: ffff800011a7bd00 x17: 0000000000000000 x16: ffff8000082e7444 x15: 0000000000000000 x14: 0000000000000001 x13: 1ffff00002a0e0b1 x12: 0000000000ff0100 x11: ff00800008f6bc04 x10: 0000000000000000 x9 : ffff800008f6bc04 x8 : ffff0000deaa1bc0 x7 : ffff8000089300fc x6 : 0000000000000000 x5 : 0000000000000000 x4 : 0000000000000000 x3 : ffff800008f6b7d0 x2 : 0000000000000000 x1 : 0000000000000000 x0 : 0000000000000000 Call trace: hfsplus_bnode_put+0x490/0x49c fs/hfsplus/bnode.c:624 hfs_btree_inc_height+0x48c/0x8e0 fs/hfsplus/brec.c:530 hfsplus_brec_insert+0x108/0xaa8 fs/hfsplus/brec.c:75 __hfsplus_ext_write_extent+0x278/0x4cc fs/hfsplus/extents.c:107 __hfsplus_ext_cache_extent+0x84/0xa88 fs/hfsplus/extents.c:186 hfsplus_file_truncate+0x370/0x970 fs/hfsplus/extents.c:600 hfsplus_setattr+0x18c/0x258 fs/hfsplus/inode.c:269 notify_change+0xb0c/0xdcc fs/attr.c:499 do_truncate+0x178/0x1f0 fs/open.c:65 do_sys_ftruncate+0x284/0x31c fs/open.c:193 __do_sys_ftruncate fs/open.c:204 [inline] __se_sys_ftruncate fs/open.c:202 [inline] __arm64_sys_ftruncate+0x60/0x74 fs/open.c:202 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2bc arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:140 do_el0_svc+0x58/0x13c arch/arm64/kernel/syscall.c:204 el0_svc+0x58/0x138 arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585 Code: aa1403e0 97e5a786 17ffffb4 97d4d733 (d4210000) ---[ end trace 0000000000000000 ]---