hfs: new node 0 already hashed? ------------[ cut here ]------------ WARNING: CPU: 1 PID: 7092 at fs/hfs/bnode.c:520 hfs_bnode_create+0x40c/0x4c4 fs/hfs/bnode.c:519 Modules linked in: CPU: 1 PID: 7092 Comm: syz.7.467 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/26/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 : ffff800020dc6b40 x29: ffff800020dc6b60 x28: ffff7000041b8d7c x27: dfff800000000000 x26: 0000000000000080 x25: 0000000000000000 x24: ffff0000c4bef888 x23: dfff800000000000 x22: 0000000000000000 x21: ffff0000cf482000 x20: 0000000000000000 x19: ffff0000c4bef800 x18: ffff800011b9bf60 x17: 1fffe00033eaa57e x16: ffff8000082d92bc x15: ffff80001521d000 x14: 0000000000000001 x13: 1ffff000041b8cd0 x12: 0000000000080000 x11: 000000000003a7f2 x10: ffff800025b2b000 x9 : c731f12129c65800 x8 : c731f12129c65800 x7 : ffff800008257984 x6 : 0000000000000000 x5 : 0000000000000080 x4 : 0000000000000001 x3 : ffff80000a890350 x2 : ffff00019f552d10 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+0x118/0x97c fs/hfs/brec.c:77 __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 cont_expand_zero fs/buffer.c:2383 [inline] cont_write_begin+0x25c/0x780 fs/buffer.c:2446 hfs_write_begin+0x98/0xe4 fs/hfs/inode.c:58 hfs_file_truncate+0x170/0x820 fs/hfs/extent.c:494 hfs_inode_setattr+0x3a0/0x5bc fs/hfs/inode.c:659 notify_change+0xb0c/0xdcc fs/attr.c:499 do_truncate+0x188/0x20c fs/open.c:65 vfs_truncate+0x23c/0x2b0 fs/open.c:111 do_sys_truncate+0xec/0x1b4 fs/open.c:134 __do_sys_truncate fs/open.c:146 [inline] __se_sys_truncate fs/open.c:144 [inline] __arm64_sys_truncate+0x5c/0x70 fs/open.c:144 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2b4 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: 8186 hardirqs last enabled at (8185): [] raw_spin_rq_unlock_irq kernel/sched/sched.h:1374 [inline] hardirqs last enabled at (8185): [] finish_lock_switch+0xb0/0x1c4 kernel/sched/core.c:5004 hardirqs last disabled at (8186): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:405 softirqs last enabled at (7098): [] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:32 softirqs last disabled at (7096): [] local_bh_disable+0x10/0x34 include/linux/bottom_half.h:19 ---[ 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: 1 PID: 7092 Comm: syz.7.467 Tainted: G W syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/26/2026 pstate: 82400005 (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 : ffff800020dc6c40 x29: ffff800020dc6c40 x28: 0000000000000001 x27: dfff800000000000 x26: ffff7000041b8d9c x25: ffff800020dc6ce0 x24: 1fffe0001897df00 x23: ffff0000cf482000 x22: dfff800000000000 x21: 0000000000000000 x20: ffff0000c4bef880 x19: ffff0000c4bef800 x18: ffff800011b9bf60 x17: 1fffe00033eaa57e x16: ffff8000082d92bc x15: ffff80001521d000 x14: 0000000000000001 x13: 1fffe0001897df10 x12: 0000000000080000 x11: 000000000005b3cc x10: ffff800025b2b000 x9 : ffff800008fa1f50 x8 : 000000000005b3cd x7 : ffff80000836a250 x6 : 0000000000000000 x5 : 0000000000000080 x4 : 0000000000000001 x3 : ffff800008fa1c54 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+0x118/0x97c fs/hfs/brec.c:77 __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 cont_expand_zero fs/buffer.c:2383 [inline] cont_write_begin+0x25c/0x780 fs/buffer.c:2446 hfs_write_begin+0x98/0xe4 fs/hfs/inode.c:58 hfs_file_truncate+0x170/0x820 fs/hfs/extent.c:494 hfs_inode_setattr+0x3a0/0x5bc fs/hfs/inode.c:659 notify_change+0xb0c/0xdcc fs/attr.c:499 do_truncate+0x188/0x20c fs/open.c:65 vfs_truncate+0x23c/0x2b0 fs/open.c:111 do_sys_truncate+0xec/0x1b4 fs/open.c:134 __do_sys_truncate fs/open.c:146 [inline] __se_sys_truncate fs/open.c:144 [inline] __arm64_sys_truncate+0x5c/0x70 fs/open.c:144 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2b4 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 97e5155f 17ffffce 97d42593 (d4210000) ---[ end trace 0000000000000000 ]---