loop0: detected capacity change from 0 to 64 hfs: new node 0 already hashed? ------------[ cut here ]------------ WARNING: CPU: 0 PID: 6954 at fs/hfs/bnode.c:428 hfs_bnode_create+0x384/0x430 fs/hfs/bnode.c:427 Modules linked in: CPU: 0 UID: 0 PID: 6954 Comm: syz.0.54 Not tainted 6.16.0-rc2-syzkaller-g9aa9b43d689e #0 PREEMPT 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+0x384/0x430 fs/hfs/bnode.c:427 lr : hfs_bnode_create+0x384/0x430 fs/hfs/bnode.c:427 sp : ffff8000a3dd6b90 x29: ffff8000a3dd6ba0 x28: dfff800000000000 x27: dfff800000000000 x26: 00000000000000f8 x25: 0000000000000000 x24: 0000000000000083 x23: ffff0000d4734f88 x22: 0000000000000000 x21: 0000000000000000 x20: ffff0000c82b8000 x19: ffff0000d4734f00 x18: 00000000ffffffff x17: ffff800093320000 x16: ffff80008ae33808 x15: ffff700011ed61d4 x14: 1ffff00011ed61d4 x13: 0000000000000004 x12: ffffffffffffffff x11: ffff700011ed61d4 x10: 0000000000ff0100 x9 : 2a3ff26a62aa9e00 x8 : 2a3ff26a62aa9e00 x7 : 0000000000000001 x6 : 0000000000000001 x5 : ffff8000a3dd6518 x4 : ffff80008f727060 x3 : ffff80008054c348 x2 : 0000000000000000 x1 : 0000000100000000 x0 : 000000000000001f Call trace: hfs_bnode_create+0x384/0x430 fs/hfs/bnode.c:427 (P) hfs_bmap_alloc+0x448/0x4dc fs/hfs/btree.c:291 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+0x264/0xf4c fs/hfs/extent.c:401 hfs_get_block+0x2e8/0x9cc fs/hfs/extent.c:353 __block_write_begin_int+0x53c/0x15e8 fs/buffer.c:2151 block_write_begin fs/buffer.c:2262 [inline] cont_write_begin+0x62c/0x968 fs/buffer.c:2601 hfs_write_begin+0x7c/0xc4 fs/hfs/inode.c:52 generic_perform_write+0x23c/0x79c mm/filemap.c:4112 __generic_file_write_iter+0xfc/0x204 mm/filemap.c:4229 generic_file_write_iter+0x104/0x470 mm/filemap.c:4255 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x62c/0x97c fs/read_write.c:686 ksys_write+0x120/0x210 fs/read_write.c:738 __do_sys_write fs/read_write.c:749 [inline] __se_sys_write fs/read_write.c:746 [inline] __arm64_sys_write+0x7c/0x90 fs/read_write.c:746 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:49 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:132 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:151 el0_svc+0x58/0x17c arch/arm64/kernel/entry-common.c:767 el0t_64_sync_handler+0x78/0x108 arch/arm64/kernel/entry-common.c:786 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:600 irq event stamp: 3410 hardirqs last enabled at (3409): [] __up_console_sem kernel/printk/printk.c:344 [inline] hardirqs last enabled at (3409): [] __console_unlock+0x70/0xc4 kernel/printk/printk.c:2885 hardirqs last disabled at (3410): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:511 softirqs last enabled at (3348): [] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:32 softirqs last disabled at (3346): [] local_bh_disable+0x10/0x34 include/linux/bottom_half.h:19 ---[ end trace 0000000000000000 ]--- ------------[ cut here ]------------ kernel BUG at fs/hfs/bnode.c:473! Internal error: Oops - BUG: 00000000f2000800 [#1] SMP Modules linked in: CPU: 0 UID: 0 PID: 6954 Comm: syz.0.54 Tainted: G W 6.16.0-rc2-syzkaller-g9aa9b43d689e #0 PREEMPT Tainted: [W]=WARN Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : hfs_bnode_put+0x31c/0x328 fs/hfs/bnode.c:473 lr : hfs_bnode_put+0x31c/0x328 fs/hfs/bnode.c:473 sp : ffff8000a3dd6c80 x29: ffff8000a3dd6c80 x28: 0000000000000001 x27: dfff800000000000 x26: ffff7000147bada4 x25: ffff8000a3dd6d20 x24: 1fffe0001a8e69e0 x23: dfff800000000000 x22: ffff0000c82b8000 x21: 0000000000000000 x20: ffff0000d4734f80 x19: ffff0000d4734f00 x18: 00000000ffffffff x17: ffff800093320000 x16: ffff80008052bb74 x15: 0000000000000001 x14: 1fffe0001a8e69f0 x13: 0000000000000000 x12: 0000000000000000 x11: ffff60001a8e69f1 x10: 0000000000ff0100 x9 : 0000000000000000 x8 : ffff0000c48c1e80 x7 : ffff800080e364a4 x6 : 0000000000000000 x5 : 0000000000000000 x4 : 0000000000000001 x3 : ffff8000812c592c x2 : 0000000000000000 x1 : 0000000000000000 x0 : 0000000000000000 Call trace: hfs_bnode_put+0x31c/0x328 fs/hfs/bnode.c:473 (P) 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+0x264/0xf4c fs/hfs/extent.c:401 hfs_get_block+0x2e8/0x9cc fs/hfs/extent.c:353 __block_write_begin_int+0x53c/0x15e8 fs/buffer.c:2151 block_write_begin fs/buffer.c:2262 [inline] cont_write_begin+0x62c/0x968 fs/buffer.c:2601 hfs_write_begin+0x7c/0xc4 fs/hfs/inode.c:52 generic_perform_write+0x23c/0x79c mm/filemap.c:4112 __generic_file_write_iter+0xfc/0x204 mm/filemap.c:4229 generic_file_write_iter+0x104/0x470 mm/filemap.c:4255 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x62c/0x97c fs/read_write.c:686 ksys_write+0x120/0x210 fs/read_write.c:738 __do_sys_write fs/read_write.c:749 [inline] __se_sys_write fs/read_write.c:746 [inline] __arm64_sys_write+0x7c/0x90 fs/read_write.c:746 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:49 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:132 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:151 el0_svc+0x58/0x17c arch/arm64/kernel/entry-common.c:767 el0t_64_sync_handler+0x78/0x108 arch/arm64/kernel/entry-common.c:786 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:600 Code: aa1403e0 97e5e307 17ffffd4 97d170d2 (d4210000) ---[ end trace 0000000000000000 ]---