hfs: new node 0 already hashed? ------------[ cut here ]------------ WARNING: CPU: 0 PID: 1743 at fs/hfs/bnode.c:432 hfs_bnode_create+0x428/0x4ec fs/hfs/bnode.c:431 Modules linked in: CPU: 0 PID: 1743 Comm: kworker/u4:6 Not tainted 5.15.180-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 Workqueue: writeback wb_workfn (flush-7:3) pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : hfs_bnode_create+0x428/0x4ec fs/hfs/bnode.c:431 lr : hfs_bnode_create+0x428/0x4ec fs/hfs/bnode.c:431 sp : ffff800024586c30 x29: ffff800024586c40 x28: ffff0000ed717000 x27: 000000000000008c x26: ffff0000ed71708c x25: dfff800000000000 x24: 1ffff000048b0d9c x23: 0000000000000000 x22: ffff0000db8680e0 x21: ffff0000db868000 x20: 0000000000000000 x19: ffff0000da9e6400 x18: ffff800024586260 x17: 1fffe0003682e78e x16: ffff800011b54788 x15: 000000000001c96a x14: 1ffff0000296e06c x13: dfff800000000000 x12: 0000000000000001 x11: 0000000000000000 x10: 0000000000000000 x9 : c59e00fa751dbf00 x8 : c59e00fa751dbf00 x7 : 0000000000000000 x6 : 0000000000000000 x5 : 0000000000000080 x4 : 0000000000000000 x3 : ffff80000aa14f3c x2 : ffff0001b4173d10 x1 : 0000000100000000 x0 : 000000000000001f Call trace: hfs_bnode_create+0x428/0x4ec fs/hfs/bnode.c:431 hfs_bmap_alloc+0x5c0/0x6b4 fs/hfs/btree.c:288 hfs_btree_inc_height+0xf8/0x9d0 fs/hfs/brec.c:471 hfs_brec_insert+0x580/0x97c fs/hfs/brec.c:148 __hfs_ext_write_extent+0x240/0x468 fs/hfs/extent.c:124 hfs_ext_write_extent+0x148/0x1c0 fs/hfs/extent.c:144 hfs_write_inode+0xc0/0xc1c fs/hfs/inode.c:432 write_inode fs/fs-writeback.c:1495 [inline] __writeback_single_inode+0x584/0x13a4 fs/fs-writeback.c:1705 writeback_sb_inodes+0x94c/0x1654 fs/fs-writeback.c:1930 wb_writeback+0x3fc/0xfc8 fs/fs-writeback.c:2104 wb_do_writeback fs/fs-writeback.c:2247 [inline] wb_workfn+0x3a4/0x1070 fs/fs-writeback.c:2288 process_one_work+0x790/0x11b8 kernel/workqueue.c:2310 worker_thread+0x910/0x1034 kernel/workqueue.c:2457 kthread+0x37c/0x45c kernel/kthread.c:334 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:870 irq event stamp: 957550 hardirqs last enabled at (957549): [] raw_spin_rq_unlock_irq kernel/sched/sched.h:1338 [inline] hardirqs last enabled at (957549): [] finish_lock_switch+0xbc/0x1e8 kernel/sched/core.c:4784 hardirqs last disabled at (957550): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:396 softirqs last enabled at (956994): [] spin_unlock_bh include/linux/spinlock.h:408 [inline] softirqs last enabled at (956994): [] batadv_nc_purge_paths+0x308/0x38c net/batman-adv/network-coding.c:475 softirqs last disabled at (956992): [] spin_lock_bh include/linux/spinlock.h:368 [inline] softirqs last disabled at (956992): [] batadv_nc_purge_paths+0xd0/0x38c net/batman-adv/network-coding.c:446 ---[ end trace 8cadc31f833aa958 ]--- ------------[ cut here ]------------ kernel BUG at fs/hfs/bnode.c:479! Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP Modules linked in: CPU: 0 PID: 1743 Comm: kworker/u4:6 Tainted: G W 5.15.180-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 Workqueue: writeback wb_workfn (flush-7:3) pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : hfs_bnode_put+0x414/0x420 fs/hfs/bnode.c:479 lr : hfs_bnode_put+0x414/0x420 fs/hfs/bnode.c:479 sp : ffff800024586d50 x29: ffff800024586d50 x28: dfff800000000000 x27: ffff7000048b0dc0 x26: 1fffe0001b70d003 x25: 0000000000000200 x24: 1fffe0001b53cc80 x23: dfff800000000000 x22: ffff0000db868000 x21: ffff0000da9e6480 x20: 0000000000000000 x19: ffff0000da9e6400 x18: ffff800024586260 x17: 1fffe0003682e78e x16: ffff8000082513a0 x15: 000000000001c96a x14: 1ffff0000296e06c x13: dfff800000000000 x12: 0000000000000001 x11: 0000000000000000 x10: 0000000000000000 x9 : ffff0000cd9851c0 x8 : ffff800008fe1f60 x7 : ffff80000abe2934 x6 : 0000000000000000 x5 : 0000000000000000 x4 : 0000000000000001 x3 : ffff800008fe1ba4 x2 : 0000000000000000 x1 : 0000000000000000 x0 : 0000000000000000 Call trace: hfs_bnode_put+0x414/0x420 fs/hfs/bnode.c:479 hfs_btree_inc_height+0x4c0/0x9d0 fs/hfs/brec.c:525 hfs_brec_insert+0x580/0x97c fs/hfs/brec.c:148 __hfs_ext_write_extent+0x240/0x468 fs/hfs/extent.c:124 hfs_ext_write_extent+0x148/0x1c0 fs/hfs/extent.c:144 hfs_write_inode+0xc0/0xc1c fs/hfs/inode.c:432 write_inode fs/fs-writeback.c:1495 [inline] __writeback_single_inode+0x584/0x13a4 fs/fs-writeback.c:1705 writeback_sb_inodes+0x94c/0x1654 fs/fs-writeback.c:1930 wb_writeback+0x3fc/0xfc8 fs/fs-writeback.c:2104 wb_do_writeback fs/fs-writeback.c:2247 [inline] wb_workfn+0x3a4/0x1070 fs/fs-writeback.c:2288 process_one_work+0x790/0x11b8 kernel/workqueue.c:2310 worker_thread+0x910/0x1034 kernel/workqueue.c:2457 kthread+0x37c/0x45c kernel/kthread.c:334 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:870 Code: aa1403e0 97e3dbfe 17ffffa5 97d3951a (d4210000) ---[ end trace 8cadc31f833aa959 ]---