hfs: new node 0 already hashed? ------------[ cut here ]------------ WARNING: CPU: 1 PID: 7523 at fs/hfs/bnode.c:428 hfs_bnode_create+0x384/0x430 fs/hfs/bnode.c:427 Modules linked in: CPU: 1 UID: 0 PID: 7523 Comm: syz.3.209 Not tainted 6.16.0-rc1-syzkaller-g39dfc971e42d #0 PREEMPT Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : hfs_bnode_create+0x384/0x430 fs/hfs/bnode.c:427 lr : hfs_bnode_create+0x384/0x430 fs/hfs/bnode.c:427 sp : ffff8000a0446db0 x29: ffff8000a0446dc0 x28: dfff800000000000 x27: dfff800000000000 x26: 0000000000000100 x25: 0000000000000000 x24: 0000000000000080 x23: ffff0000c9895e88 x22: 0000000000000000 x21: 0000000000000000 x20: ffff0000d7bea000 x19: ffff0000c9895e00 x18: 00000000ffffffff x17: ffff80009331f000 x16: ffff80008ae31308 x15: ffff700011ed61d4 x14: 1ffff00011ed61d4 x13: 0000000000000004 x12: ffffffffffffffff x11: 0000000000080000 x10: 0000000000008089 x9 : 7add200bc61b7200 x8 : 7add200bc61b7200 x7 : 0000000000000001 x6 : 0000000000000001 x5 : ffff8000a0446738 x4 : ffff80008f727060 x3 : ffff80008054db48 x2 : 0000000000000000 x1 : 0000000100000000 x0 : 000000000000001f Call trace: hfs_bnode_create+0x384/0x430 fs/hfs/bnode.c:427 (P) hfs_bmap_alloc+0x448/0x4dc fs/hfs/btree.c:291 hfs_btree_inc_height+0xf8/0x870 fs/hfs/brec.c:471 hfs_brec_insert+0x110/0x96c fs/hfs/brec.c:77 __hfs_ext_write_extent+0x230/0x488 fs/hfs/extent.c:124 hfs_ext_write_extent+0x144/0x1bc fs/hfs/extent.c:144 hfs_write_inode+0xbc/0x704 fs/hfs/inode.c:429 write_inode fs/fs-writeback.c:1525 [inline] __writeback_single_inode+0x5ac/0x13e8 fs/fs-writeback.c:1745 writeback_single_inode+0x18c/0x54c fs/fs-writeback.c:1801 write_inode_now+0x134/0x198 fs/fs-writeback.c:2863 hfs_file_fsync+0xa8/0x144 fs/hfs/inode.c:676 vfs_fsync_range+0x160/0x19c fs/sync.c:187 generic_write_sync include/linux/fs.h:3027 [inline] generic_file_write_iter+0x288/0x470 mm/filemap.c:4259 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x62c/0x97c fs/read_write.c:686 ksys_write+0x120/0x210 fs/read_write.c:738 __do_sys_write fs/read_write.c:749 [inline] __se_sys_write fs/read_write.c:746 [inline] __arm64_sys_write+0x7c/0x90 fs/read_write.c:746 __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+0x58/0x17c arch/arm64/kernel/entry-common.c:767 el0t_64_sync_handler+0x78/0x108 arch/arm64/kernel/entry-common.c:786 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:600 irq event stamp: 1208 hardirqs last enabled at (1207): [] __up_console_sem kernel/printk/printk.c:344 [inline] hardirqs last enabled at (1207): [] __console_unlock+0x70/0xc4 kernel/printk/printk.c:2885 hardirqs last disabled at (1208): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:511 softirqs last enabled at (1066): [] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:32 softirqs last disabled at (1064): [] local_bh_disable+0x10/0x34 include/linux/bottom_half.h:19 ---[ end trace 0000000000000000 ]--- ------------[ cut here ]------------ kernel BUG at fs/hfs/bnode.c:473! Internal error: Oops - BUG: 00000000f2000800 [#1] SMP Modules linked in: CPU: 0 UID: 0 PID: 7523 Comm: syz.3.209 Tainted: G W 6.16.0-rc1-syzkaller-g39dfc971e42d #0 PREEMPT Tainted: [W]=WARN Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : hfs_bnode_put+0x31c/0x328 fs/hfs/bnode.c:473 lr : hfs_bnode_put+0x31c/0x328 fs/hfs/bnode.c:473 sp : ffff8000a0446ea0 x29: ffff8000a0446ea0 x28: 0000000000000001 x27: dfff800000000000 x26: ffff700014088de8 x25: ffff8000a0446f40 x24: 1fffe00019312bc0 x23: dfff800000000000 x22: ffff0000d7bea000 x21: 0000000000000000 x20: ffff0000c9895e80 x19: ffff0000c9895e00 x18: 00000000ffffffff x17: ffff80009331f000 x16: ffff80008052d374 x15: 0000000000000001 x14: 1fffe00019312bd0 x13: 0000000000000000 x12: 0000000000000000 x11: 0000000000080000 x10: 000000000002cdc8 x9 : ffff8000a5bae000 x8 : 000000000002cdc9 x7 : ffff800080e37598 x6 : 0000000000000000 x5 : 0000000000000000 x4 : 0000000000000001 x3 : ffff8000812c69e8 x2 : 0000000000000000 x1 : 0000000000000000 x0 : 0000000000000000 Call trace: hfs_bnode_put+0x31c/0x328 fs/hfs/bnode.c:473 (P) hfs_btree_inc_height+0x448/0x870 fs/hfs/brec.c:525 hfs_brec_insert+0x110/0x96c fs/hfs/brec.c:77 __hfs_ext_write_extent+0x230/0x488 fs/hfs/extent.c:124 hfs_ext_write_extent+0x144/0x1bc fs/hfs/extent.c:144 hfs_write_inode+0xbc/0x704 fs/hfs/inode.c:429 write_inode fs/fs-writeback.c:1525 [inline] __writeback_single_inode+0x5ac/0x13e8 fs/fs-writeback.c:1745 writeback_single_inode+0x18c/0x54c fs/fs-writeback.c:1801 write_inode_now+0x134/0x198 fs/fs-writeback.c:2863 hfs_file_fsync+0xa8/0x144 fs/hfs/inode.c:676 vfs_fsync_range+0x160/0x19c fs/sync.c:187 generic_write_sync include/linux/fs.h:3027 [inline] generic_file_write_iter+0x288/0x470 mm/filemap.c:4259 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x62c/0x97c fs/read_write.c:686 ksys_write+0x120/0x210 fs/read_write.c:738 __do_sys_write fs/read_write.c:749 [inline] __se_sys_write fs/read_write.c:746 [inline] __arm64_sys_write+0x7c/0x90 fs/read_write.c:746 __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+0x58/0x17c arch/arm64/kernel/entry-common.c:767 el0t_64_sync_handler+0x78/0x108 arch/arm64/kernel/entry-common.c:786 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:600 Code: aa1403e0 97e5e315 17ffffd4 97d1721c (d4210000) ---[ end trace 0000000000000000 ]---