hfs: new node 0 already hashed? ------------[ cut here ]------------ WARNING: CPU: 1 PID: 39 at fs/hfs/bnode.c:520 hfs_bnode_create+0x40c/0x4c4 fs/hfs/bnode.c:519 Modules linked in: CPU: 1 PID: 39 Comm: kworker/u4:2 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/03/2025 Workqueue: writeback wb_workfn (flush-7:3) 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 : ffff80001ced6d40 x29: ffff80001ced6d60 x28: ffff7000039dadbc x27: dfff800000000000 x26: 0000000000000080 x25: 0000000000000000 x24: ffff0000d1d49888 x23: dfff800000000000 x22: 0000000000000000 x21: ffff0000cceae000 x20: 0000000000000000 x19: ffff0000d1d49800 x18: 0000000000000000 x17: 0000000000000000 x16: ffff8000082d9364 x15: 0000000000000000 x14: 0000000000000001 x13: 1ffff000039dad10 x12: 0000000000ff0100 x11: ff00800008311710 x10: 0000000000000000 x9 : ebb44d796ca46100 x8 : ebb44d796ca46100 x7 : 0000000000000001 x6 : 0000000000000001 x5 : ffff80001ced6818 x4 : ffff8000152f4cc0 x3 : ffff80000a88bd70 x2 : ffff00019f564d10 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+0x5c4/0x97c fs/hfs/brec.c:148 __hfs_ext_write_extent+0x22c/0x484 fs/hfs/extent.c:124 hfs_ext_write_extent+0x154/0x1e0 fs/hfs/extent.c:144 hfs_write_inode+0xf0/0x8dc fs/hfs/inode.c:434 write_inode fs/fs-writeback.c:1470 [inline] __writeback_single_inode+0x5e0/0x1554 fs/fs-writeback.c:1687 writeback_sb_inodes+0x858/0x143c fs/fs-writeback.c:1913 wb_writeback+0x414/0xfcc fs/fs-writeback.c:2087 wb_do_writeback fs/fs-writeback.c:2230 [inline] wb_workfn+0x360/0xe18 fs/fs-writeback.c:2270 process_one_work+0x7f8/0x13a4 kernel/workqueue.c:2292 worker_thread+0x8c4/0xfec 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: 1479306 hardirqs last enabled at (1479305): [] __up_console_sem+0xb4/0xfc kernel/printk/printk.c:261 hardirqs last disabled at (1479306): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:405 softirqs last enabled at (1479172): [] spin_unlock_bh include/linux/spinlock.h:396 [inline] softirqs last enabled at (1479172): [] batadv_nc_purge_paths+0x2f0/0x378 net/batman-adv/network-coding.c:471 softirqs last disabled at (1479170): [] spin_lock_bh include/linux/spinlock.h:356 [inline] softirqs last disabled at (1479170): [] batadv_nc_purge_paths+0xd0/0x378 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: 1 PID: 39 Comm: kworker/u4:2 Tainted: G W syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/03/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 : ffff80001ced6e40 x29: ffff80001ced6e40 x28: 0000000000000302 x27: dfff800000000000 x26: ffff7000039daddc x25: ffff80001ced6ee0 x24: 1fffe0001a3a9300 x23: ffff0000cceae000 x22: dfff800000000000 x21: 0000000000000000 x20: ffff0000d1d49880 x19: ffff0000d1d49800 x18: 0000000000000000 x17: 0000000000000000 x16: ffff8000082ef028 x15: 0000000000000000 x14: 0000000000000001 x13: 1fffe0001a3a9310 x12: 0000000000ff0100 x11: ff00800008fa0038 x10: 0000000000000000 x9 : ffff800008fa0038 x8 : ffff0000c43c5340 x7 : ffff8000118b9ae4 x6 : 0000000000000000 x5 : 0000000000000000 x4 : 0000000000000001 x3 : ffff800008f9fd3c 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+0x5c4/0x97c fs/hfs/brec.c:148 __hfs_ext_write_extent+0x22c/0x484 fs/hfs/extent.c:124 hfs_ext_write_extent+0x154/0x1e0 fs/hfs/extent.c:144 hfs_write_inode+0xf0/0x8dc fs/hfs/inode.c:434 write_inode fs/fs-writeback.c:1470 [inline] __writeback_single_inode+0x5e0/0x1554 fs/fs-writeback.c:1687 writeback_sb_inodes+0x858/0x143c fs/fs-writeback.c:1913 wb_writeback+0x414/0xfcc fs/fs-writeback.c:2087 wb_do_writeback fs/fs-writeback.c:2230 [inline] wb_workfn+0x360/0xe18 fs/fs-writeback.c:2270 process_one_work+0x7f8/0x13a4 kernel/workqueue.c:2292 worker_thread+0x8c4/0xfec kernel/workqueue.c:2439 kthread+0x250/0x2d8 kernel/kthread.c:376 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:850 Code: aa1403e0 97e5160c 17ffffce 97d42cad (d4210000) ---[ end trace 0000000000000000 ]---