hfsplus: new node 0 already hashed? ------------[ cut here ]------------ WARNING: CPU: 1 PID: 5985 at fs/hfsplus/bnode.c:631 hfsplus_bnode_create+0x41c/0x4d8 fs/hfsplus/bnode.c:630 Modules linked in: CPU: 1 PID: 5985 Comm: syz.5.295 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/18/2026 pstate: 62400005 (nZCv daif +PAN -UAO +TCO -DIT -SSBS BTYPE=--) pc : hfsplus_bnode_create+0x41c/0x4d8 fs/hfsplus/bnode.c:630 lr : hfsplus_bnode_create+0x41c/0x4d8 fs/hfsplus/bnode.c:630 sp : ffff800020db6d00 x29: ffff800020db6d20 x28: dfff800000000000 x27: dfff800000000000 x26: 0000000000000000 x25: 00000000000000f8 x24: ffff0000d3528088 x23: 0000000000000080 x22: ffff0000d3528000 x21: ffff0000f66aa000 x20: 0000000000000000 x19: 0000000000000000 x18: ffff800011b9bf60 x17: 1fffe00033eaa57e x16: ffff8000082d92bc x15: 0000000040000000 x14: 0000000000000001 x13: 1ffff000041b6d08 x12: 0000000000080000 x11: 000000000002efdc x10: ffff800034400000 x9 : 222ef1e03deca000 x8 : 222ef1e03deca000 x7 : ffff800008257984 x6 : 0000000000000000 x5 : 0000000000000080 x4 : 0000000000000001 x3 : ffff80000a891370 x2 : ffff00019f552d10 x1 : 0000000100000000 x0 : 0000000000000023 Call trace: hfsplus_bnode_create+0x41c/0x4d8 fs/hfsplus/bnode.c:630 hfsplus_bmap_alloc+0x5b4/0x8e8 fs/hfsplus/btree.c:421 hfs_btree_inc_height+0x108/0x900 fs/hfsplus/brec.c:475 hfsplus_brec_insert+0x118/0xac0 fs/hfsplus/brec.c:75 __hfsplus_ext_write_extent+0x274/0x49c fs/hfsplus/extents.c:107 __hfsplus_ext_cache_extent+0x84/0xa84 fs/hfsplus/extents.c:186 hfsplus_ext_read_extent fs/hfsplus/extents.c:218 [inline] hfsplus_file_extend+0x3bc/0x13b4 fs/hfsplus/extents.c:459 hfsplus_get_block+0x324/0x11a0 fs/hfsplus/extents.c:245 __block_write_begin_int+0x350/0x1388 fs/buffer.c:1991 __block_write_begin fs/buffer.c:2041 [inline] block_write_begin fs/buffer.c:2102 [inline] cont_write_begin+0x53c/0x780 fs/buffer.c:2456 hfsplus_write_begin+0x98/0xe4 fs/hfsplus/inode.c:52 cont_expand_zero fs/buffer.c:2383 [inline] cont_write_begin+0x25c/0x780 fs/buffer.c:2446 hfsplus_write_begin+0x98/0xe4 fs/hfsplus/inode.c:52 generic_cont_expand_simple+0x130/0x208 fs/buffer.c:2347 hfsplus_setattr+0x148/0x258 fs/hfsplus/inode.c:283 notify_change+0xb0c/0xdcc fs/attr.c:499 do_truncate+0x188/0x20c 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/0x2b4 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:140 do_el0_svc+0x58/0x130 arch/arm64/kernel/syscall.c:204 el0_svc+0x58/0x128 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: 9150 hardirqs last enabled at (9149): [] raw_spin_rq_unlock_irq kernel/sched/sched.h:1374 [inline] hardirqs last enabled at (9149): [] finish_lock_switch+0xb0/0x1c4 kernel/sched/core.c:5004 hardirqs last disabled at (9150): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:405 softirqs last enabled at (8480): [] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:32 softirqs last disabled at (8478): [] local_bh_disable+0x10/0x34 include/linux/bottom_half.h:19 ---[ end trace 0000000000000000 ]---