------------[ cut here ]------------ WARNING: CPU: 1 PID: 11011 at fs/hfsplus/extents.c:346 hfsplus_free_extents+0x703/0xae0 Modules linked in: CPU: 1 PID: 11011 Comm: syz-executor257 Not tainted 6.5.0-rc4-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2023 RIP: 0010:hfsplus_free_extents+0x703/0xae0 fs/hfsplus/extents.c:346 Code: 0f cb 44 89 ef 89 de e8 0b f6 29 ff 41 39 dd 75 20 49 83 c7 28 e8 7d f4 29 ff 41 bc 05 00 00 00 e9 e2 f9 ff ff e8 6d f4 29 ff <0f> 0b e9 83 f9 ff ff 44 89 ef 89 de e8 dc f5 29 ff 41 29 dd 73 0a RSP: 0018:ffffc9000bf67810 EFLAGS: 00010293 RAX: ffffffff8261b313 RBX: ffff88802bee5820 RCX: ffff88802572bb80 RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffff888028a7c048 RBP: ffff88801f838000 R08: ffff888028a7c04f R09: 1ffff1100514f809 R10: dffffc0000000000 R11: ffffed100514f80a R12: dffffc0000000000 R13: 0000000000000155 R14: 000000000000002a R15: ffff8880708f7318 FS: 0000555555d6b380(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 0000000023055000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: hfsplus_file_truncate+0x71d/0xb40 fs/hfsplus/extents.c:606 hfsplus_write_begin+0xc6/0xd0 fs/hfsplus/inode.c:56 cont_expand_zero fs/buffer.c:2524 [inline] cont_write_begin+0x316/0x880 fs/buffer.c:2587 hfsplus_write_begin+0x8a/0xd0 fs/hfsplus/inode.c:52 generic_cont_expand_simple+0x18b/0x2a0 fs/buffer.c:2488 hfsplus_setattr+0x16d/0x280 fs/hfsplus/inode.c:263 notify_change+0xc8b/0xf40 fs/attr.c:483 do_truncate+0x220/0x300 fs/open.c:66 do_sys_ftruncate+0x2f3/0x390 fs/open.c:194 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fc314339259 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 21 18 00 00 90 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffd98106798 EFLAGS: 00000246 ORIG_RAX: 000000000000004d RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fc314339259 RDX: ffffffffffffffb8 RSI: 0000000002007fff RDI: 0000000000000004 RBP: 0000000000000004 R08: 0000000001000010 R09: 0000000001000010 R10: 0000000001000010 R11: 0000000000000246 R12: 00007ffd981067e0 R13: 00007ffd98106820 R14: 0000000000080000 R15: 0000000000000003