------------[ cut here ]------------ WARNING: CPU: 1 PID: 4386 at fs/udf/truncate.c:208 udf_truncate_extents+0xf90/0x11a0 Modules linked in: CPU: 1 PID: 4386 Comm: syz-executor530 Not tainted 6.1.27-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023 RIP: 0010:udf_truncate_extents+0xf90/0x11a0 fs/udf/truncate.c:208 Code: 5c 41 5d 41 5e 41 5f 5d c3 e8 8c 3e 8c 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 70 3e 8c 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:ffffc900054f7100 EFLAGS: 00010293 RAX: ffffffff82fd8a50 RBX: 1ffff92000a9ee38 RCX: ffff8880254c57c0 RDX: 0000000000000000 RSI: 0000000000000200 RDI: 0000000000000000 RBP: ffffc900054f72f0 R08: ffffffff82fd7f4b R09: ffffffff82fb2220 R10: 0000000000000002 R11: ffff8880254c57c0 R12: dffffc0000000000 R13: 0000000000000200 R14: 0000000000000000 R15: 00000000000000ff FS: 00007f7ebe186700(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020044000 CR3: 000000002045a000 CR4: 00000000003506e0 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 inode_getblk fs/udf/inode.c:799 [inline] udf_get_block+0x1520/0x4d10 fs/udf/inode.c:449 __block_write_begin_int+0x544/0x1a30 fs/buffer.c:1991 __block_write_begin fs/buffer.c:2041 [inline] block_write_begin+0x98/0x1f0 fs/buffer.c:2102 udf_write_begin+0x2d/0x60 fs/udf/inode.c:212 generic_perform_write+0x2fc/0x5e0 mm/filemap.c:3754 __generic_file_write_iter+0x176/0x400 mm/filemap.c:3882 udf_file_write_iter+0x291/0x670 fs/udf/file.c:164 call_write_iter include/linux/fs.h:2205 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x7ae/0xba0 fs/read_write.c:584 ksys_write+0x19c/0x2c0 fs/read_write.c:637 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f7ebe1da649 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 71 15 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f7ebe1862f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f7ebe2607a0 RCX: 00007f7ebe1da649 RDX: 000000000208e24b RSI: 0000000020000040 RDI: 0000000000000004 RBP: 00007f7ebe22cd08 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f7ebe22c0e0 R13: 00000000200004c0 R14: 0032656c69662f2e R15: 00007f7ebe2607a8