loop3: detected capacity change from 0 to 1024 ------------[ cut here ]------------ WARNING: CPU: 1 PID: 10637 at fs/hfsplus/extents.c:346 hfsplus_free_extents+0x3e9/0x530 fs/hfsplus/extents.c:346 Modules linked in: CPU: 1 UID: 0 PID: 10637 Comm: syz.3.1068 Not tainted 6.16.0-rc6-syzkaller-00281-gf4a40a4282f4 #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 RIP: 0010:hfsplus_free_extents+0x3e9/0x530 fs/hfsplus/extents.c:346 Code: 21 ff 8b 44 24 04 85 c0 0f 84 2b fe ff ff e8 de 09 21 ff 48 c7 c7 e0 08 ca 8b e8 62 1e 00 ff e9 15 fe ff ff e8 c8 09 21 ff 90 <0f> 0b 90 e9 a3 fc ff ff e8 ba 09 21 ff 8b 14 24 8b 74 24 04 48 8b RSP: 0018:ffffc9000b257aa0 EFLAGS: 00010287 RAX: 0000000000007911 RBX: ffff88807f50ec58 RCX: ffffc9000cd5d000 RDX: 0000000000080000 RSI: ffffffff829ade38 RDI: 0000000000000001 RBP: 000000000000000c R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000001 R12: 00000000276ada01 R13: ffff88807f50ec58 R14: ffff8880489f6000 R15: 0000000000000031 FS: 00007f505f5836c0(0000) GS:ffff888124827000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000558846be4950 CR3: 000000005278b000 CR4: 0000000000350ef0 Call Trace: hfsplus_file_truncate+0x4c6/0xb70 fs/hfsplus/extents.c:608 hfsplus_setattr+0x19f/0x320 fs/hfsplus/inode.c:264 notify_change+0x6a9/0x1230 fs/attr.c:552 do_truncate+0x1d7/0x230 fs/open.c:68 do_ftruncate+0x5a9/0x970 fs/open.c:195 do_sys_ftruncate+0x61/0xb0 fs/open.c:210 __do_sys_ftruncate fs/open.c:215 [inline] __se_sys_ftruncate fs/open.c:213 [inline] __x64_sys_ftruncate+0x58/0x80 fs/open.c:213 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0x4c0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f505e78e9a9 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:00007f505f583038 EFLAGS: 00000246 ORIG_RAX: 000000000000004d RAX: ffffffffffffffda RBX: 00007f505e9b5fa0 RCX: 00007f505e78e9a9 RDX: 0000000000000000 RSI: 000000000000c17a RDI: 0000000000000004 RBP: 00007f505e810d69 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f505e9b5fa0 R15: 00007fff491aa068