------------[ cut here ]------------ WARNING: CPU: 1 PID: 19917 at fs/hfsplus/extents.c:346 hfsplus_free_extents+0x703/0xae0 Modules linked in: CPU: 1 PID: 19917 Comm: syz-executor.2 Not tainted 6.1.72-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 RIP: 0010:hfsplus_free_extents+0x703/0xae0 fs/hfsplus/extents.c:346 Code: 0f cb 44 89 ef 89 de e8 fb 31 2c ff 41 39 dd 75 20 49 83 c7 28 e8 8d 30 2c ff 41 bc 05 00 00 00 e9 e2 f9 ff ff e8 7d 30 2c ff <0f> 0b e9 83 f9 ff ff 44 89 ef 89 de e8 cc 31 2c ff 41 29 dd 73 0a RSP: 0018:ffffc9000322faf0 EFLAGS: 00010293 RAX: ffffffff825e4243 RBX: ffff88807a7c3820 RCX: ffff888026089dc0 RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffff88809565c048 RBP: ffff888098602000 R08: dffffc0000000000 R09: ffffed1012acb80a R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000 R13: 0000000000000005 R14: ffffc9000322fc10 R15: ffff88807f08f2d8 FS: 0000555555aa3480(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fcb8b578198 CR3: 000000001fdb6000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: hfsplus_file_truncate+0x7cc/0xb40 fs/hfsplus/extents.c:591 hfsplus_file_release+0xf3/0x3e0 fs/hfsplus/inode.c:238 __fput+0x3b7/0x890 fs/file_table.c:320 task_work_run+0x246/0x300 kernel/task_work.c:179 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop+0xde/0x100 kernel/entry/common.c:171 exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:204 __syscall_exit_to_user_mode_work kernel/entry/common.c:286 [inline] syscall_exit_to_user_mode+0x60/0x270 kernel/entry/common.c:297 do_syscall_64+0x49/0xb0 arch/x86/entry/common.c:87 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f2f21e7bc9a Code: 48 3d 00 f0 ff ff 77 48 c3 0f 1f 80 00 00 00 00 48 83 ec 18 89 7c 24 0c e8 03 7f 02 00 8b 7c 24 0c 89 c2 b8 03 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 36 89 d7 89 44 24 0c e8 63 7f 02 00 8b 44 24 RSP: 002b:00007fff82514690 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 RAX: 0000000000000000 RBX: 0000000000000005 RCX: 00007f2f21e7bc9a RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000004 RBP: 00007f2f21fad980 R08: 0000001b33820000 R09: 00000000000001d5 R10: 00000000816dd1fd R11: 0000000000000293 R12: 00000000001695c5 R13: ffffffffffffffff R14: 00007f2f21a00000 R15: 0000000000169284