loop0: detected capacity change from 0 to 1024 hfsplus: new node 0 already hashed? ------------[ cut here ]------------ WARNING: CPU: 1 PID: 4023 at fs/hfsplus/bnode.c:590 hfsplus_bnode_create+0x404/0x4c8 fs/hfsplus/bnode.c:589 Modules linked in: CPU: 1 PID: 4023 Comm: syz-executor231 Not tainted 5.15.184-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : hfsplus_bnode_create+0x404/0x4c8 fs/hfsplus/bnode.c:589 lr : hfsplus_bnode_create+0x404/0x4c8 fs/hfsplus/bnode.c:589 sp : ffff80001f0c7450 x29: ffff80001f0c7460 x28: 0000000000000000 x27: 00000000000000f8 x26: 0000000000000080 x25: dfff800000000000 x24: dfff800000000000 x23: ffff0000daff40f8 x22: 0000000000000000 x21: ffff0000c2668000 x20: 0000000000000000 x19: ffff0000c0878800 x18: 0000000000000002 x17: ffff800016cdf000 x16: ffff8000111a5644 x15: ffff8000167bf4c0 x14: ffff0000c14f5bc0 x13: 1ffff0000282a06b x12: 0000000000ff0100 x11: 0000000000000000 x10: 0000000000000000 x9 : 020fd12d95b10700 x8 : 020fd12d95b10700 x7 : 0000000000000000 x6 : 0000000000000000 x5 : 0000000000000080 x4 : 0000000000000000 x3 : ffff80000a732644 x2 : ffff0001a111cd10 x1 : 0000000100000000 x0 : 0000000000000023 Call trace: hfsplus_bnode_create+0x404/0x4c8 fs/hfsplus/bnode.c:589 hfsplus_bmap_alloc+0x534/0x5f8 fs/hfsplus/btree.c:414 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/0x4dc fs/hfsplus/extents.c:107 __hfsplus_ext_cache_extent+0x84/0xa88 fs/hfsplus/extents.c:186 hfsplus_file_truncate+0x374/0x984 fs/hfsplus/extents.c:600 hfsplus_setattr+0x18c/0x258 fs/hfsplus/inode.c:267 notify_change+0xa08/0xcd8 fs/attr.c:505 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/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+0x78/0x1e0 arch/arm64/kernel/entry-common.c:608 el0t_64_sync_handler+0xcc/0xe4 arch/arm64/kernel/entry-common.c:626 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 irq event stamp: 5420 hardirqs last enabled at (5419): [] raw_spin_rq_unlock_irq kernel/sched/sched.h:1338 [inline] hardirqs last enabled at (5419): [] finish_lock_switch+0xb0/0x1c4 kernel/sched/core.c:4784 hardirqs last disabled at (5420): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:396 softirqs last enabled at (4488): [] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:31 softirqs last disabled at (4486): [] local_bh_disable+0x10/0x34 include/linux/bottom_half.h:18 ---[ end trace f76c5fcc5f274344 ]--- ------------[ cut here ]------------ kernel BUG at fs/hfsplus/bnode.c:637! Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP Modules linked in: CPU: 0 PID: 4023 Comm: syz-executor231 Tainted: G W 5.15.184-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : hfsplus_bnode_put+0x590/0x59c fs/hfsplus/bnode.c:637 lr : hfsplus_bnode_put+0x590/0x59c fs/hfsplus/bnode.c:637 sp : ffff80001f0c7540 x29: ffff80001f0c7540 x28: 0000000000000000 x27: dfff800000000000 x26: ffff700003e18ebc x25: ffff80001f0c75e0 x24: ffff0000c2668000 x23: dfff800000000000 x22: 1fffe0001810f100 x21: 0000000000000000 x20: ffff0000c0878880 x19: ffff0000c0878800 x18: 0000000000000002 x17: ffff800016cdf000 x16: ffff8000111a5644 x15: ffff8000167bf4c0 x14: 0000000000000001 x13: 1ffff0000282a06b x12: 0000000000ff0100 x11: 0000000000000000 x10: 0000000000000000 x9 : ffff800008ebf42c x8 : ffff0000c14f51c0 x7 : ffff800008894f80 x6 : 0000000000000000 x5 : 0000000000000000 x4 : 0000000000000000 x3 : ffff800008ebeef8 x2 : 0000000000000000 x1 : 0000000000000000 x0 : 0000000000000000 Call trace: hfsplus_bnode_put+0x590/0x59c fs/hfsplus/bnode.c:637 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/0x4dc fs/hfsplus/extents.c:107 __hfsplus_ext_cache_extent+0x84/0xa88 fs/hfsplus/extents.c:186 hfsplus_file_truncate+0x374/0x984 fs/hfsplus/extents.c:600 hfsplus_setattr+0x18c/0x258 fs/hfsplus/inode.c:267 notify_change+0xa08/0xcd8 fs/attr.c:505 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/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+0x78/0x1e0 arch/arm64/kernel/entry-common.c:608 el0t_64_sync_handler+0xcc/0xe4 arch/arm64/kernel/entry-common.c:626 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 Code: aa1403e0 97e6336c 17ffff74 97d6e536 (d4210000) ---[ end trace f76c5fcc5f274345 ]---