hfsplus: new node 0 already hashed? ------------[ cut here ]------------ WARNING: CPU: 0 PID: 8741 at fs/hfsplus/bnode.c:573 hfsplus_bnode_create+0x384/0x430 fs/hfsplus/bnode.c:572 Modules linked in: CPU: 0 UID: 0 PID: 8741 Comm: syz.8.490 Not tainted 6.13.0-rc7-syzkaller-g1950a0af2d55 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024 pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : hfsplus_bnode_create+0x384/0x430 fs/hfsplus/bnode.c:572 lr : hfsplus_bnode_create+0x384/0x430 fs/hfsplus/bnode.c:572 sp : ffff80009cbc6d10 x29: ffff80009cbc6d20 x28: 00000000000000c4 x27: dfff800000000000 x26: ffff0000f57ec000 x25: ffff0000f57ec0c4 x24: ffff0000d8b7e000 x23: 0000000000000000 x22: ffff0000d8b7e0e0 x21: ffff0000d8b7e000 x20: 0000000000000000 x19: ffff0000c57f1700 x18: 0000000000000008 x17: 0000000000000000 x16: ffff800083276af4 x15: 0000000000000001 x14: 1ffff00013978cec x13: 0000000000000000 x12: 0000000000000000 x11: 0000000000080000 x10: 000000000000a6ed x9 : b6d98aa6e8353b00 x8 : b6d98aa6e8353b00 x7 : 0000000000000001 x6 : 0000000000000001 x5 : ffff80009cbc6458 x4 : ffff80008fb00460 x3 : ffff800083211bbc x2 : 0000000000000001 x1 : 0000000100000000 x0 : 0000000000000023 Call trace: hfsplus_bnode_create+0x384/0x430 fs/hfsplus/bnode.c:572 (P) hfsplus_bmap_alloc+0x48c/0x538 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+0x4c4/0x1610 fs/buffer.c:2116 block_write_begin fs/buffer.c:2226 [inline] cont_write_begin+0x634/0x984 fs/buffer.c:2577 hfsplus_write_begin+0x7c/0xc4 fs/hfsplus/inode.c:46 generic_perform_write+0x29c/0x868 mm/filemap.c:4046 __generic_file_write_iter+0xfc/0x204 mm/filemap.c:4147 generic_file_write_iter+0xb8/0x2b4 mm/filemap.c:4173 new_sync_write fs/read_write.c:586 [inline] vfs_write+0x920/0xcf4 fs/read_write.c:679 ksys_write+0x15c/0x26c fs/read_write.c:731 __do_sys_write fs/read_write.c:742 [inline] __se_sys_write fs/read_write.c:739 [inline] __arm64_sys_write+0x7c/0x90 fs/read_write.c:739 __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:744 el0t_64_sync_handler+0x84/0x108 arch/arm64/kernel/entry-common.c:762 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:600 irq event stamp: 630 hardirqs last enabled at (629): [] __up_console_sem kernel/printk/printk.c:344 [inline] hardirqs last enabled at (629): [] __console_unlock+0x70/0xc4 kernel/printk/printk.c:2869 hardirqs last disabled at (630): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:488 softirqs last enabled at (206): [] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:32 softirqs last disabled at (204): [] 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 UID: 0 PID: 8741 Comm: syz.8.490 Tainted: G W 6.13.0-rc7-syzkaller-g1950a0af2d55 #0 Tainted: [W]=WARN Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/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 : ffff80009cbc6e00 x29: ffff80009cbc6e00 x28: dfff800000000000 x27: ffff700013978dd8 x26: 1fffe0001b16fc03 x25: 1fffe00018afe2e0 x24: ffff0000d8b7e000 x23: dfff800000000000 x22: ffff0000c57f1700 x21: ffff0000c57f1780 x20: 0000000000000000 x19: ffff0000c57f1700 x18: 0000000000000008 x17: 0000000000000000 x16: ffff8000803b4218 x15: 0000000000000001 x14: 1fffe00018afe2f0 x13: 0000000000000000 x12: 0000000000000000 x11: 0000000000080000 x10: 000000000002b475 x9 : ffff8000aa8c1000 x8 : 000000000002b476 x7 : ffff800080dfb120 x6 : 0000000000000000 x5 : 0000000000000000 x4 : 0000000000000001 x3 : ffff8000812cd664 x2 : 0000000000000000 x1 : 0000000000000000 x0 : 0000000000000000 Call trace: hfsplus_bnode_put+0x488/0x494 fs/hfsplus/bnode.c:618 (P) 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+0x4c4/0x1610 fs/buffer.c:2116 block_write_begin fs/buffer.c:2226 [inline] cont_write_begin+0x634/0x984 fs/buffer.c:2577 hfsplus_write_begin+0x7c/0xc4 fs/hfsplus/inode.c:46 generic_perform_write+0x29c/0x868 mm/filemap.c:4046 __generic_file_write_iter+0xfc/0x204 mm/filemap.c:4147 generic_file_write_iter+0xb8/0x2b4 mm/filemap.c:4173 new_sync_write fs/read_write.c:586 [inline] vfs_write+0x920/0xcf4 fs/read_write.c:679 ksys_write+0x15c/0x26c fs/read_write.c:731 __do_sys_write fs/read_write.c:742 [inline] __se_sys_write fs/read_write.c:739 [inline] __arm64_sys_write+0x7c/0x90 fs/read_write.c:739 __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:744 el0t_64_sync_handler+0x84/0x108 arch/arm64/kernel/entry-common.c:762 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:600 Code: aa1403e0 97e491cf 17ffffb7 97cf3c63 (d4210000) ---[ end trace 0000000000000000 ]---