hfs: new node 0 already hashed? ------------[ cut here ]------------ WARNING: CPU: 0 PID: 6429 at fs/hfs/bnode.c:522 hfs_bnode_create+0x418/0x4c8 fs/hfs/bnode.c:521 Modules linked in: CPU: 0 PID: 6429 Comm: syz.3.330 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/14/2026 pstate: 62400005 (nZCv daif +PAN -UAO +TCO -DIT -SSBS BTYPE=--) pc : hfs_bnode_create+0x418/0x4c8 fs/hfs/bnode.c:521 lr : hfs_bnode_create+0x418/0x4c8 fs/hfs/bnode.c:521 sp : ffff800021926c20 x29: ffff800021926c40 x28: ffff700004324d98 x27: 0000000000000000 x26: 0000000000000080 x25: 0000000000000000 x24: dfff800000000000 x23: dfff800000000000 x22: 0000000000000000 x21: 0000000000000000 x20: ffff0000e022e000 x19: ffff0000d27a8c00 x18: 1fffe00033e6df7e x17: ffff80001539d000 x16: ffff800011ba0e90 x15: 0000000040000000 x14: 0000000000000001 x13: 1ffff00004324cec x12: 0000000000000000 x11: ff00800008315498 x10: 0000000000000000 x9 : 4996c24920f2c800 x8 : 4996c24920f2c800 x7 : ffff80000825ab48 x6 : 0000000000000000 x5 : 0000000000000080 x4 : 0000000000000001 x3 : ffff80000a929b3c x2 : ffff00019f36fd10 x1 : 0000000100000000 x0 : 000000000000001f Call trace: hfs_bnode_create+0x418/0x4c8 fs/hfs/bnode.c:521 hfs_bmap_alloc+0x500/0x5b4 fs/hfs/btree.c:291 hfs_btree_inc_height+0x108/0x848 fs/hfs/brec.c:490 hfs_brec_insert+0x5cc/0x998 fs/hfs/brec.c:148 __hfs_ext_write_extent+0x234/0x480 fs/hfs/extent.c:124 __hfs_ext_cache_extent+0x84/0x76c fs/hfs/extent.c:174 hfs_ext_read_extent fs/hfs/extent.c:202 [inline] hfs_extend_file+0x29c/0x100c fs/hfs/extent.c:401 hfs_get_block+0x300/0xa14 fs/hfs/extent.c:353 __block_write_begin_int+0x3d8/0x13c0 fs/buffer.c:1991 __block_write_begin fs/buffer.c:2041 [inline] block_write_begin fs/buffer.c:2102 [inline] cont_write_begin+0x5b4/0x820 fs/buffer.c:2456 hfs_write_begin+0x98/0xe4 fs/hfs/inode.c:59 cont_expand_zero fs/buffer.c:2383 [inline] cont_write_begin+0x290/0x820 fs/buffer.c:2446 hfs_write_begin+0x98/0xe4 fs/hfs/inode.c:59 hfs_file_truncate+0x174/0x810 fs/hfs/extent.c:494 hfs_inode_setattr+0x3a0/0x5bc fs/hfs/inode.c:660 notify_change+0xb5c/0xe20 fs/attr.c:499 do_truncate+0x188/0x20c fs/open.c:65 do_sys_ftruncate+0x284/0x318 fs/open.c:193 __do_sys_ftruncate fs/open.c:204 [inline] __se_sys_ftruncate fs/open.c:202 [inline] __arm64_sys_ftruncate+0x60/0x74 fs/open.c:202 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x290 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x13c/0x258 arch/arm64/kernel/syscall.c:140 do_el0_svc+0x5c/0x134 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: 2338 hardirqs last enabled at (2337): [] raw_spin_rq_unlock_irq kernel/sched/sched.h:1374 [inline] hardirqs last enabled at (2337): [] finish_lock_switch+0xb0/0x1c8 kernel/sched/core.c:5005 hardirqs last disabled at (2338): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:405 softirqs last enabled at (2266): [] softirq_handle_end kernel/softirq.c:439 [inline] softirqs last enabled at (2266): [] handle_softirqs+0xb1c/0xc90 kernel/softirq.c:624 softirqs last disabled at (2203): [] __do_softirq+0x14/0x20 kernel/softirq.c:630 ---[ end trace 0000000000000000 ]--- ------------[ cut here ]------------ kernel BUG at fs/hfs/bnode.c:567! Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP Modules linked in: CPU: 0 PID: 6429 Comm: syz.3.330 Tainted: G W syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/14/2026 pstate: 82400005 (Nzcv daif +PAN -UAO +TCO -DIT -SSBS BTYPE=--) pc : hfs_bnode_put+0x358/0x364 fs/hfs/bnode.c:567 lr : hfs_bnode_put+0x358/0x364 fs/hfs/bnode.c:567 sp : ffff800021926d20 x29: ffff800021926d20 x28: 0000000000000200 x27: 0000000000000001 x26: ffff800021926da0 x25: ffff0000d27a8c08 x24: 1fffe0001a4f5180 x23: ffff0000e022e000 x22: dfff800000000000 x21: 0000000000000000 x20: ffff0000d27a8c80 x19: ffff0000d27a8c00 x18: 1fffe00033e6df7e x17: ffff80001539d000 x16: ffff800011ba0e90 x15: 0000000040000000 x14: 0000000000000001 x13: 1fffe0001a4f5190 x12: 0000000000000000 x11: ff00800008fba2c4 x10: 0000000000000000 x9 : ffff800008fba2c4 x8 : ffff0000d1a0d400 x7 : ffff8000089501b0 x6 : 0000000000000000 x5 : 0000000000000000 x4 : 0000000000000000 x3 : ffff800008fb9fc8 x2 : 0000000000000000 x1 : 0000000000000000 x0 : 0000000000000000 Call trace: hfs_bnode_put+0x358/0x364 fs/hfs/bnode.c:567 hfs_btree_inc_height+0x464/0x848 fs/hfs/brec.c:544 hfs_brec_insert+0x5cc/0x998 fs/hfs/brec.c:148 __hfs_ext_write_extent+0x234/0x480 fs/hfs/extent.c:124 __hfs_ext_cache_extent+0x84/0x76c fs/hfs/extent.c:174 hfs_ext_read_extent fs/hfs/extent.c:202 [inline] hfs_extend_file+0x29c/0x100c fs/hfs/extent.c:401 hfs_get_block+0x300/0xa14 fs/hfs/extent.c:353 __block_write_begin_int+0x3d8/0x13c0 fs/buffer.c:1991 __block_write_begin fs/buffer.c:2041 [inline] block_write_begin fs/buffer.c:2102 [inline] cont_write_begin+0x5b4/0x820 fs/buffer.c:2456 hfs_write_begin+0x98/0xe4 fs/hfs/inode.c:59 cont_expand_zero fs/buffer.c:2383 [inline] cont_write_begin+0x290/0x820 fs/buffer.c:2446 hfs_write_begin+0x98/0xe4 fs/hfs/inode.c:59 hfs_file_truncate+0x174/0x810 fs/hfs/extent.c:494 hfs_inode_setattr+0x3a0/0x5bc fs/hfs/inode.c:660 notify_change+0xb5c/0xe20 fs/attr.c:499 do_truncate+0x188/0x20c fs/open.c:65 do_sys_ftruncate+0x284/0x318 fs/open.c:193 __do_sys_ftruncate fs/open.c:204 [inline] __se_sys_ftruncate fs/open.c:202 [inline] __arm64_sys_ftruncate+0x60/0x74 fs/open.c:202 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x290 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x13c/0x258 arch/arm64/kernel/syscall.c:140 do_el0_svc+0x5c/0x134 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 97e4ece7 17ffffce 97d3e2a0 (d4210000) ---[ end trace 0000000000000000 ]---