el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:608 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 hfs: new node 0 already hashed? ------------[ cut here ]------------ WARNING: CPU: 1 PID: 4428 at fs/hfs/bnode.c:432 hfs_bnode_create+0x428/0x4ec fs/hfs/bnode.c:431 Modules linked in: CPU: 1 PID: 4428 Comm: syz-executor.0 Not tainted 5.15.171-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 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 : ffff8000201968f0 x29: ffff800020196900 x28: ffff0000e103c000 x27: 000000000000008c x26: ffff0000e103c08c x25: dfff800000000000 x24: 1ffff00004032d34 x23: 0000000000000000 x22: ffff0000cdb900e0 x21: ffff0000cdb90000 x20: 0000000000000000 x19: ffff0000c19a3600 x18: 1fffe0003683598e x17: 1fffe0003683598e x16: ffff800011ac0310 x15: ffff800014b6fa40 x14: 1ffff0000295a06a x13: dfff800000000000 x12: 0000000000000001 x11: 0000000000000000 x10: 0000000000000000 x9 : 0c61c7eec7892100 x8 : 0c61c7eec7892100 x7 : 0000000000000000 x6 : 0000000000000000 x5 : 0000000000000080 x4 : 0000000000000000 x3 : ffff80000a983ebc x2 : ffff0001b41acd10 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_cache_extent+0x84/0x754 fs/hfs/extent.c:174 hfs_ext_read_extent fs/hfs/extent.c:202 [inline] hfs_extend_file+0x278/0x10e4 fs/hfs/extent.c:401 hfs_get_block+0x3ac/0x9fc fs/hfs/extent.c:353 __block_write_begin_int+0x3ec/0x1608 fs/buffer.c:2012 __block_write_begin fs/buffer.c:2062 [inline] block_write_begin fs/buffer.c:2122 [inline] cont_write_begin+0x538/0x710 fs/buffer.c:2471 hfs_write_begin+0xa8/0xf8 fs/hfs/inode.c:59 pagecache_write_begin+0xa0/0xc0 mm/filemap.c:3608 cont_expand_zero fs/buffer.c:2398 [inline] cont_write_begin+0x26c/0x710 fs/buffer.c:2461 hfs_write_begin+0xa8/0xf8 fs/hfs/inode.c:59 generic_perform_write+0x24c/0x520 mm/filemap.c:3785 __generic_file_write_iter+0x230/0x454 mm/filemap.c:3912 generic_file_write_iter+0xb4/0x1b8 mm/filemap.c:3944 do_iter_readv_writev+0x420/0x5f8 do_iter_write+0x1b8/0x66c fs/read_write.c:855 vfs_writev fs/read_write.c:928 [inline] do_pwritev+0x1ec/0x334 fs/read_write.c:1025 __do_sys_pwritev2 fs/read_write.c:1084 [inline] __se_sys_pwritev2 fs/read_write.c:1075 [inline] __arm64_sys_pwritev2+0xd4/0x108 fs/read_write.c:1075 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181 el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:608 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 irq event stamp: 2118 hardirqs last enabled at (2117): [] raw_spin_rq_unlock_irq kernel/sched/sched.h:1338 [inline] hardirqs last enabled at (2117): [] finish_lock_switch+0xbc/0x1e8 kernel/sched/core.c:4781 hardirqs last disabled at (2118): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:396 softirqs last enabled at (2054): [] softirq_handle_end kernel/softirq.c:401 [inline] softirqs last enabled at (2054): [] handle_softirqs+0xb88/0xdbc kernel/softirq.c:586 softirqs last disabled at (1839): [] __do_softirq kernel/softirq.c:592 [inline] softirqs last disabled at (1839): [] do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline] softirqs last disabled at (1839): [] invoke_softirq kernel/softirq.c:439 [inline] softirqs last disabled at (1839): [] __irq_exit_rcu+0x268/0x4d8 kernel/softirq.c:641 ---[ end trace 00d607c8517330d7 ]--- ------------[ cut here ]------------ kernel BUG at fs/hfs/bnode.c:479! Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP Modules linked in: CPU: 1 PID: 4428 Comm: syz-executor.0 Tainted: G W 5.15.171-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 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 : ffff800020196a10 x29: ffff800020196a10 x28: dfff800000000000 x27: ffff700004032d58 x26: 1fffe00019b72003 x25: 0000000000000200 x24: 1fffe000183346c0 x23: dfff800000000000 x22: ffff0000cdb90000 x21: ffff0000c19a3680 x20: 0000000000000000 x19: ffff0000c19a3600 x18: 1fffe0003683598e x17: 1fffe0003683598e x16: ffff800011ac04a0 x15: ffff800014b6fa40 x14: 1ffff0000295a06a x13: dfff800000000000 x12: 0000000000000001 x11: 0000000000000000 x10: 0000000000000000 x9 : ffff0000c65b8000 x8 : ffff800008fdee8c x7 : ffff800008922d0c x6 : 0000000000000000 x5 : 0000000000000000 x4 : 0000000000000000 x3 : ffff800008fdead0 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_cache_extent+0x84/0x754 fs/hfs/extent.c:174 hfs_ext_read_extent fs/hfs/extent.c:202 [inline] hfs_extend_file+0x278/0x10e4 fs/hfs/extent.c:401 hfs_get_block+0x3ac/0x9fc fs/hfs/extent.c:353 __block_write_begin_int+0x3ec/0x1608 fs/buffer.c:2012 __block_write_begin fs/buffer.c:2062 [inline] block_write_begin fs/buffer.c:2122 [inline] cont_write_begin+0x538/0x710 fs/buffer.c:2471 hfs_write_begin+0xa8/0xf8 fs/hfs/inode.c:59 pagecache_write_begin+0xa0/0xc0 mm/filemap.c:3608 cont_expand_zero fs/buffer.c:2398 [inline] cont_write_begin+0x26c/0x710 fs/buffer.c:2461 hfs_write_begin+0xa8/0xf8 fs/hfs/inode.c:59 generic_perform_write+0x24c/0x520 mm/filemap.c:3785 __generic_file_write_iter+0x230/0x454 mm/filemap.c:3912 generic_file_write_iter+0xb4/0x1b8 mm/filemap.c:3944 do_iter_readv_writev+0x420/0x5f8 do_iter_write+0x1b8/0x66c fs/read_write.c:855 vfs_writev fs/read_write.c:928 [inline] do_pwritev+0x1ec/0x334 fs/read_write.c:1025 __do_sys_pwritev2 fs/read_write.c:1084 [inline] __se_sys_pwritev2 fs/read_write.c:1075 [inline] __arm64_sys_pwritev2+0xd4/0x108 fs/read_write.c:1075 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181 el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:608 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 Code: aa1403e0 97e3daef 17ffffa5 97d3951d (d4210000) ---[ end trace 00d607c8517330d8 ]---