el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 hfs: new node 0 already hashed? ------------[ cut here ]------------ WARNING: CPU: 0 PID: 5876 at fs/hfs/bnode.c:438 hfs_bnode_create+0x404/0x4c8 fs/hfs/bnode.c:437 Modules linked in: CPU: 0 PID: 5876 Comm: syz.6.358 Not tainted 5.15.182-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/19/2025 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 : ffff80001fdb6d90 x29: ffff80001fdb6da0 x28: 000000000000008c x27: ffff0000e9c42000 x26: 0000000000000000 x25: dfff800000000000 x24: 0000000000000080 x23: ffff0000e9c4208c x22: 0000000000000000 x21: ffff0000cfc98000 x20: 0000000000000000 x19: ffff0000c218d000 x18: 1fffe0003421f78e x17: 1fffe0003421f78e x16: ffff8000111a53fc x15: ffff8000141eec20 x14: ffff0001a10fbc80 x13: 1ffff0000282a06b x12: 0000000000ff0100 x11: 0000000000000000 x10: 0000000000000000 x9 : 3ae3973b45113400 x8 : 3ae3973b45113400 x7 : 0000000000000000 x6 : 0000000000000000 x5 : 0000000000000080 x4 : 0000000000000000 x3 : ffff80000a731dc4 x2 : ffff0001a10fbd10 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_cache_extent+0x84/0x750 fs/hfs/extent.c:174 hfs_ext_read_extent fs/hfs/extent.c:202 [inline] hfs_extend_file+0x27c/0x1000 fs/hfs/extent.c:401 hfs_get_block+0x2e8/0x9ec fs/hfs/extent.c:353 __block_write_begin_int+0x3e4/0x1588 fs/buffer.c:2012 __block_write_begin fs/buffer.c:2062 [inline] block_write_begin fs/buffer.c:2122 [inline] cont_write_begin+0x4e4/0x6dc fs/buffer.c:2471 hfs_write_begin+0xa8/0xf8 fs/hfs/inode.c:59 generic_perform_write+0x204/0x480 mm/filemap.c:3785 __generic_file_write_iter+0x23c/0x454 mm/filemap.c:3912 generic_file_write_iter+0xb0/0x1b4 mm/filemap.c:3944 call_write_iter include/linux/fs.h:2172 [inline] new_sync_write fs/read_write.c:507 [inline] vfs_write+0x7c8/0xa2c fs/read_write.c:594 ksys_write+0x120/0x210 fs/read_write.c:647 __do_sys_write fs/read_write.c:659 [inline] __se_sys_write fs/read_write.c:656 [inline] __arm64_sys_write+0x7c/0x90 fs/read_write.c:656 __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+0x78/0x1e0 arch/arm64/kernel/entry-common.c:608 el0t_64_sync_handler+0xcc/0xe4 arch/arm64/kernel/entry-common.c:626 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 irq event stamp: 3234 hardirqs last enabled at (3233): [] raw_spin_rq_unlock_irq kernel/sched/sched.h:1338 [inline] hardirqs last enabled at (3233): [] finish_lock_switch+0xb0/0x1c4 kernel/sched/core.c:4784 hardirqs last disabled at (3234): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:396 softirqs last enabled at (3228): [] softirq_handle_end kernel/softirq.c:401 [inline] softirqs last enabled at (3228): [] handle_softirqs+0xa4c/0xbf0 kernel/softirq.c:586 softirqs last disabled at (2873): [] __do_softirq kernel/softirq.c:592 [inline] softirqs last disabled at (2873): [] do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline] softirqs last disabled at (2873): [] invoke_softirq kernel/softirq.c:439 [inline] softirqs last disabled at (2873): [] __irq_exit_rcu+0x240/0x440 kernel/softirq.c:641 ---[ end trace 7eec7a3fbf6015d2 ]--- ------------[ cut here ]------------ kernel BUG at fs/hfs/bnode.c:485! Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP Modules linked in: CPU: 1 PID: 5876 Comm: syz.6.358 Tainted: G W 5.15.182-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/19/2025 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 : ffff80001fdb6e80 x29: ffff80001fdb6e80 x28: 0000000000000001 x27: dfff800000000000 x26: ffff700003fb6de4 x25: ffff80001fdb6f20 x24: ffff0000cfc98000 x23: dfff800000000000 x22: 1fffe00018431a00 x21: 0000000000000000 x20: ffff0000c218d080 x19: ffff0000c218d000 x18: 1fffe0003421f78e x17: 1fffe0003421f78e x16: ffff8000111a53fc x15: ffff8000141eec20 x14: 1fffe00018431a03 x13: 1ffff0000282a06b x12: 0000000000ff0100 x11: 0000000000000000 x10: 0000000000000000 x9 : ffff800008ed4380 x8 : ffff0000d59a9b40 x7 : ffff800008894f6c x6 : 0000000000000000 x5 : 0000000000000000 x4 : 0000000000000000 x3 : ffff800008ed3fc4 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_cache_extent+0x84/0x750 fs/hfs/extent.c:174 hfs_ext_read_extent fs/hfs/extent.c:202 [inline] hfs_extend_file+0x27c/0x1000 fs/hfs/extent.c:401 hfs_get_block+0x2e8/0x9ec fs/hfs/extent.c:353 __block_write_begin_int+0x3e4/0x1588 fs/buffer.c:2012 __block_write_begin fs/buffer.c:2062 [inline] block_write_begin fs/buffer.c:2122 [inline] cont_write_begin+0x4e4/0x6dc fs/buffer.c:2471 hfs_write_begin+0xa8/0xf8 fs/hfs/inode.c:59 generic_perform_write+0x204/0x480 mm/filemap.c:3785 __generic_file_write_iter+0x23c/0x454 mm/filemap.c:3912 generic_file_write_iter+0xb0/0x1b4 mm/filemap.c:3944 call_write_iter include/linux/fs.h:2172 [inline] new_sync_write fs/read_write.c:507 [inline] vfs_write+0x7c8/0xa2c fs/read_write.c:594 ksys_write+0x120/0x210 fs/read_write.c:647 __do_sys_write fs/read_write.c:659 [inline] __se_sys_write fs/read_write.c:656 [inline] __arm64_sys_write+0x7c/0x90 fs/read_write.c:656 __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+0x78/0x1e0 arch/arm64/kernel/entry-common.c:608 el0t_64_sync_handler+0xcc/0xe4 arch/arm64/kernel/entry-common.c:626 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 Code: aa1403e0 97e5df92 17ffffa4 97d6915c (d4210000) ---[ end trace 7eec7a3fbf6015d3 ]---