hfs: new node 0 already hashed? ------------[ cut here ]------------ WARNING: CPU: 0 PID: 41 at fs/hfs/bnode.c:422 hfs_bnode_create+0x430/0x4e4 fs/hfs/bnode.c:421 Modules linked in: CPU: 0 PID: 41 Comm: kworker/u8:2 Not tainted 6.9.0-rc7-syzkaller-gfda5695d692c #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 Workqueue: writeback wb_workfn (flush-7:0) 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 : ffff8000952a6ab0 x29: ffff8000952a6ac0 x28: dfff800000000000 x27: dfff800000000000 x26: 000000000000016c x25: ffff0000c1b5f588 x24: 0000000000000000 x23: 0000000000000000 x22: ffff0000d6ed60e0 x21: ffff0000d6ed6000 x20: 0000000000000000 x19: ffff0000c1b5f500 x18: 0000000000000008 x17: 0000000000000000 x16: ffff80008ae89e3c x15: 0000000000000001 x14: 1ffff00012a54ca8 x13: 0000000000000000 x12: 0000000000000000 x11: 0000000000000001 x10: 0000000000ff0100 x9 : c30ce180aa136700 x8 : c30ce180aa136700 x7 : 0000000000000001 x6 : 0000000000000001 x5 : ffff8000952a6238 x4 : ffff80008ef95100 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: 597412 hardirqs last enabled at (597411): [] __up_console_sem kernel/printk/printk.c:341 [inline] hardirqs last enabled at (597411): [] __console_unlock kernel/printk/printk.c:2731 [inline] hardirqs last enabled at (597411): [] console_unlock+0x17c/0x3d4 kernel/printk/printk.c:3050 hardirqs last disabled at (597412): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:470 softirqs last enabled at (596922): [] neigh_managed_work+0x1e0/0x21c net/core/neighbour.c:1618 softirqs last disabled at (596918): [] neigh_managed_work+0x40/0x21c net/core/neighbour.c:1613 ---[ 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: 41 Comm: kworker/u8:2 Tainted: G W 6.9.0-rc7-syzkaller-gfda5695d692c #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 Workqueue: writeback wb_workfn (flush-7:0) 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 : ffff8000952a6bd0 x29: ffff8000952a6bd0 x28: dfff800000000000 x27: ffff700012a54d90 x26: 1fffe0001addac03 x25: 0000000000000200 x24: 1fffe0001836bea0 x23: dfff800000000000 x22: ffff0000d6ed6000 x21: ffff0000c1b5f580 x20: 0000000000000000 x19: ffff0000c1b5f500 x18: 0000000000000008 x17: 0000000000000000 x16: ffff800080288ddc x15: 0000000000000001 x14: 1fffe0001836beb0 x13: 0000000000000000 x12: 0000000000000000 x11: ffff60001836beb1 x10: 0000000000ff0100 x9 : 0000000000000000 x8 : ffff0000c2600000 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 ]---