------------[ cut here ]------------ WARNING: CPU: 0 PID: 6158 at fs/hfsplus/extents.c:346 hfsplus_free_extents+0x3e9/0x530 fs/hfsplus/extents.c:346 Modules linked in: CPU: 0 UID: 0 PID: 6158 Comm: syz-executor.0 Not tainted 6.16.0-rc1-syzkaller-g8c6bc74c7f89 #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 RIP: 0010:hfsplus_free_extents+0x3e9/0x530 fs/hfsplus/extents.c:346 Code: 1e ff 8b 44 24 04 85 c0 0f 84 2b fe ff ff e8 8e aa 1e ff 48 c7 c7 a0 19 ca 8b e8 32 7e fd fe e9 15 fe ff ff e8 78 aa 1e ff 90 <0f> 0b 90 e9 a3 fc ff ff e8 6a aa 1e ff 8b 14 24 8b 74 24 04 48 8b RSP: 0018:ffffc90004ae7980 EFLAGS: 00010293 RAX: 0000000000000000 RBX: ffff88803337a1d8 RCX: ffffffff829d6e1b RDX: ffff888027af2440 RSI: ffffffff829d7178 RDI: 0000000000000001 RBP: 0000000000000146 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000001 R12: 00000000267aa401 R13: 0000000000000144 R14: ffff88802a106000 R15: ffff88802a106000 FS: 00007fa42b69a6c0(0000) GS:ffff8880d6753000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f7190bfa286 CR3: 000000003923e000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: hfsplus_file_truncate+0x8da/0xb70 fs/hfsplus/extents.c:592 hfsplus_write_failed fs/hfsplus/inode.c:37 [inline] hfsplus_write_begin+0xf4/0x120 fs/hfsplus/inode.c:50 generic_perform_write+0x3d0/0x930 mm/filemap.c:4112 __generic_file_write_iter+0x1f7/0x240 mm/filemap.c:4229 generic_file_write_iter+0xe1/0x3c0 mm/filemap.c:4255 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x6c4/0x1150 fs/read_write.c:686 ksys_write+0x12a/0x250 fs/read_write.c:738 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:0x7fa42a87de69 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:00007fa42b69a0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fa42a9ac050 RCX: 00007fa42a87de69 RDX: 00000000000ffe00 RSI: 0000000020004200 RDI: 0000000000000004 RBP: 00007fa42a8ca47a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000006e R14: 00007fa42a9ac050 R15: 00007ffd0c931468