------------[ cut here ]------------ WARNING: CPU: 0 PID: 18553 at fs/hfsplus/extents.c:346 hfsplus_free_extents+0x703/0xae0 fs/hfsplus/extents.c:-1 Modules linked in: CPU: 0 PID: 18553 Comm: syz.9.4894 Not tainted 6.1.134-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 RIP: 0010:hfsplus_free_extents+0x703/0xae0 fs/hfsplus/extents.c:346 Code: 0f cb 44 89 ef 89 de e8 4b 01 2c ff 41 39 dd 75 20 49 83 c7 28 e8 dd ff 2b ff 41 bc 05 00 00 00 e9 e2 f9 ff ff e8 cd ff 2b ff <0f> 0b e9 83 f9 ff ff 44 89 ef 89 de e8 1c 01 2c ff 41 29 dd 73 0a RSP: 0018:ffffc900032d7850 EFLAGS: 00010283 RAX: ffffffff825e4cd3 RBX: ffff8880565fd820 RCX: 0000000000080000 RDX: ffffc90021979000 RSI: 000000000000d04b RDI: 000000000000d04c RBP: ffff888026466000 R08: dffffc0000000000 R09: ffffed10050c940a R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000 R13: 00000000000000af R14: 000000000000015d R15: ffff88805034a218 FS: 00007fc8ff8b06c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f2a91946a30 CR3: 00000000627ce000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: hfsplus_file_truncate+0x5e0/0xc60 fs/hfsplus/extents.c:608 hfsplus_direct_IO+0x1b1/0x1e0 fs/hfsplus/inode.c:146 generic_file_direct_write+0x204/0x460 mm/filemap.c:3769 __generic_file_write_iter+0x1c4/0x400 mm/filemap.c:3929 generic_file_write_iter+0xab/0x310 mm/filemap.c:4005 do_iter_readv_writev fs/read_write.c:-1 [inline] do_iter_write+0x6e6/0xc40 fs/read_write.c:861 vfs_writev fs/read_write.c:934 [inline] do_writev+0x27b/0x460 fs/read_write.c:977 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3b/0x80 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7fc8fe98e969 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:00007fc8ff8b0038 EFLAGS: 00000246 ORIG_RAX: 0000000000000014 RAX: ffffffffffffffda RBX: 00007fc8febb5fa0 RCX: 00007fc8fe98e969 RDX: 000000000000001f RSI: 0000200000000140 RDI: 0000000000000004 RBP: 00007fc8fea10ab1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fc8febb5fa0 R15: 00007ffee18e7aa8