hfs: new node 0 already hashed? ------------[ cut here ]------------ WARNING: CPU: 0 PID: 42 at fs/hfs/bnode.c:520 hfs_bnode_create+0x384/0x430 fs/hfs/bnode.c:519 Modules linked in: CPU: 0 UID: 0 PID: 42 Comm: kworker/u8:3 Not tainted syzkaller #0 PREEMPT Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/03/2025 Workqueue: writeback wb_workfn (flush-7:2) pstate: 63400005 (nZCv daif +PAN -UAO +TCO +DIT -SSBS BTYPE=--) pc : hfs_bnode_create+0x384/0x430 fs/hfs/bnode.c:519 lr : hfs_bnode_create+0x384/0x430 fs/hfs/bnode.c:519 sp : ffff8000990c6c10 x29: ffff8000990c6c20 x28: 0000000000000000 x27: dfff800000000000 x26: 0000000000000080 x25: dfff800000000000 x24: 0000000000000000 x23: ffff0000f986208c x22: 0000000000000000 x21: 0000000000000000 x20: ffff00010e60a000 x19: ffff0000d84e2e00 x18: 1fffe000337db690 x17: ffff80008f57e000 x16: ffff800082deb748 x15: 0000000000000001 x14: 1fffe000337de118 x13: 0000000000000000 x12: 0000000000000000 x11: ffff800093102c88 x10: 0000000000ff0100 x9 : 7fdf747d19d1a100 x8 : 7fdf747d19d1a100 x7 : ffff800080492744 x6 : 0000000000000000 x5 : 0000000000000001 x4 : 0000000000000001 x3 : 0000000000000010 x2 : 0000000000000002 x1 : 0000000100000000 x0 : 000000000000001f Call trace: hfs_bnode_create+0x384/0x430 fs/hfs/bnode.c:519 (P) hfs_bmap_alloc+0x5b0/0x688 fs/hfs/btree.c:326 hfs_btree_inc_height+0xf8/0x870 fs/hfs/brec.c:490 hfs_brec_insert+0x640/0x9ec fs/hfs/brec.c:148 __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+0xc4/0x794 fs/hfs/inode.c:440 write_inode fs/fs-writeback.c:1564 [inline] __writeback_single_inode+0x5ac/0x13e8 fs/fs-writeback.c:1784 writeback_sb_inodes+0x55c/0xe40 fs/fs-writeback.c:2015 wb_writeback+0x3cc/0xd70 fs/fs-writeback.c:2195 wb_do_writeback fs/fs-writeback.c:2342 [inline] wb_workfn+0x338/0xdc0 fs/fs-writeback.c:2382 process_one_work+0x7e8/0x155c kernel/workqueue.c:3263 process_scheduled_works kernel/workqueue.c:3346 [inline] worker_thread+0x958/0xed8 kernel/workqueue.c:3427 kthread+0x5fc/0x75c kernel/kthread.c:463 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:844 irq event stamp: 208846 hardirqs last enabled at (208845): [] raw_spin_rq_unlock_irq kernel/sched/sched.h:1558 [inline] hardirqs last enabled at (208845): [] finish_lock_switch+0xb0/0x1c0 kernel/sched/core.c:5073 hardirqs last disabled at (208846): [] el1_brk64+0x20/0x54 arch/arm64/kernel/entry-common.c:434 softirqs last enabled at (208434): [] spin_unlock_bh include/linux/spinlock.h:396 [inline] softirqs last enabled at (208434): [] nsim_dev_trap_report drivers/net/netdevsim/dev.c:835 [inline] softirqs last enabled at (208434): [] nsim_dev_trap_report_work+0x67c/0x9fc drivers/net/netdevsim/dev.c:866 softirqs last disabled at (208432): [] spin_lock_bh include/linux/spinlock.h:356 [inline] softirqs last disabled at (208432): [] nsim_dev_trap_report drivers/net/netdevsim/dev.c:831 [inline] softirqs last disabled at (208432): [] nsim_dev_trap_report_work+0x5f4/0x9fc drivers/net/netdevsim/dev.c:866 ---[ end trace 0000000000000000 ]--- ------------[ cut here ]------------ kernel BUG at fs/hfs/bnode.c:565! Internal error: Oops - BUG: 00000000f2000800 [#1] SMP Modules linked in: CPU: 0 UID: 0 PID: 42 Comm: kworker/u8:3 Tainted: G W syzkaller #0 PREEMPT Tainted: [W]=WARN Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/03/2025 Workqueue: writeback wb_workfn (flush-7:2) pstate: 83400005 (Nzcv daif +PAN -UAO +TCO +DIT -SSBS BTYPE=--) pc : hfs_bnode_put+0x43c/0x5f0 fs/hfs/bnode.c:565 lr : hfs_bnode_put+0x43c/0x5f0 fs/hfs/bnode.c:565 sp : ffff8000990c6cf0 x29: ffff8000990c6d00 x28: 0000000000000302 x27: dfff800000000000 x26: ffff700013218db4 x25: 1fffe0001b09c5c0 x24: ffff00010e60a000 x23: dfff800000000000 x22: 1fffe0001b09c5d0 x21: 0000000000000000 x20: ffff0000d84e2e80 x19: ffff0000d84e2e00 x18: 1fffe000337db690 x17: ffff80008f57e000 x16: ffff80008053739c x15: 0000000000000001 x14: 1fffe0001b09c5d0 x13: 0000000000000000 x12: 0000000000000000 x11: ffff60001b09c5d1 x10: 0000000000ff0100 x9 : 0000000000000000 x8 : ffff0000c1c53d80 x7 : ffff80008ad63580 x6 : 0000000000000000 x5 : 0000000000000000 x4 : 0000000000000001 x3 : ffff800081321ff0 x2 : 0000000000000000 x1 : 0000000000000000 x0 : 0000000000000000 Call trace: hfs_bnode_put+0x43c/0x5f0 fs/hfs/bnode.c:565 (P) hfs_btree_inc_height+0x448/0x870 fs/hfs/brec.c:544 hfs_brec_insert+0x640/0x9ec fs/hfs/brec.c:148 __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+0xc4/0x794 fs/hfs/inode.c:440 write_inode fs/fs-writeback.c:1564 [inline] __writeback_single_inode+0x5ac/0x13e8 fs/fs-writeback.c:1784 writeback_sb_inodes+0x55c/0xe40 fs/fs-writeback.c:2015 wb_writeback+0x3cc/0xd70 fs/fs-writeback.c:2195 wb_do_writeback fs/fs-writeback.c:2342 [inline] wb_workfn+0x338/0xdc0 fs/fs-writeback.c:2382 process_one_work+0x7e8/0x155c kernel/workqueue.c:3263 process_scheduled_works kernel/workqueue.c:3346 [inline] worker_thread+0x958/0xed8 kernel/workqueue.c:3427 kthread+0x5fc/0x75c kernel/kthread.c:463 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:844 Code: d2d00017 f2fbfff7 17ffff09 97d0507b (d4210000) ---[ end trace 0000000000000000 ]---