loop1: detected capacity change from 0 to 64 hfs: new node 0 already hashed? ------------[ cut here ]------------ WARNING: CPU: 0 PID: 8211 at fs/hfs/bnode.c:438 hfs_bnode_create+0x404/0x4c8 fs/hfs/bnode.c:437 Modules linked in: CPU: 0 PID: 8211 Comm: syz.1.843 Not tainted 5.15.189-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/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 : ffff80001fa86b70 x29: ffff80001fa86b80 x28: 00000000000000f8 x27: ffff0000df340000 x26: 0000000000000000 x25: dfff800000000000 x24: 0000000000000088 x23: ffff0000df3400f8 x22: 0000000000000000 x21: ffff0000ef55e000 x20: 0000000000000000 x19: ffff0000d20a8e00 x18: 0000000000000001 x17: 0000000000000002 x16: ffff8000111bc798 x15: 00000000ffffffff x14: 0000000000ff0100 x13: 0000000000000001 x12: 0000000000080000 x11: 000000000000fbf5 x10: ffff8000214e9000 x9 : 4f0e47bacf90df00 x8 : 4f0e47bacf90df00 x7 : 0000000000000001 x6 : 0000000000000001 x5 : ffff80001fa86458 x4 : ffff80001424f400 x3 : ffff80000a723764 x2 : ffff0001a10c5d50 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+0x110/0x96c fs/hfs/brec.c:77 __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 pagecache_write_begin+0xa0/0xc0 mm/filemap.c:3608 cont_expand_zero fs/buffer.c:2398 [inline] cont_write_begin+0x220/0x6dc fs/buffer.c:2461 hfs_write_begin+0xa8/0xf8 fs/hfs/inode.c:59 pagecache_write_begin+0xa0/0xc0 mm/filemap.c:3608 hfs_file_truncate+0x15c/0x7f0 fs/hfs/extent.c:494 hfs_inode_setattr+0x3a0/0x5bc fs/hfs/inode.c:657 notify_change+0xa08/0xcd8 fs/attr.c:505 do_truncate+0x178/0x1f0 fs/open.c:65 do_sys_ftruncate+0x284/0x31c fs/open.c:193 __do_sys_ftruncate fs/open.c:204 [inline] __se_sys_ftruncate fs/open.c:202 [inline] __arm64_sys_ftruncate+0x60/0x74 fs/open.c:202 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x1fc/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: 6150 hardirqs last enabled at (6149): [] __up_console_sem+0xb4/0x100 kernel/printk/printk.c:257 hardirqs last disabled at (6150): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:396 softirqs last enabled at (6034): [] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:31 softirqs last disabled at (6032): [] local_bh_disable+0x10/0x34 include/linux/bottom_half.h:18 ---[ end trace 0cac55519fbf64e1 ]--- ------------[ cut here ]------------ kernel BUG at fs/hfs/bnode.c:485! Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP Modules linked in: CPU: 0 PID: 8211 Comm: syz.1.843 Tainted: G W 5.15.189-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 pstate: 60400005 (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 : ffff80001fa86c60 x29: ffff80001fa86c60 x28: 0000000000000001 x27: dfff800000000000 x26: ffff700003f50da0 x25: ffff80001fa86d00 x24: ffff0000ef55e000 x23: dfff800000000000 x22: 1fffe0001a4151c0 x21: 0000000000000000 x20: ffff0000d20a8e80 x19: ffff0000d20a8e00 x18: 0000000000000001 x17: 0000000000000002 x16: ffff8000111bc798 x15: 00000000ffffffff x14: 1fffe0001a4151c3 x13: 1ffff0000282e06b x12: 0000000000080000 x11: 000000000007ffff x10: ffff8000214e9000 x9 : ffff800008ec5078 x8 : 0000000000080000 x7 : ffff800008885a00 x6 : 0000000000000000 x5 : 0000000000000000 x4 : 0000000000000000 x3 : ffff800008ec4cbc 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+0x110/0x96c fs/hfs/brec.c:77 __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 pagecache_write_begin+0xa0/0xc0 mm/filemap.c:3608 cont_expand_zero fs/buffer.c:2398 [inline] cont_write_begin+0x220/0x6dc fs/buffer.c:2461 hfs_write_begin+0xa8/0xf8 fs/hfs/inode.c:59 pagecache_write_begin+0xa0/0xc0 mm/filemap.c:3608 hfs_file_truncate+0x15c/0x7f0 fs/hfs/extent.c:494 hfs_inode_setattr+0x3a0/0x5bc fs/hfs/inode.c:657 notify_change+0xa08/0xcd8 fs/attr.c:505 do_truncate+0x178/0x1f0 fs/open.c:65 do_sys_ftruncate+0x284/0x31c fs/open.c:193 __do_sys_ftruncate fs/open.c:204 [inline] __se_sys_ftruncate fs/open.c:202 [inline] __arm64_sys_ftruncate+0x60/0x74 fs/open.c:202 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x1fc/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 97e5dec9 17ffffa4 97d6d0e3 (d4210000) ---[ end trace 0cac55519fbf64e2 ]---