------------[ cut here ]------------ WARNING: CPU: 1 PID: 19895 at fs/hfsplus/extents.c:346 hfsplus_free_extents+0x703/0xae0 fs/hfsplus/extents.c:346 Modules linked in: CPU: 1 UID: 0 PID: 19895 Comm: syz.3.3242 Not tainted 6.15.0-syzkaller-10402-g4cb6c8af8591 #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 RIP: 0010:hfsplus_free_extents+0x703/0xae0 fs/hfsplus/extents.c:346 Code: 1b 0f cb 89 ef 89 de e8 8b ae 29 ff 39 dd 75 22 49 83 c7 28 e8 be ac 29 ff 41 bc 05 00 00 00 e9 e1 f9 ff ff e8 ae ac 29 ff 90 <0f> 0b 90 e9 82 f9 ff ff 89 ef 89 de e8 5c ae 29 ff 29 dd 73 0a e8 RSP: 0018:ffffc9000ebd76b0 EFLAGS: 00010287 RAX: ffffffff829694a2 RBX: ffff888035223020 RCX: 0000000000080000 RDX: ffffc90019b09000 RSI: 000000000000dd62 RDI: 000000000000dd63 RBP: 0000000000000013 R08: ffff8880120fe04f R09: 1ffff1100241fc09 R10: dffffc0000000000 R11: ffffed100241fc0a R12: ffff88802fb48000 R13: 0000000000000057 R14: 0000000000000002 R15: ffff888079353d18 FS: 00007f07649766c0(0000) GS:ffff888125d65000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000200000025000 CR3: 00000000604ce000 CR4: 0000000000350ef0 Call Trace: hfsplus_file_truncate+0x4e6/0xb40 fs/hfsplus/extents.c:608 hfsplus_write_begin+0xa8/0xb0 fs/hfsplus/inode.c:50 generic_perform_write+0x2c7/0x910 mm/filemap.c:4103 generic_file_write_iter+0x10f/0x540 mm/filemap.c:4246 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x54b/0xa90 fs/read_write.c:686 ksys_pwrite64 fs/read_write.c:793 [inline] __do_sys_pwrite64 fs/read_write.c:801 [inline] __se_sys_pwrite64 fs/read_write.c:798 [inline] __x64_sys_pwrite64+0x193/0x220 fs/read_write.c:798 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f0763b8e969 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:00007f0764976038 EFLAGS: 00000246 ORIG_RAX: 0000000000000012 RAX: ffffffffffffffda RBX: 00007f0763db6080 RCX: 00007f0763b8e969 RDX: 000000000000fdef RSI: 0000200000000140 RDI: 000000000000000d RBP: 00007f0763c10ab1 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000fecc R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f0763db6080 R15: 00007ffe8d84a9c8