hfs: new node 0 already hashed? ------------[ cut here ]------------ WARNING: CPU: 1 PID: 7078 at fs/hfs/bnode.c:428 hfs_bnode_create+0x384/0x430 fs/hfs/bnode.c:427 Modules linked in: CPU: 1 UID: 0 PID: 7078 Comm: syz.3.108 Not tainted 6.15.0-rc7-syzkaller-gd7fa1af5b33e #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 : ffff8000a1b46af0 x29: ffff8000a1b46b00 x28: dfff800000000000 x27: dfff800000000000 x26: 00000000000000f8 x25: 0000000000000000 x24: 0000000000000080 x23: ffff0000ccc7bf88 x22: 0000000000000000 x21: 0000000000000000 x20: ffff0000dcf1a000 x19: ffff0000ccc7bf00 x18: 00000000ffffffff x17: ffff800092f39000 x16: ffff80008adbe9e4 x15: 0000000000000001 x14: 1ffff00014368cc8 x13: 0000000000000000 x12: 0000000000000000 x11: 0000000000080000 x10: 000000000000c3b4 x9 : a6a9c9bad92c2600 x8 : a6a9c9bad92c2600 x7 : 0000000000000001 x6 : 0000000000000001 x5 : ffff8000a1b46478 x4 : ffff80008f415ba0 x3 : ffff800082fbf044 x2 : 0000000000000001 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_cache_extent+0x84/0x750 fs/hfs/extent.c:174 hfs_ext_read_extent fs/hfs/extent.c:202 [inline] hfs_extend_file+0x264/0xf4c fs/hfs/extent.c:401 hfs_get_block+0x2e8/0x9cc fs/hfs/extent.c:353 __block_write_begin_int+0x53c/0x15e8 fs/buffer.c:2149 block_write_begin fs/buffer.c:2260 [inline] cont_write_begin+0x62c/0x968 fs/buffer.c:2599 hfs_write_begin+0x7c/0xc4 fs/hfs/inode.c:52 cont_expand_zero fs/buffer.c:2526 [inline] cont_write_begin+0x26c/0x968 fs/buffer.c:2589 hfs_write_begin+0x7c/0xc4 fs/hfs/inode.c:52 hfs_file_truncate+0x158/0x7ec fs/hfs/extent.c:494 hfs_inode_setattr+0x398/0x554 fs/hfs/inode.c:654 notify_change+0x9a4/0xc50 fs/attr.c:552 do_truncate+0x178/0x1f0 fs/open.c:65 vfs_truncate+0x398/0x444 fs/open.c:115 do_sys_truncate+0xe4/0x1a8 fs/open.c:138 __do_sys_truncate fs/open.c:150 [inline] __se_sys_truncate fs/open.c:148 [inline] __arm64_sys_truncate+0x5c/0x74 fs/open.c:148 __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: 442 hardirqs last enabled at (441): [] __up_console_sem kernel/printk/printk.c:344 [inline] hardirqs last enabled at (441): [] __console_unlock+0x70/0xc4 kernel/printk/printk.c:2885 hardirqs last disabled at (442): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:511 softirqs last enabled at (166): [] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:32 softirqs last disabled at (164): [] 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: 1 UID: 0 PID: 7078 Comm: syz.3.108 Tainted: G W 6.15.0-rc7-syzkaller-gd7fa1af5b33e #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 : ffff8000a1b46be0 x29: ffff8000a1b46be0 x28: 0000000000000001 x27: dfff800000000000 x26: ffff700014368d90 x25: ffff8000a1b46c80 x24: 1fffe0001998f7e0 x23: dfff800000000000 x22: ffff0000dcf1a000 x21: 0000000000000000 x20: ffff0000ccc7bf80 x19: ffff0000ccc7bf00 x18: 00000000ffffffff x17: ffff800092f39000 x16: ffff8000805290ac x15: 0000000000000001 x14: 1fffe0001998f7f0 x13: 0000000000000000 x12: 0000000000000000 x11: 0000000000080000 x10: 000000000002fdbb x9 : ffff8000a4bb5000 x8 : 000000000002fdbc x7 : ffff800080e1303c x6 : 0000000000000000 x5 : 0000000000000000 x4 : 0000000000000001 x3 : ffff80008129fdd0 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_cache_extent+0x84/0x750 fs/hfs/extent.c:174 hfs_ext_read_extent fs/hfs/extent.c:202 [inline] hfs_extend_file+0x264/0xf4c fs/hfs/extent.c:401 hfs_get_block+0x2e8/0x9cc fs/hfs/extent.c:353 __block_write_begin_int+0x53c/0x15e8 fs/buffer.c:2149 block_write_begin fs/buffer.c:2260 [inline] cont_write_begin+0x62c/0x968 fs/buffer.c:2599 hfs_write_begin+0x7c/0xc4 fs/hfs/inode.c:52 cont_expand_zero fs/buffer.c:2526 [inline] cont_write_begin+0x26c/0x968 fs/buffer.c:2589 hfs_write_begin+0x7c/0xc4 fs/hfs/inode.c:52 hfs_file_truncate+0x158/0x7ec fs/hfs/extent.c:494 hfs_inode_setattr+0x398/0x554 fs/hfs/inode.c:654 notify_change+0x9a4/0xc50 fs/attr.c:552 do_truncate+0x178/0x1f0 fs/open.c:65 vfs_truncate+0x398/0x444 fs/open.c:115 do_sys_truncate+0xe4/0x1a8 fs/open.c:138 __do_sys_truncate fs/open.c:150 [inline] __se_sys_truncate fs/open.c:148 [inline] __arm64_sys_truncate+0x5c/0x74 fs/open.c:148 __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 97e62a58 17ffffd4 97d1e2af (d4210000) ---[ end trace 0000000000000000 ]---