------------[ cut here ]------------ WARNING: CPU: 0 PID: 6754 at fs/hfsplus/extents.c:346 hfsplus_free_extents+0x3db/0x520 fs/hfsplus/extents.c:346 Modules linked in: CPU: 0 PID: 6754 Comm: syz-executor300 Not tainted 6.8.0-rc5-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024 RIP: 0010:hfsplus_free_extents+0x3db/0x520 fs/hfsplus/extents.c:346 Code: 26 ff 8b 44 24 04 85 c0 0f 84 34 fe ff ff e8 dc 69 26 ff 48 c7 c7 60 78 28 8b e8 60 54 08 ff e9 1e fe ff ff e8 c6 69 26 ff 90 <0f> 0b 90 e9 b1 fc ff ff e8 b8 69 26 ff 8b 14 24 8b 74 24 04 48 8b RSP: 0018:ffffc9000b98f750 EFLAGS: 00010293 RAX: 0000000000000000 RBX: ffff88806a8a0018 RCX: ffffffff826604eb RDX: ffff88802a843b80 RSI: ffffffff8266083a RDI: 0000000000000001 RBP: 0000000000000001 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000000 R12: 000000001b310001 R13: 0000000000000000 R14: ffff888029c98000 R15: dffffc0000000000 FS: 00007eff81eac6c0(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007eff79a7fc00 CR3: 000000002a9b8000 CR4: 0000000000350ef0 Call Trace: hfsplus_file_truncate+0x836/0x9e0 fs/hfsplus/extents.c:591 hfsplus_setattr+0x1eb/0x310 fs/hfsplus/inode.c:265 notify_change+0x745/0x11c0 fs/attr.c:499 do_truncate+0x15c/0x220 fs/open.c:66 handle_truncate fs/namei.c:3299 [inline] do_open fs/namei.c:3645 [inline] path_openat+0x24c0/0x29a0 fs/namei.c:3798 do_filp_open+0x1de/0x440 fs/namei.c:3825 do_sys_openat2+0x17a/0x1e0 fs/open.c:1404 do_sys_open fs/open.c:1419 [inline] __do_sys_open fs/open.c:1427 [inline] __se_sys_open fs/open.c:1423 [inline] __x64_sys_open+0x154/0x1e0 fs/open.c:1423 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xd8/0x270 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x6f/0x77 RIP: 0033:0x7eff81f10b89 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 b1 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007eff81eac218 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 00007eff81f996d8 RCX: 00007eff81f10b89 RDX: 0000000000000000 RSI: 0000000000004374 RDI: 0000000020000040 RBP: 00007eff81f996d0 R08: 00007ffca8bee4b7 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007eff81f650c0 R13: 0031656c69662f2e R14: 0073756c70736668 R15: 6465646165726874