hfsplus: new node 0 already hashed? ------------[ cut here ]------------ WARNING: CPU: 1 PID: 7558 at fs/hfsplus/bnode.c:573 hfsplus_bnode_create+0x430/0x4e4 fs/hfsplus/bnode.c:572 Modules linked in: CPU: 1 UID: 0 PID: 7558 Comm: syz.3.202 Not tainted 6.11.0-rc7-syzkaller-g5f5673607153 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/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 : ffff8000a0076cd0 x29: ffff8000a0076ce0 x28: dfff800000000000 x27: dfff800000000000 x26: ffff0000dd6dc0f8 x25: dfff800000000000 x24: ffff0000cb09c888 x23: 0000000000000000 x22: ffff0000d06ee0e0 x21: ffff0000d06ee000 x20: 0000000000000000 x19: ffff0000cb09c800 x18: 1fffe000366d79ee x17: ffff80008f56d000 x16: ffff800083032784 x15: 0000000000000001 x14: 1ffff0001400ecec x13: 0000000000000000 x12: 0000000000000000 x11: 0000000000000001 x10: 0000000000ff0100 x9 : fab43b126e34c900 x8 : fab43b126e34c900 x7 : ffff8000802b7e24 x6 : 0000000000000000 x5 : 0000000000000001 x4 : 0000000000000001 x3 : ffff800082fbd1a4 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_ext_read_extent fs/hfsplus/extents.c:218 [inline] hfsplus_file_extend+0x39c/0x1544 fs/hfsplus/extents.c:462 hfsplus_get_block+0x398/0x1168 fs/hfsplus/extents.c:245 __block_write_begin_int+0x580/0x166c fs/buffer.c:2125 __block_write_begin fs/buffer.c:2174 [inline] block_write_begin fs/buffer.c:2235 [inline] cont_write_begin+0x79c/0xc40 fs/buffer.c:2587 hfsplus_write_begin+0x98/0xe4 fs/hfsplus/inode.c:47 generic_perform_write+0x2e8/0x8e0 mm/filemap.c:4019 __generic_file_write_iter+0xfc/0x204 mm/filemap.c:4121 generic_file_write_iter+0xb8/0x2b4 mm/filemap.c:4147 new_sync_write fs/read_write.c:497 [inline] vfs_write+0x940/0xc80 fs/read_write.c:590 ksys_write+0x15c/0x26c fs/read_write.c:643 __do_sys_write fs/read_write.c:655 [inline] __se_sys_write fs/read_write.c:652 [inline] __arm64_sys_write+0x7c/0x90 fs/read_write.c:652 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:49 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:132 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:151 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: 7682 hardirqs last enabled at (7681): [] raw_spin_rq_unlock_irq kernel/sched/sched.h:1427 [inline] hardirqs last enabled at (7681): [] finish_lock_switch+0xbc/0x1e4 kernel/sched/core.c:4942 hardirqs last disabled at (7682): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:470 softirqs last enabled at (7170): [] softirq_handle_end kernel/softirq.c:400 [inline] softirqs last enabled at (7170): [] handle_softirqs+0xa3c/0xbfc kernel/softirq.c:582 softirqs last disabled at (7133): [] __do_softirq+0x14/0x20 kernel/softirq.c:588 ---[ 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 UID: 0 PID: 7558 Comm: syz.3.202 Tainted: G W 6.11.0-rc7-syzkaller-g5f5673607153 #0 Tainted: [W]=WARN Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 pstate: 80400005 (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 : ffff8000a0076dc0 x29: ffff8000a0076dc0 x28: dfff800000000000 x27: ffff70001400edd0 x26: 1fffe0001a0ddc03 x25: 1fffe00019613900 x24: ffff0000d06ee000 x23: dfff800000000000 x22: ffff0000cb09c800 x21: ffff0000cb09c880 x20: 0000000000000000 x19: ffff0000cb09c800 x18: 1fffe000366d79ee x17: ffff80008f56d000 x16: ffff80008303280c x15: 0000000000000001 x14: 1fffe00019613910 x13: 0000000000000000 x12: 0000000000000000 x11: ffff600019613911 x10: 0000000000ff0100 x9 : 0000000000000000 x8 : ffff0000cb953c80 x7 : ffff800080aea268 x6 : 0000000000000000 x5 : 0000000000000000 x4 : 0000000000000000 x3 : ffff8000811df498 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_ext_read_extent fs/hfsplus/extents.c:218 [inline] hfsplus_file_extend+0x39c/0x1544 fs/hfsplus/extents.c:462 hfsplus_get_block+0x398/0x1168 fs/hfsplus/extents.c:245 __block_write_begin_int+0x580/0x166c fs/buffer.c:2125 __block_write_begin fs/buffer.c:2174 [inline] block_write_begin fs/buffer.c:2235 [inline] cont_write_begin+0x79c/0xc40 fs/buffer.c:2587 hfsplus_write_begin+0x98/0xe4 fs/hfsplus/inode.c:47 generic_perform_write+0x2e8/0x8e0 mm/filemap.c:4019 __generic_file_write_iter+0xfc/0x204 mm/filemap.c:4121 generic_file_write_iter+0xb8/0x2b4 mm/filemap.c:4147 new_sync_write fs/read_write.c:497 [inline] vfs_write+0x940/0xc80 fs/read_write.c:590 ksys_write+0x15c/0x26c fs/read_write.c:643 __do_sys_write fs/read_write.c:655 [inline] __se_sys_write fs/read_write.c:652 [inline] __arm64_sys_write+0x7c/0x90 fs/read_write.c:652 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:49 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:132 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:151 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 97e29dbd 17ffffb7 97ce28b1 (d4210000) ---[ end trace 0000000000000000 ]---