------------[ cut here ]------------ WARNING: CPU: 0 PID: 3872 at fs/udf/truncate.c:208 udf_truncate_extents+0xf90/0x11a0 Modules linked in: CPU: 0 PID: 3872 Comm: syz.1.45 Not tainted 6.1.106-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 RIP: 0010:udf_truncate_extents+0xf90/0x11a0 fs/udf/truncate.c:208 Code: 5c 41 5d 41 5e 41 5f 5d c3 e8 ec be 89 fe 41 be fb ff ff ff 48 8b 5c 24 60 49 bc 00 00 00 00 00 fc ff df eb 87 e8 d0 be 89 fe <0f> 0b e9 7b ff ff ff 48 8d 8c 24 60 01 00 00 80 e1 07 80 c1 03 38 RSP: 0018:ffffc900050077a0 EFLAGS: 00010246 RAX: ffffffff8300e4f0 RBX: 1ffff92000a00f0c RCX: 0000000000040000 RDX: ffffc90004d39000 RSI: 000000000003ffff RDI: 0000000000040000 RBP: ffffc90005007990 R08: ffffffff8300d9eb R09: ffffffff82fe7cb0 R10: 0000000000000002 R11: ffff88802906bb80 R12: dffffc0000000000 R13: 000003fc4000e401 R14: 0000000000000000 R15: 00000000000000ff FS: 00007fe256b8e6c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f05d835cd58 CR3: 000000007b87c000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: udf_do_extend_file+0xdc9/0x1140 fs/udf/inode.c:592 udf_extend_file fs/udf/inode.c:677 [inline] udf_setsize+0xd3c/0x1430 fs/udf/inode.c:1241 udf_setattr+0x36c/0x540 fs/udf/file.c:279 notify_change+0xce3/0xfc0 fs/attr.c:499 do_truncate+0x21c/0x300 fs/open.c:65 do_sys_ftruncate+0x2e2/0x380 fs/open.c:193 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7fe255d79e79 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:00007fe256b8e038 EFLAGS: 00000246 ORIG_RAX: 000000000000004d RAX: ffffffffffffffda RBX: 00007fe255f16058 RCX: 00007fe255d79e79 RDX: 0000000000000000 RSI: 2000000000001007 RDI: 0000000000000005 RBP: 00007fe255de7916 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fe255f16058 R15: 00007ffd3afca528