------------[ cut here ]------------ WARNING: CPU: 1 PID: 9123 at fs/hfsplus/extents.c:346 hfsplus_free_extents+0x3e9/0x530 fs/hfsplus/extents.c:346 Modules linked in: CPU: 1 UID: 0 PID: 9123 Comm: syz-executor.5 Not tainted 6.16.0-rc6-syzkaller-g155a3c003e55 #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: 1f ff 8b 44 24 04 85 c0 0f 84 2b fe ff ff e8 1e 98 1f ff 48 c7 c7 60 24 ca 8b e8 32 a3 fe fe e9 15 fe ff ff e8 08 98 1f ff 90 <0f> 0b 90 e9 a3 fc ff ff e8 fa 97 1f ff 8b 14 24 8b 74 24 04 48 8b RSP: 0018:ffffc9000460f750 EFLAGS: 00010293 RAX: 0000000000000000 RBX: ffff88807eb806d8 RCX: ffffffff829c566b RDX: ffff888026a20000 RSI: ffffffff829c59c8 RDI: 0000000000000001 RBP: 0000000000000001 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000001 R12: 000000007ed15a01 R13: 0000000000000000 R14: ffff88807a11a000 R15: ffff88807a11a000 FS: 00007fd5468846c0(0000) GS:ffff88812481a000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f711d20ed58 CR3: 0000000075792000 CR4: 0000000000350ef0 Call Trace: hfsplus_file_truncate+0x8da/0xb70 fs/hfsplus/extents.c:592 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 handle_truncate fs/namei.c:3517 [inline] do_open fs/namei.c:3900 [inline] path_openat+0x2678/0x2cb0 fs/namei.c:4055 do_filp_open+0x20b/0x470 fs/namei.c:4082 do_sys_openat2+0x11b/0x1d0 fs/open.c:1437 do_sys_open fs/open.c:1452 [inline] __do_sys_open fs/open.c:1460 [inline] __se_sys_open fs/open.c:1456 [inline] __x64_sys_open+0x153/0x1e0 fs/open.c:1456 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:0x7fd545a7dda9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fd5468840c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 00007fd545bac050 RCX: 00007fd545a7dda9 RDX: 0000000000000000 RSI: 0000000000004374 RDI: 0000000020000040 RBP: 00007fd545aca47a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000006e R14: 00007fd545bac050 R15: 00007ffdc4a84c98