loop2: detected capacity change from 0 to 64 ------------[ cut here ]------------ kernel BUG at fs/hfs/inode.c:447! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 4451 Comm: syz.2.36 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/18/2025 RIP: 0010:hfs_write_inode+0x964/0x970 fs/hfs/inode.c:447 Code: 8f ff e9 13 fe ff ff 44 89 f1 80 e1 07 80 c1 03 38 c1 0f 8c 5e fe ff ff 4c 89 f7 e8 a6 07 8f ff e9 51 fe ff ff e8 9c 9f 4a ff <0f> 0b 66 2e 0f 1f 84 00 00 00 00 00 55 41 57 41 56 41 54 53 48 89 RSP: 0018:ffffc90004e7f840 EFLAGS: 00010283 RAX: ffffffff822d2b84 RBX: ffff888022780e98 RCX: 0000000000080000 RDX: ffffc90005819000 RSI: 0000000000005661 RDI: 0000000000005662 RBP: ffffc90004e7f9d0 R08: ffff888020b75940 R09: 0000000000000003 R10: 0000000000000004 R11: 0000000000000002 R12: dffffc0000000000 R13: 1ffff920009cff0c R14: 0000000000000005 R15: ffff888022780e58 FS: 00007f466529e6c0(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f466527dd58 CR3: 000000001e9d3000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: write_inode fs/fs-writeback.c:1495 [inline] __writeback_single_inode+0x6c3/0xda0 fs/fs-writeback.c:1705 writeback_single_inode+0x221/0x8b0 fs/fs-writeback.c:1760 write_inode_now+0x217/0x280 fs/fs-writeback.c:2801 hfs_file_fsync+0xa3/0x140 fs/hfs/inode.c:680 generic_write_sync include/linux/fs.h:2989 [inline] generic_file_write_iter+0x157/0x1b0 mm/filemap.c:3948 call_write_iter include/linux/fs.h:2172 [inline] new_sync_write fs/read_write.c:507 [inline] vfs_write+0x712/0xd00 fs/read_write.c:594 ksys_write+0x14d/0x250 fs/read_write.c:647 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7f4667036ba9 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:00007f466529e038 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f466727dfa0 RCX: 00007f4667036ba9 RDX: 000000000208e24b RSI: 0000200000000000 RDI: 000000000000000b RBP: 00007f46670b9e19 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f466727e038 R14: 00007f466727dfa0 R15: 00007ffd8a9feac8 Modules linked in: ---[ end trace d36f3c065c90c414 ]--- RIP: 0010:hfs_write_inode+0x964/0x970 fs/hfs/inode.c:447 Code: 8f ff e9 13 fe ff ff 44 89 f1 80 e1 07 80 c1 03 38 c1 0f 8c 5e fe ff ff 4c 89 f7 e8 a6 07 8f ff e9 51 fe ff ff e8 9c 9f 4a ff <0f> 0b 66 2e 0f 1f 84 00 00 00 00 00 55 41 57 41 56 41 54 53 48 89 RSP: 0018:ffffc90004e7f840 EFLAGS: 00010283 RAX: ffffffff822d2b84 RBX: ffff888022780e98 RCX: 0000000000080000 RDX: ffffc90005819000 RSI: 0000000000005661 RDI: 0000000000005662 RBP: ffffc90004e7f9d0 R08: ffff888020b75940 R09: 0000000000000003 R10: 0000000000000004 R11: 0000000000000002 R12: dffffc0000000000 R13: 1ffff920009cff0c R14: 0000000000000005 R15: ffff888022780e58 FS: 00007f466529e6c0(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 000000001e9d3000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400