hfs: new node 0 already hashed? ------------[ cut here ]------------ WARNING: CPU: 0 PID: 11 at fs/hfs/bnode.c:422 hfs_bnode_create+0x430/0x4e4 fs/hfs/bnode.c:421 Modules linked in: CPU: 0 PID: 11 Comm: kworker/u8:1 Not tainted 6.9.0-rc7-syzkaller-g1c9135d29e9e #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 Workqueue: writeback wb_workfn (flush-7:1) pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : hfs_bnode_create+0x430/0x4e4 fs/hfs/bnode.c:421 lr : hfs_bnode_create+0x430/0x4e4 fs/hfs/bnode.c:421 sp : ffff800093c46ab0 x29: ffff800093c46ac0 x28: dfff800000000000 x27: dfff800000000000 x26: 000000000000016c x25: ffff0000cb9eeb88 x24: 0000000000000000 x23: 0000000000000000 x22: ffff0000c8dd80e0 x21: ffff0000c8dd8000 x20: 0000000000000000 x19: ffff0000cb9eeb00 x18: 1fffe000367b8d96 x17: ffff80008ee9d000 x16: ffff80008ae89e3c x15: 0000000000000001 x14: 1ffff00012788ca8 x13: 0000000000000000 x12: 0000000000000000 x11: 0000000000000001 x10: 0000000000ff0100 x9 : 0fa0b13a26470900 x8 : 0fa0b13a26470900 x7 : ffff8000802aa2c0 x6 : 0000000000000000 x5 : 0000000000000001 x4 : 0000000000000001 x3 : ffff800082f22378 x2 : 0000000000000001 x1 : 0000000100000000 x0 : 000000000000001f Call trace: hfs_bnode_create+0x430/0x4e4 fs/hfs/bnode.c:421 hfs_bmap_alloc+0x5a4/0x66c fs/hfs/btree.c:291 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:427 write_inode fs/fs-writeback.c:1498 [inline] __writeback_single_inode+0x5f0/0x1548 fs/fs-writeback.c:1715 writeback_sb_inodes+0x700/0x101c fs/fs-writeback.c:1941 wb_writeback+0x404/0x1048 fs/fs-writeback.c:2117 wb_do_writeback fs/fs-writeback.c:2264 [inline] wb_workfn+0x394/0x104c fs/fs-writeback.c:2304 process_one_work+0x7b8/0x15d4 kernel/workqueue.c:3267 process_scheduled_works kernel/workqueue.c:3348 [inline] worker_thread+0x938/0xef4 kernel/workqueue.c:3429 kthread+0x288/0x310 kernel/kthread.c:388 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:860 irq event stamp: 854514 hardirqs last enabled at (854513): [] raw_spin_rq_unlock_irq kernel/sched/sched.h:1399 [inline] hardirqs last enabled at (854513): [] finish_lock_switch+0xbc/0x1e4 kernel/sched/core.c:5163 hardirqs last disabled at (854514): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:470 softirqs last enabled at (854338): [] spin_unlock_bh include/linux/spinlock.h:396 [inline] softirqs last enabled at (854338): [] batadv_nc_purge_paths+0x2f4/0x378 net/batman-adv/network-coding.c:471 softirqs last disabled at (854336): [] spin_lock_bh include/linux/spinlock.h:356 [inline] softirqs last disabled at (854336): [] 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:467! Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP Modules linked in: CPU: 0 PID: 11 Comm: kworker/u8:1 Tainted: G W 6.9.0-rc7-syzkaller-g1c9135d29e9e #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 Workqueue: writeback wb_workfn (flush-7:1) pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : hfs_bnode_put+0x318/0x324 fs/hfs/bnode.c:467 lr : hfs_bnode_put+0x318/0x324 fs/hfs/bnode.c:467 sp : ffff800093c46bd0 x29: ffff800093c46bd0 x28: dfff800000000000 x27: ffff700012788d90 x26: 1fffe000191bb003 x25: 0000000000000200 x24: 1fffe0001973dd60 x23: dfff800000000000 x22: ffff0000c8dd8000 x21: ffff0000cb9eeb80 x20: 0000000000000000 x19: ffff0000cb9eeb00 x18: 1fffe000367b8d96 x17: ffff80008ee9d000 x16: ffff800080288ddc x15: 0000000000000001 x14: 1fffe0001973dd70 x13: 0000000000000000 x12: 0000000000000000 x11: ffff60001973dd71 x10: 0000000000ff0100 x9 : 0000000000000000 x8 : ffff0000c19c3c80 x7 : ffff80008adc9a6c x6 : 0000000000000000 x5 : 0000000000000000 x4 : 0000000000000001 x3 : ffff80008119e728 x2 : 0000000000000000 x1 : 0000000000000000 x0 : 0000000000000000 Call trace: hfs_bnode_put+0x318/0x324 fs/hfs/bnode.c:467 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:427 write_inode fs/fs-writeback.c:1498 [inline] __writeback_single_inode+0x5f0/0x1548 fs/fs-writeback.c:1715 writeback_sb_inodes+0x700/0x101c fs/fs-writeback.c:1941 wb_writeback+0x404/0x1048 fs/fs-writeback.c:2117 wb_do_writeback fs/fs-writeback.c:2264 [inline] wb_workfn+0x394/0x104c fs/fs-writeback.c:2304 process_one_work+0x7b8/0x15d4 kernel/workqueue.c:3267 process_scheduled_works kernel/workqueue.c:3348 [inline] worker_thread+0x938/0xef4 kernel/workqueue.c:3429 kthread+0x288/0x310 kernel/kthread.c:388 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:860 Code: aa1503e0 97e2c44a 17ffffd5 97cecbfe (d4210000) ---[ end trace 0000000000000000 ]---