hfs: new node 0 already hashed? ------------[ cut here ]------------ WARNING: CPU: 1 PID: 5107 at fs/hfs/bnode.c:520 hfs_bnode_create+0x40c/0x4c4 fs/hfs/bnode.c:519 Modules linked in: CPU: 1 PID: 5107 Comm: syz.2.143 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/18/2026 pstate: 62400005 (nZCv daif +PAN -UAO +TCO -DIT -SSBS BTYPE=--) pc : hfs_bnode_create+0x40c/0x4c4 fs/hfs/bnode.c:519 lr : hfs_bnode_create+0x40c/0x4c4 fs/hfs/bnode.c:519 sp : ffff8000210a6da0 x29: ffff8000210a6dc0 x28: ffff700004214dc8 x27: dfff800000000000 x26: 0000000000000080 x25: 0000000000000000 x24: ffff0000d2fd7088 x23: dfff800000000000 x22: 0000000000000000 x21: ffff0000cae8e000 x20: 0000000000000000 x19: ffff0000d2fd7000 x18: ffff800011babf60 x17: 1fffe00033ea397e x16: ffff800011a529a8 x15: 0000000040000000 x14: 0000000000000001 x13: 1ffff00004214d1c x12: 0000000000080000 x11: 000000000007ffff x10: ffff80002a77f000 x9 : 32dd95fe8ed75d00 x8 : 32dd95fe8ed75d00 x7 : ffff800008258510 x6 : 0000000000000000 x5 : 0000000000000080 x4 : 0000000000000001 x3 : ffff80000a893cf0 x2 : ffff00019f51cd10 x1 : 0000000100000000 x0 : 000000000000001f Call trace: hfs_bnode_create+0x40c/0x4c4 fs/hfs/bnode.c:519 hfs_bmap_alloc+0x4fc/0x5ac fs/hfs/btree.c:291 hfs_btree_inc_height+0x108/0x890 fs/hfs/brec.c:490 hfs_brec_insert+0x5c4/0x97c fs/hfs/brec.c:148 __hfs_ext_write_extent+0x22c/0x484 fs/hfs/extent.c:124 __hfs_ext_cache_extent+0x84/0x74c fs/hfs/extent.c:174 hfs_ext_read_extent fs/hfs/extent.c:202 [inline] hfs_extend_file+0x2d0/0x1094 fs/hfs/extent.c:401 hfs_get_block+0x324/0xa3c fs/hfs/extent.c:353 __block_write_begin_int+0x350/0x1388 fs/buffer.c:1991 __block_write_begin fs/buffer.c:2041 [inline] block_write_begin fs/buffer.c:2102 [inline] cont_write_begin+0x53c/0x780 fs/buffer.c:2456 hfs_write_begin+0x98/0xe4 fs/hfs/inode.c:58 generic_perform_write+0x234/0x4f4 mm/filemap.c:3862 __generic_file_write_iter+0x130/0x250 mm/filemap.c:3960 generic_file_write_iter+0xb4/0x2b0 mm/filemap.c:3989 call_write_iter include/linux/fs.h:2265 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x3ec/0x7f0 fs/read_write.c:584 ksys_write+0x12c/0x224 fs/read_write.c:637 __do_sys_write fs/read_write.c:649 [inline] __se_sys_write fs/read_write.c:646 [inline] __arm64_sys_write+0x7c/0x90 fs/read_write.c:646 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x290 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:140 do_el0_svc+0x58/0x130 arch/arm64/kernel/syscall.c:204 el0_svc+0x58/0x128 arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585 irq event stamp: 26454 hardirqs last enabled at (26453): [] raw_spin_rq_unlock_irq kernel/sched/sched.h:1374 [inline] hardirqs last enabled at (26453): [] finish_lock_switch+0xb0/0x1c4 kernel/sched/core.c:5004 hardirqs last disabled at (26454): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:405 softirqs last enabled at (26446): [] softirq_handle_end kernel/softirq.c:439 [inline] softirqs last enabled at (26446): [] handle_softirqs+0xaec/0xc60 kernel/softirq.c:624 softirqs last disabled at (26381): [] __do_softirq+0x14/0x20 kernel/softirq.c:630 ---[ end trace 0000000000000000 ]--- ------------[ cut here ]------------ kernel BUG at fs/hfs/bnode.c:565! Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP Modules linked in: CPU: 0 PID: 5107 Comm: syz.2.143 Tainted: G W syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/18/2026 pstate: 62400005 (nZCv daif +PAN -UAO +TCO -DIT -SSBS BTYPE=--) pc : hfs_bnode_put+0x358/0x364 fs/hfs/bnode.c:565 lr : hfs_bnode_put+0x358/0x364 fs/hfs/bnode.c:565 sp : ffff8000210a6ea0 x29: ffff8000210a6ea0 x28: 0000000000000302 x27: dfff800000000000 x26: ffff700004214de8 x25: ffff8000210a6f40 x24: 1fffe0001a5fae00 x23: ffff0000cae8e000 x22: dfff800000000000 x21: 0000000000000000 x20: ffff0000d2fd7080 x19: ffff0000d2fd7000 x18: ffff800011babf60 x17: 1fffe00033ea397e x16: ffff8000082efb0c x15: 0000000040000000 x14: 0000000000000001 x13: 1fffe0001a5fae10 x12: 0000000000080000 x11: 000000000007ffff x10: ffff80002a77f000 x9 : ffff800008fa2dd0 x8 : 0000000000080000 x7 : ffff8000118e68e4 x6 : 0000000000000000 x5 : 0000000000000000 x4 : 0000000000000001 x3 : ffff800008fa2ad4 x2 : 0000000000000000 x1 : 0000000000000000 x0 : 0000000000000000 Call trace: hfs_bnode_put+0x358/0x364 fs/hfs/bnode.c:565 hfs_btree_inc_height+0x458/0x890 fs/hfs/brec.c:544 hfs_brec_insert+0x5c4/0x97c fs/hfs/brec.c:148 __hfs_ext_write_extent+0x22c/0x484 fs/hfs/extent.c:124 __hfs_ext_cache_extent+0x84/0x74c fs/hfs/extent.c:174 hfs_ext_read_extent fs/hfs/extent.c:202 [inline] hfs_extend_file+0x2d0/0x1094 fs/hfs/extent.c:401 hfs_get_block+0x324/0xa3c fs/hfs/extent.c:353 __block_write_begin_int+0x350/0x1388 fs/buffer.c:1991 __block_write_begin fs/buffer.c:2041 [inline] block_write_begin fs/buffer.c:2102 [inline] cont_write_begin+0x53c/0x780 fs/buffer.c:2456 hfs_write_begin+0x98/0xe4 fs/hfs/inode.c:58 generic_perform_write+0x234/0x4f4 mm/filemap.c:3862 __generic_file_write_iter+0x130/0x250 mm/filemap.c:3960 generic_file_write_iter+0xb4/0x2b0 mm/filemap.c:3989 call_write_iter include/linux/fs.h:2265 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x3ec/0x7f0 fs/read_write.c:584 ksys_write+0x12c/0x224 fs/read_write.c:637 __do_sys_write fs/read_write.c:649 [inline] __se_sys_write fs/read_write.c:646 [inline] __arm64_sys_write+0x7c/0x90 fs/read_write.c:646 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x290 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:140 do_el0_svc+0x58/0x130 arch/arm64/kernel/syscall.c:204 el0_svc+0x58/0x128 arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585 Code: aa1403e0 97e514e3 17ffffce 97d42546 (d4210000) ---[ end trace 0000000000000000 ]---