hfs: new node 0 already hashed? ------------[ cut here ]------------ WARNING: CPU: 0 PID: 4367 at fs/hfs/bnode.c:520 hfs_bnode_create+0x40c/0x4c8 fs/hfs/bnode.c:519 Modules linked in: CPU: 0 PID: 4367 Comm: kworker/u4:5 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/30/2025 Workqueue: writeback wb_workfn (flush-7:3) pstate: 62400005 (nZCv daif +PAN -UAO +TCO -DIT -SSBS BTYPE=--) pc : hfs_bnode_create+0x40c/0x4c8 fs/hfs/bnode.c:519 lr : hfs_bnode_create+0x40c/0x4c8 fs/hfs/bnode.c:519 sp : ffff800020b86d40 x29: ffff800020b86d60 x28: dfff800000000000 x27: dfff800000000000 x26: 0000000000000080 x25: 0000000000000000 x24: ffff0000fc3b8688 x23: 1ffff00004170dbc x22: 0000000000000000 x21: ffff0000fc76c000 x20: 0000000000000000 x19: ffff0000fc3b8600 x18: 0000000000000000 x17: 0000000000000000 x16: ffff8000082d22e0 x15: 0000000000000000 x14: 00000000ffffffff x13: 0000000000000001 x12: 0000000000ff0100 x11: ff00800008309fc0 x10: 0000000000000000 x9 : e0a36700a5428e00 x8 : e0a36700a5428e00 x7 : 0000000000000001 x6 : 0000000000000001 x5 : ffff800020b86818 x4 : ffff8000151a4820 x3 : ffff80000a84592c x2 : ffff00019f6bcd10 x1 : 0000000100000000 x0 : 000000000000001f Call trace: hfs_bnode_create+0x40c/0x4c8 fs/hfs/bnode.c:519 hfs_bmap_alloc+0x4f4/0x59c fs/hfs/btree.c:291 hfs_btree_inc_height+0xf8/0x870 fs/hfs/brec.c:471 hfs_brec_insert+0x5bc/0x96c 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+0xbc/0x880 fs/hfs/inode.c:434 write_inode fs/fs-writeback.c:1460 [inline] __writeback_single_inode+0x5e0/0x157c fs/fs-writeback.c:1677 writeback_sb_inodes+0x824/0x1404 fs/fs-writeback.c:1903 wb_writeback+0x400/0xfb0 fs/fs-writeback.c:2077 wb_do_writeback fs/fs-writeback.c:2220 [inline] wb_workfn+0x34c/0xd98 fs/fs-writeback.c:2260 process_one_work+0x7f4/0x13a8 kernel/workqueue.c:2292 worker_thread+0x8c8/0xfbc kernel/workqueue.c:2439 kthread+0x250/0x2d8 kernel/kthread.c:376 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:850 irq event stamp: 2186326 hardirqs last enabled at (2186325): [] __up_console_sem+0xb4/0x100 kernel/printk/printk.c:261 hardirqs last disabled at (2186326): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:405 softirqs last enabled at (2186158): [] spin_unlock_bh include/linux/spinlock.h:396 [inline] softirqs last enabled at (2186158): [] batadv_nc_purge_paths+0x2f4/0x37c net/batman-adv/network-coding.c:471 softirqs last disabled at (2186156): [] spin_lock_bh include/linux/spinlock.h:356 [inline] softirqs last disabled at (2186156): [] batadv_nc_purge_paths+0xd0/0x37c net/batman-adv/network-coding.c:442 ---[ 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: 4367 Comm: kworker/u4:5 Tainted: G W syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/30/2025 Workqueue: writeback wb_workfn (flush-7:3) 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 : ffff800020b86e40 x29: ffff800020b86e40 x28: 0000000000000302 x27: dfff800000000000 x26: ffff700004170ddc x25: ffff800020b86ee0 x24: 1fffe0001f8770c0 x23: ffff0000fc76c000 x22: dfff800000000000 x21: 0000000000000000 x20: ffff0000fc3b8680 x19: ffff0000fc3b8600 x18: 0000000000000000 x17: 0000000000000000 x16: ffff8000082e7b1c x15: 0000000000000000 x14: 0000000000000001 x13: 1ffff00002a180b1 x12: 0000000000ff0100 x11: ff00800008f84bd8 x10: 0000000000000000 x9 : ffff800008f84bd8 x8 : ffff0000f1c65340 x7 : ffff8000117f38e4 x6 : 0000000000000000 x5 : 0000000000000000 x4 : 0000000000000001 x3 : ffff800008f848dc x2 : 0000000000000000 x1 : 0000000000000000 x0 : 0000000000000000 Call trace: hfs_bnode_put+0x358/0x364 fs/hfs/bnode.c:565 hfs_btree_inc_height+0x448/0x870 fs/hfs/brec.c:525 hfs_brec_insert+0x5bc/0x96c 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+0xbc/0x880 fs/hfs/inode.c:434 write_inode fs/fs-writeback.c:1460 [inline] __writeback_single_inode+0x5e0/0x157c fs/fs-writeback.c:1677 writeback_sb_inodes+0x824/0x1404 fs/fs-writeback.c:1903 wb_writeback+0x400/0xfb0 fs/fs-writeback.c:2077 wb_do_writeback fs/fs-writeback.c:2220 [inline] wb_workfn+0x34c/0xd98 fs/fs-writeback.c:2260 process_one_work+0x7f4/0x13a8 kernel/workqueue.c:2292 worker_thread+0x8c8/0xfbc kernel/workqueue.c:2439 kthread+0x250/0x2d8 kernel/kthread.c:376 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:850 Code: aa1403e0 97e5480b 17ffffce 97d47331 (d4210000) ---[ end trace 0000000000000000 ]---