loop0: detected capacity change from 0 to 64 hfs: new node 0 already hashed? ------------[ cut here ]------------ WARNING: CPU: 0 PID: 3071 at fs/hfs/bnode.c:421 hfs_bnode_create+0x290/0x2d8 fs/hfs/bnode.c:420 Modules linked in: CPU: 0 PID: 3071 Comm: syz-executor134 Not tainted 6.1.0-rc8-syzkaller-33330-ga5541c0811a0 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/30/2022 pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : hfs_bnode_create+0x290/0x2d8 fs/hfs/bnode.c:420 lr : hfs_bnode_create+0x290/0x2d8 fs/hfs/bnode.c:420 sp : ffff800012e83680 x29: ffff800012e83680 x28: ffff0000cbc74488 x27: 0000000040000000 x26: 0000000000000000 x25: 0000000000000000 x24: 00000000000000f8 x23: 0000000000000000 x22: ffff0000c96970e0 x21: 0000000000000000 x20: ffff0000c9697000 x19: ffff0000cbc74400 x18: 00000000000000c0 x17: ffff80000dda8198 x16: ffff80000dbe6158 x15: ffff0000c7ab3480 x14: 0000000000000000 x13: 00000000ffffffff x12: ffff0000c7ab3480 x11: ff808000081c4d64 x10: 0000000000000000 x9 : e76b83c9f2064600 x8 : e76b83c9f2064600 x7 : ffff80000c091ebc x6 : 0000000000000000 x5 : 0000000000000080 x4 : 0000000000000001 x3 : 0000000000000000 x2 : ffff0001fefbecd0 x1 : 0000000100000000 x0 : 000000000000001f Call trace: hfs_bnode_create+0x290/0x2d8 fs/hfs/bnode.c:420 hfs_bmap_alloc+0x408/0x470 fs/hfs/btree.c:291 hfs_btree_inc_height+0x88/0x2a0 fs/hfs/brec.c:471 hfs_brec_insert+0x80/0x3f0 fs/hfs/brec.c:77 __hfs_ext_write_extent+0x10c/0x138 fs/hfs/extent.c:124 __hfs_ext_cache_extent+0x58/0x1f0 fs/hfs/extent.c:174 hfs_ext_read_extent fs/hfs/extent.c:202 [inline] hfs_extend_file+0x14c/0x740 fs/hfs/extent.c:401 hfs_get_block+0x1c8/0x4c4 fs/hfs/extent.c:353 __block_write_begin_int+0x23c/0x9d4 fs/buffer.c:1991 __block_write_begin fs/buffer.c:2041 [inline] block_write_begin+0x74/0x14c fs/buffer.c:2102 cont_write_begin+0xf4/0x11c fs/buffer.c:2456 hfs_write_begin+0x64/0xac fs/hfs/inode.c:58 generic_perform_write+0xf0/0x2cc mm/filemap.c:3753 __generic_file_write_iter+0xd8/0x21c mm/filemap.c:3881 generic_file_write_iter+0x6c/0x168 mm/filemap.c:3913 call_write_iter include/linux/fs.h:2199 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x2dc/0x46c fs/read_write.c:584 ksys_write+0xb4/0x160 fs/read_write.c:637 __do_sys_write fs/read_write.c:649 [inline] __se_sys_write fs/read_write.c:646 [inline] __arm64_sys_write+0x24/0x34 fs/read_write.c:646 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall arch/arm64/kernel/syscall.c:52 [inline] el0_svc_common+0x138/0x220 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x48/0x140 arch/arm64/kernel/syscall.c:197 el0_svc+0x58/0x150 arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:584 irq event stamp: 14054 hardirqs last enabled at (14053): [] __up_console_sem+0xb0/0xfc kernel/printk/printk.c:261 hardirqs last disabled at (14054): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:405 softirqs last enabled at (13738): [] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:32 softirqs last disabled at (13736): [] local_bh_disable+0x10/0x34 include/linux/bottom_half.h:19 ---[ end trace 0000000000000000 ]--- ------------[ cut here ]------------ kernel BUG at fs/hfs/bnode.c:466! Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP Modules linked in: CPU: 1 PID: 3071 Comm: syz-executor134 Tainted: G W 6.1.0-rc8-syzkaller-33330-ga5541c0811a0 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/30/2022 pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : hfs_bnode_put+0x190/0x19c fs/hfs/bnode.c:466 lr : hfs_bnode_put+0x190/0x19c fs/hfs/bnode.c:466 sp : ffff800012e83710 x29: ffff800012e83710 x28: ffff0000c9df9200 x27: ffff0000c9697000 x26: ffff0000c9695000 x25: 0000000000000200 x24: 0000000000000000 x23: ffff0000c9697000 x22: 0000000000000000 x21: ffff0000cbc74480 x20: 0000000000000000 x19: ffff0000cbc74400 x18: 00000000000000c0 x17: ffff80000dda8198 x16: ffff80000dbe6158 x15: ffff0000c7ab3480 x14: 0000000000000000 x13: 00000000ffffffff x12: ffff0000c7ab3480 x11: ff808000088fe2d0 x10: 0000000000000000 x9 : ffff8000088fe2d0 x8 : ffff0000c7ab3480 x7 : ffff80000857b2e4 x6 : 0000000000000000 x5 : 0000000000000000 x4 : 0000000000000000 x3 : 0000000000000002 x2 : 0000000000000008 x1 : 0000000000000000 x0 : 0000000000000000 Call trace: hfs_bnode_put+0x190/0x19c fs/hfs/bnode.c:466 hfs_btree_inc_height+0x260/0x2a0 fs/hfs/brec.c:525 hfs_brec_insert+0x80/0x3f0 fs/hfs/brec.c:77 __hfs_ext_write_extent+0x10c/0x138 fs/hfs/extent.c:124 __hfs_ext_cache_extent+0x58/0x1f0 fs/hfs/extent.c:174 hfs_ext_read_extent fs/hfs/extent.c:202 [inline] hfs_extend_file+0x14c/0x740 fs/hfs/extent.c:401 hfs_get_block+0x1c8/0x4c4 fs/hfs/extent.c:353 __block_write_begin_int+0x23c/0x9d4 fs/buffer.c:1991 __block_write_begin fs/buffer.c:2041 [inline] block_write_begin+0x74/0x14c fs/buffer.c:2102 cont_write_begin+0xf4/0x11c fs/buffer.c:2456 hfs_write_begin+0x64/0xac fs/hfs/inode.c:58 generic_perform_write+0xf0/0x2cc mm/filemap.c:3753 __generic_file_write_iter+0xd8/0x21c mm/filemap.c:3881 generic_file_write_iter+0x6c/0x168 mm/filemap.c:3913 call_write_iter include/linux/fs.h:2199 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x2dc/0x46c fs/read_write.c:584 ksys_write+0xb4/0x160 fs/read_write.c:637 __do_sys_write fs/read_write.c:649 [inline] __se_sys_write fs/read_write.c:646 [inline] __arm64_sys_write+0x24/0x34 fs/read_write.c:646 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall arch/arm64/kernel/syscall.c:52 [inline] el0_svc_common+0x138/0x220 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x48/0x140 arch/arm64/kernel/syscall.c:197 el0_svc+0x58/0x150 arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:584 Code: a8c47bfd d50323bf d65f03c0 97e6a1d6 (d4210000) ---[ end trace 0000000000000000 ]---