hfs: new node 0 already hashed? ------------[ cut here ]------------ WARNING: CPU: 1 PID: 7008 at fs/hfs/bnode.c:428 hfs_bnode_create+0x384/0x430 fs/hfs/bnode.c:427 Modules linked in: CPU: 1 UID: 0 PID: 7008 Comm: kworker/u8:27 Not tainted 6.16.0-rc4-syzkaller-g7482bb149b9f #0 PREEMPT Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 Workqueue: writeback wb_workfn (flush-7:1) pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : hfs_bnode_create+0x384/0x430 fs/hfs/bnode.c:427 lr : hfs_bnode_create+0x384/0x430 fs/hfs/bnode.c:427 sp : ffff8000a4096c10 x29: ffff8000a4096c20 x28: dfff800000000000 x27: dfff800000000000 x26: 000000000000008c x25: 0000000000000000 x24: 0000000000000080 x23: ffff0000d065e088 x22: 0000000000000000 x21: 0000000000000000 x20: ffff0000d98d8000 x19: ffff0000d065e000 x18: 00000000ffffffff x17: ffff800093363000 x16: ffff80008aefca08 x15: 0000000000000001 x14: 1ffff00014812cf8 x13: 0000000000000000 x12: 0000000000000000 x11: ffff700014812cf9 x10: 0000000000ff0100 x9 : a563fd666c1ec600 x8 : a563fd666c1ec600 x7 : 0000000000000001 x6 : 0000000000000001 x5 : ffff8000a4096598 x4 : ffff80008f766c20 x3 : ffff8000807c0344 x2 : 0000000000000001 x1 : 0000000100000000 x0 : 000000000000001f Call trace: hfs_bnode_create+0x384/0x430 fs/hfs/bnode.c:427 (P) hfs_bmap_alloc+0x448/0x4dc 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/0x704 fs/hfs/inode.c:429 write_inode fs/fs-writeback.c:1525 [inline] __writeback_single_inode+0x5ac/0x13e8 fs/fs-writeback.c:1745 writeback_sb_inodes+0x558/0xe38 fs/fs-writeback.c:1976 wb_writeback+0x3cc/0xd70 fs/fs-writeback.c:2156 wb_do_writeback fs/fs-writeback.c:2303 [inline] wb_workfn+0x338/0xdc0 fs/fs-writeback.c:2343 process_one_work+0x7e8/0x155c kernel/workqueue.c:3238 process_scheduled_works kernel/workqueue.c:3321 [inline] worker_thread+0x958/0xed8 kernel/workqueue.c:3402 kthread+0x5fc/0x75c kernel/kthread.c:464 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:847 irq event stamp: 244978 hardirqs last enabled at (244977): [] __up_console_sem kernel/printk/printk.c:344 [inline] hardirqs last enabled at (244977): [] __console_unlock+0x70/0xc4 kernel/printk/printk.c:2885 hardirqs last disabled at (244978): [] el1_brk64+0x1c/0x48 arch/arm64/kernel/entry-common.c:574 softirqs last enabled at (244922): [] spin_unlock_bh include/linux/spinlock.h:396 [inline] softirqs last enabled at (244922): [] batadv_nc_purge_paths+0x2f4/0x37c net/batman-adv/network-coding.c:471 softirqs last disabled at (244920): [] spin_lock_bh include/linux/spinlock.h:356 [inline] softirqs last disabled at (244920): [] 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:473! Internal error: Oops - BUG: 00000000f2000800 [#1] SMP Modules linked in: CPU: 0 UID: 0 PID: 7008 Comm: kworker/u8:27 Tainted: G W 6.16.0-rc4-syzkaller-g7482bb149b9f #0 PREEMPT Tainted: [W]=WARN Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 Workqueue: writeback wb_workfn (flush-7:1) pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : hfs_bnode_put+0x31c/0x328 fs/hfs/bnode.c:473 lr : hfs_bnode_put+0x31c/0x328 fs/hfs/bnode.c:473 sp : ffff8000a4096d00 x29: ffff8000a4096d00 x28: 000000000000e304 x27: dfff800000000000 x26: ffff700014812db4 x25: ffff8000a4096da0 x24: 1fffe0001a0cbc00 x23: dfff800000000000 x22: ffff0000d98d8000 x21: 0000000000000000 x20: ffff0000d065e080 x19: ffff0000d065e000 x18: 00000000ffffffff x17: ffff800093363000 x16: ffff80008052cb8c x15: 0000000000000001 x14: 1fffe0001a0cbc10 x13: 0000000000000000 x12: 0000000000000000 x11: ffff60001a0cbc11 x10: 0000000000ff0100 x9 : 0000000000000000 x8 : ffff0000ce0e1e80 x7 : ffff80008ae69540 x6 : 0000000000000000 x5 : 0000000000000000 x4 : 0000000000000001 x3 : ffff8000812c7424 x2 : 0000000000000000 x1 : 0000000000000000 x0 : 0000000000000000 Call trace: hfs_bnode_put+0x31c/0x328 fs/hfs/bnode.c:473 (P) 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/0x704 fs/hfs/inode.c:429 write_inode fs/fs-writeback.c:1525 [inline] __writeback_single_inode+0x5ac/0x13e8 fs/fs-writeback.c:1745 writeback_sb_inodes+0x558/0xe38 fs/fs-writeback.c:1976 wb_writeback+0x3cc/0xd70 fs/fs-writeback.c:2156 wb_do_writeback fs/fs-writeback.c:2303 [inline] wb_workfn+0x338/0xdc0 fs/fs-writeback.c:2343 process_one_work+0x7e8/0x155c kernel/workqueue.c:3238 process_scheduled_works kernel/workqueue.c:3321 [inline] worker_thread+0x958/0xed8 kernel/workqueue.c:3402 kthread+0x5fc/0x75c kernel/kthread.c:464 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:847 Code: aa1403e0 97e5e1cf 17ffffd4 97d16e90 (d4210000) ---[ end trace 0000000000000000 ]---