hfs: new node 0 already hashed? ------------[ cut here ]------------ WARNING: CPU: 1 PID: 1631 at fs/hfs/bnode.c:438 hfs_bnode_create+0x404/0x4c8 fs/hfs/bnode.c:437 Modules linked in: CPU: 1 PID: 1631 Comm: kworker/u4:5 Not tainted 5.15.184-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 Workqueue: writeback wb_workfn (flush-7:0) pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : hfs_bnode_create+0x404/0x4c8 fs/hfs/bnode.c:437 lr : hfs_bnode_create+0x404/0x4c8 fs/hfs/bnode.c:437 sp : ffff800023a66d30 x29: ffff800023a66d40 x28: 000000000000008c x27: ffff0000dd3a4000 x26: 0000000000000000 x25: dfff800000000000 x24: 0000000000000080 x23: ffff0000dd3a408c x22: 0000000000000000 x21: ffff0000cedce000 x20: 0000000000000000 x19: ffff0000c0877800 x18: 0000000000000001 x17: 0000000000000000 x16: ffff8000111a5644 x15: 00000000ffffffff x14: 0000000000ff0100 x13: 0000000000000001 x12: 0000000000ff0100 x11: 0000000000000000 x10: 0000000000000000 x9 : ea7dd859b176e800 x8 : ea7dd859b176e800 x7 : 0000000000000001 x6 : 0000000000000001 x5 : ffff800023a66618 x4 : ffff80001422f280 x3 : ffff80000a732644 x2 : ffff0001a111cd10 x1 : 0000000100000000 x0 : 000000000000001f Call trace: hfs_bnode_create+0x404/0x4c8 fs/hfs/bnode.c:437 hfs_bmap_alloc+0x540/0x604 fs/hfs/btree.c:288 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/0x880 fs/hfs/inode.c:432 write_inode fs/fs-writeback.c:1495 [inline] __writeback_single_inode+0x560/0x11f0 fs/fs-writeback.c:1705 writeback_sb_inodes+0x7fc/0x1378 fs/fs-writeback.c:1930 wb_writeback+0x3d8/0xe44 fs/fs-writeback.c:2104 wb_do_writeback fs/fs-writeback.c:2247 [inline] wb_workfn+0x350/0xdd8 fs/fs-writeback.c:2288 process_one_work+0x79c/0x1140 kernel/workqueue.c:2310 worker_thread+0x8f4/0x101c kernel/workqueue.c:2457 kthread+0x374/0x454 kernel/kthread.c:334 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:870 irq event stamp: 270174 hardirqs last enabled at (270173): [] __up_console_sem+0xb4/0x100 kernel/printk/printk.c:257 hardirqs last disabled at (270174): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:396 softirqs last enabled at (270168): [] softirq_handle_end kernel/softirq.c:401 [inline] softirqs last enabled at (270168): [] handle_softirqs+0xa4c/0xbf0 kernel/softirq.c:586 softirqs last disabled at (270163): [] __do_softirq kernel/softirq.c:592 [inline] softirqs last disabled at (270163): [] do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline] softirqs last disabled at (270163): [] invoke_softirq kernel/softirq.c:439 [inline] softirqs last disabled at (270163): [] __irq_exit_rcu+0x240/0x440 kernel/softirq.c:641 ---[ end trace 24f2667965cad970 ]--- ------------[ cut here ]------------ kernel BUG at fs/hfs/bnode.c:485! Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP Modules linked in: CPU: 1 PID: 1631 Comm: kworker/u4:5 Tainted: G W 5.15.184-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 Workqueue: writeback wb_workfn (flush-7:0) pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : hfs_bnode_put+0x418/0x424 fs/hfs/bnode.c:485 lr : hfs_bnode_put+0x418/0x424 fs/hfs/bnode.c:485 sp : ffff800023a66e20 x29: ffff800023a66e20 x28: 0000000000000302 x27: dfff800000000000 x26: ffff70000474cdd8 x25: ffff800023a66ec0 x24: ffff0000cedce000 x23: dfff800000000000 x22: 1fffe0001810ef00 x21: 0000000000000000 x20: ffff0000c0877880 x19: ffff0000c0877800 x18: 0000000000000001 x17: 0000000000000000 x16: ffff8000082d4b38 x15: 00000000ffffffff x14: 1fffe0001810ef03 x13: 1ffff0000282a06b x12: 0000000000ff0100 x11: 0000000000000000 x10: 0000000000000000 x9 : ffff800008ed4398 x8 : ffff0000cce41b40 x7 : ffff80000a8f3b64 x6 : 0000000000000000 x5 : 0000000000000000 x4 : 0000000000000001 x3 : ffff800008ed3fdc x2 : 0000000000000000 x1 : 0000000000000000 x0 : 0000000000000000 Call trace: hfs_bnode_put+0x418/0x424 fs/hfs/bnode.c:485 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/0x880 fs/hfs/inode.c:432 write_inode fs/fs-writeback.c:1495 [inline] __writeback_single_inode+0x560/0x11f0 fs/fs-writeback.c:1705 writeback_sb_inodes+0x7fc/0x1378 fs/fs-writeback.c:1930 wb_writeback+0x3d8/0xe44 fs/fs-writeback.c:2104 wb_do_writeback fs/fs-writeback.c:2247 [inline] wb_workfn+0x350/0xdd8 fs/fs-writeback.c:2288 process_one_work+0x79c/0x1140 kernel/workqueue.c:2310 worker_thread+0x8f4/0x101c kernel/workqueue.c:2457 kthread+0x374/0x454 kernel/kthread.c:334 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:870 Code: aa1403e0 97e5df91 17ffffa4 97d6915b (d4210000) ---[ end trace 24f2667965cad971 ]---