hfsplus: new node 0 already hashed? ------------[ cut here ]------------ WARNING: CPU: 0 PID: 5045 at fs/hfsplus/bnode.c:573 hfsplus_bnode_create+0x428/0x4dc fs/hfsplus/bnode.c:572 Modules linked in: CPU: 0 PID: 5045 Comm: syz-executor.4 Not tainted 6.1.90-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : hfsplus_bnode_create+0x428/0x4dc fs/hfsplus/bnode.c:572 lr : hfsplus_bnode_create+0x428/0x4dc fs/hfsplus/bnode.c:572 sp : ffff800021d573f0 x29: ffff800021d57400 x28: dfff800000000000 x27: dfff800000000000 x26: ffff0000ff1760f8 x25: dfff800000000000 x24: ffff0000c6f16c88 x23: 0000000000000000 x22: ffff0000d8a860e0 x21: ffff0000d8a86000 x20: 0000000000000000 x19: ffff0000c6f16c00 x18: 1fffe0003686b376 x17: ffff80001583d000 x16: ffff8000121591d4 x15: ffff0001b4359bbc x14: 1ffff00002b080b0 x13: dfff800000000000 x12: 0000000000040000 x11: 000000000002fa73 x10: ffff800022469000 x9 : 4a4eab9ada17c900 x8 : 4a4eab9ada17c900 x7 : ffff80000827c88c x6 : 0000000000000000 x5 : 0000000000000080 x4 : 0000000000000001 x3 : ffff80000aa8e44c x2 : ffff0001b4359cd0 x1 : 0000000100000000 x0 : 0000000000000023 Call trace: hfsplus_bnode_create+0x428/0x4dc fs/hfsplus/bnode.c:572 hfsplus_bmap_alloc+0x570/0x638 fs/hfsplus/btree.c:415 hfs_btree_inc_height+0xf8/0xa60 fs/hfsplus/brec.c:475 hfsplus_brec_insert+0x11c/0xaa0 fs/hfsplus/brec.c:75 __hfsplus_ext_write_extent+0x288/0x4ac fs/hfsplus/extents.c:107 __hfsplus_ext_cache_extent+0x84/0xa84 fs/hfsplus/extents.c:186 hfsplus_file_truncate+0x404/0x9b8 fs/hfsplus/extents.c:598 hfsplus_setattr+0x18c/0x25c fs/hfsplus/inode.c:269 notify_change+0xb58/0xe1c fs/attr.c:499 do_truncate+0x1c0/0x28c fs/open.c:65 do_sys_ftruncate+0x288/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/0x2c0 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x64/0x218 arch/arm64/kernel/syscall.c:206 el0_svc+0x58/0x168 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: 6460 hardirqs last enabled at (6459): [] raw_spin_rq_unlock_irq kernel/sched/sched.h:1366 [inline] hardirqs last enabled at (6459): [] finish_lock_switch+0xbc/0x1e8 kernel/sched/core.c:5004 hardirqs last disabled at (6460): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:405 softirqs last enabled at (5048): [] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:32 softirqs last disabled at (5046): [] local_bh_disable+0x10/0x34 include/linux/bottom_half.h:19 ---[ end trace 0000000000000000 ]--- ------------[ cut here ]------------ kernel BUG at fs/hfsplus/bnode.c:618! Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP Modules linked in: CPU: 0 PID: 5045 Comm: syz-executor.4 Tainted: G W 6.1.90-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : hfsplus_bnode_put+0x488/0x494 fs/hfsplus/bnode.c:618 lr : hfsplus_bnode_put+0x488/0x494 fs/hfsplus/bnode.c:618 sp : ffff800021d574e0 x29: ffff800021d574e0 x28: dfff800000000000 x27: ffff7000043aaeb4 x26: 1fffe0001b150c03 x25: 1fffe00018de2d80 x24: ffff0000d8a86000 x23: dfff800000000000 x22: ffff0000c6f16c00 x21: ffff0000c6f16c80 x20: 0000000000000000 x19: ffff0000c6f16c00 x18: 1fffe0003686b376 x17: ffff80001583d000 x16: ffff800012159304 x15: ffff0001b4359bbc x14: 1ffff00002b080b0 x13: dfff800000000000 x12: 0000000000040000 x11: 000000000003ffff x10: ffff800022469000 x9 : ffff800009085548 x8 : 0000000000040000 x7 : ffff8000089d4090 x6 : 0000000000000000 x5 : 0000000000000000 x4 : 0000000000000000 x3 : ffff80000908511c x2 : 0000000000000000 x1 : 0000000000000000 x0 : 0000000000000000 Call trace: hfsplus_bnode_put+0x488/0x494 fs/hfsplus/bnode.c:618 hfs_btree_inc_height+0x4fc/0xa60 fs/hfsplus/brec.c:530 hfsplus_brec_insert+0x11c/0xaa0 fs/hfsplus/brec.c:75 __hfsplus_ext_write_extent+0x288/0x4ac fs/hfsplus/extents.c:107 __hfsplus_ext_cache_extent+0x84/0xa84 fs/hfsplus/extents.c:186 hfsplus_file_truncate+0x404/0x9b8 fs/hfsplus/extents.c:598 hfsplus_setattr+0x18c/0x25c fs/hfsplus/inode.c:269 notify_change+0xb58/0xe1c fs/attr.c:499 do_truncate+0x1c0/0x28c fs/open.c:65 do_sys_ftruncate+0x288/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/0x2c0 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x64/0x218 arch/arm64/kernel/syscall.c:206 el0_svc+0x58/0x168 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 97e3bec9 17ffffb7 97d1d232 (d4210000) ---[ end trace 0000000000000000 ]---