hfsplus: new node 0 already hashed? ------------[ cut here ]------------ WARNING: CPU: 0 PID: 7654 at fs/hfsplus/bnode.c:573 hfsplus_bnode_create+0x430/0x4e4 fs/hfsplus/bnode.c:572 Modules linked in: CPU: 0 PID: 7654 Comm: syz-executor.0 Not tainted 6.8.0-rc7-syzkaller-g707081b61156 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024 pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : hfsplus_bnode_create+0x430/0x4e4 fs/hfsplus/bnode.c:572 lr : hfsplus_bnode_create+0x430/0x4e4 fs/hfsplus/bnode.c:572 sp : ffff800098b573f0 x29: ffff800098b57400 x28: dfff800000000000 x27: dfff800000000000 x26: ffff00011fbd00f8 x25: dfff800000000000 x24: ffff0000cf5b5588 x23: 0000000000000000 x22: ffff0000ce2f00e0 x21: ffff0000ce2f0000 x20: 0000000000000000 x19: ffff0000cf5b5500 x18: 1fffe000367fff96 x17: ffff80008ec9d000 x16: ffff80008ad6b09c x15: 0000000000000001 x14: 1ffff0001316add4 x13: 0000000000000000 x12: 0000000000000000 x11: 0000000000040000 x10: 00000000000347e8 x9 : aca4977c3ad76f00 x8 : aca4977c3ad76f00 x7 : ffff800080297c0c x6 : 0000000000000000 x5 : 0000000000000001 x4 : 0000000000000001 x3 : ffff800082f248d0 x2 : 0000000000000001 x1 : 0000000100000000 x0 : 0000000000000023 Call trace: hfsplus_bnode_create+0x430/0x4e4 fs/hfsplus/bnode.c:572 hfsplus_bmap_alloc+0x578/0x640 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/0x244 fs/hfsplus/inode.c:265 notify_change+0x9d4/0xc8c fs/attr.c:499 do_truncate+0x1c0/0x28c fs/open.c:66 do_sys_ftruncate+0x284/0x318 fs/open.c:194 __do_sys_ftruncate fs/open.c:205 [inline] __se_sys_ftruncate fs/open.c:203 [inline] __arm64_sys_ftruncate+0x60/0x74 fs/open.c:203 __invoke_syscall arch/arm64/kernel/syscall.c:34 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:48 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:133 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:152 el0_svc+0x54/0x168 arch/arm64/kernel/entry-common.c:712 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:730 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:598 irq event stamp: 6212 hardirqs last enabled at (6211): [] raw_spin_rq_unlock_irq kernel/sched/sched.h:1397 [inline] hardirqs last enabled at (6211): [] finish_lock_switch+0xbc/0x1e4 kernel/sched/core.c:5154 hardirqs last disabled at (6212): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:470 softirqs last enabled at (5780): [] softirq_handle_end kernel/softirq.c:399 [inline] softirqs last enabled at (5780): [] __do_softirq+0xac8/0xce4 kernel/softirq.c:582 softirqs last disabled at (5763): [] ____do_softirq+0x14/0x20 arch/arm64/kernel/irq.c:81 ---[ 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: 7654 Comm: syz-executor.0 Tainted: G W 6.8.0-rc7-syzkaller-g707081b61156 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/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 : ffff800098b574e0 x29: ffff800098b574e0 x28: dfff800000000000 x27: ffff70001316aeb4 x26: 1fffe00019c5e003 x25: 1fffe00019eb6aa0 x24: ffff0000ce2f0000 x23: dfff800000000000 x22: ffff0000cf5b5500 x21: ffff0000cf5b5580 x20: 0000000000000000 x19: ffff0000cf5b5500 x18: 1fffe000367fff96 x17: ffff80008ec9d000 x16: ffff80008ad6b1c0 x15: 0000000000000001 x14: 1fffe00019eb6ab0 x13: 0000000000000000 x12: 0000000000000000 x11: 0000000000040000 x10: 000000000003ffff x9 : ffff800097b39000 x8 : 0000000000040000 x7 : ffff800080a65070 x6 : 0000000000000000 x5 : 0000000000000000 x4 : 0000000000000000 x3 : ffff800081158ddc 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/0x244 fs/hfsplus/inode.c:265 notify_change+0x9d4/0xc8c fs/attr.c:499 do_truncate+0x1c0/0x28c fs/open.c:66 do_sys_ftruncate+0x284/0x318 fs/open.c:194 __do_sys_ftruncate fs/open.c:205 [inline] __se_sys_ftruncate fs/open.c:203 [inline] __arm64_sys_ftruncate+0x60/0x74 fs/open.c:203 __invoke_syscall arch/arm64/kernel/syscall.c:34 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:48 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:133 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:152 el0_svc+0x54/0x168 arch/arm64/kernel/entry-common.c:712 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:730 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:598 Code: aa1403e0 97e2912c 17ffffb7 97cf4105 (d4210000) ---[ end trace 0000000000000000 ]---