loop4: detected capacity change from 0 to 1024 ------------[ cut here ]------------ kernel BUG at fs/hfsplus/bnode.c:675! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 4439 Comm: syz.4.14 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025 RIP: 0010:hfsplus_bnode_put+0x537/0x540 fs/hfsplus/bnode.c:675 Code: 65 8b ff e9 b2 fe ff ff 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c f0 fe ff ff 48 89 df e8 a3 64 8b ff e9 e3 fe ff ff e8 59 33 3b ff <0f> 0b e8 52 33 3b ff 0f 0b 55 41 57 41 56 41 54 53 89 f3 49 89 fe RSP: 0018:ffffc900048eee48 EFLAGS: 00010287 RAX: ffffffff8245ac77 RBX: ffff888026c13100 RCX: 0000000000080000 RDX: ffffc9000e439000 RSI: 0000000000018243 RDI: 0000000000018244 RBP: 0000000000000000 R08: dffffc0000000000 R09: ffffed1004d82631 R10: ffffed1004d82631 R11: 1ffff11004d82630 R12: ffff888026c13180 R13: ffff888026c13128 R14: dffffc0000000000 R15: ffff88807e600000 FS: 00007fd8613916c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000200000000014 CR3: 0000000026ea5000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: hfsplus_bnode_find+0x9ff/0xce0 fs/hfsplus/bnode.c:605 hfsplus_bmap_alloc+0xa5/0x9b0 fs/hfsplus/btree.c:390 hfs_btree_inc_height+0xf3/0xb60 fs/hfsplus/brec.c:475 hfsplus_brec_insert+0x12a/0xcc0 fs/hfsplus/brec.c:75 __hfsplus_ext_write_extent+0x353/0x5b0 fs/hfsplus/extents.c:107 __hfsplus_ext_cache_extent+0x89/0xe20 fs/hfsplus/extents.c:186 hfsplus_ext_read_extent fs/hfsplus/extents.c:218 [inline] hfsplus_file_extend+0x445/0x1950 fs/hfsplus/extents.c:459 hfsplus_get_block+0x40e/0x1530 fs/hfsplus/extents.c:245 __block_write_begin_int+0x54b/0x1a70 fs/buffer.c:1991 __block_write_begin fs/buffer.c:2041 [inline] block_write_begin+0x96/0x1e0 fs/buffer.c:2102 cont_write_begin+0x5c4/0x7d0 fs/buffer.c:2456 hfsplus_write_begin+0x87/0xd0 fs/hfsplus/inode.c:52 generic_perform_write+0x2f7/0x5a0 mm/filemap.c:3862 __generic_file_write_iter+0x148/0x2a0 mm/filemap.c:3960 generic_file_write_iter+0xab/0x2e0 mm/filemap.c:3989 call_write_iter include/linux/fs.h:2265 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x44c/0x960 fs/read_write.c:584 ksys_write+0x143/0x240 fs/read_write.c:637 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7fd86058f749 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fd861391038 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fd8607e5fa0 RCX: 00007fd86058f749 RDX: 0000000000040001 RSI: 0000200000000180 RDI: 0000000000000005 RBP: 00007fd860613f91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fd8607e6038 R14: 00007fd8607e5fa0 R15: 00007ffde4354718 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:hfsplus_bnode_put+0x537/0x540 fs/hfsplus/bnode.c:675 Code: 65 8b ff e9 b2 fe ff ff 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c f0 fe ff ff 48 89 df e8 a3 64 8b ff e9 e3 fe ff ff e8 59 33 3b ff <0f> 0b e8 52 33 3b ff 0f 0b 55 41 57 41 56 41 54 53 89 f3 49 89 fe RSP: 0018:ffffc900048eee48 EFLAGS: 00010287 RAX: ffffffff8245ac77 RBX: ffff888026c13100 RCX: 0000000000080000 RDX: ffffc9000e439000 RSI: 0000000000018243 RDI: 0000000000018244 RBP: 0000000000000000 R08: dffffc0000000000 R09: ffffed1004d82631 R10: ffffed1004d82631 R11: 1ffff11004d82630 R12: ffff888026c13180 R13: ffff888026c13128 R14: dffffc0000000000 R15: ffff88807e600000 FS: 00007fd8613916c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000200000000008 CR3: 0000000026ea5000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400