------------[ cut here ]------------ WARNING: CPU: 0 PID: 5624 at fs/udf/truncate.c:204 udf_truncate_extents+0x8a9/0x9d0 fs/udf/truncate.c:204 Modules linked in: CPU: 0 PID: 5624 Comm: syz-executor116 Not tainted 6.4.0-syzkaller-12491-gc192ac735768 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/03/2023 RIP: 0010:udf_truncate_extents+0x8a9/0x9d0 fs/udf/truncate.c:204 Code: 84 d2 74 05 e8 a8 bb ee fe 8b 44 24 28 be 07 00 00 00 48 89 df 89 83 cc fe ff ff e8 21 b9 0a ff e9 a5 fd ff ff e8 57 85 9b fe <0f> 0b e9 1f fe ff ff e8 4b 85 9b fe 0f 0b 48 8b 7c 24 10 48 89 74 RSP: 0018:ffffc90004b2f258 EFLAGS: 00010293 RAX: 0000000000000000 RBX: ffff88807070e7d8 RCX: 0000000000000000 RDX: ffff888013300000 RSI: ffffffff82e95c69 RDI: 0000000000000007 RBP: ffffc90004b2f350 R08: 0000000000000007 R09: 0000000000000000 R10: 0000000000002a00 R11: 0000000000000001 R12: ffff888028614000 R13: 0000000000002a00 R14: 00000000000000ff R15: ffffc90004b2f310 FS: 00007f66bb9c4700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000002000f000 CR3: 000000002c185000 CR4: 0000000000350ef0 Call Trace: udf_do_extend_file+0x519/0x860 fs/udf/inode.c:609 inode_getblk+0x1099/0x3e50 fs/udf/inode.c:818 udf_map_block+0x2e3/0x560 fs/udf/inode.c:446 __udf_get_block+0x9c/0x330 fs/udf/inode.c:460 __block_write_begin_int+0x3b1/0x14a0 fs/buffer.c:2128 __block_write_begin fs/buffer.c:2178 [inline] block_write_begin+0xb9/0x4d0 fs/buffer.c:2239 udf_write_begin+0x28b/0x370 fs/udf/inode.c:261 generic_perform_write+0x26b/0x5d0 mm/filemap.c:3923 __generic_file_write_iter+0x1f8/0x240 mm/filemap.c:4018 udf_file_write_iter+0x239/0x740 fs/udf/file.c:111 call_write_iter include/linux/fs.h:1871 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x981/0xda0 fs/read_write.c:584 ksys_write+0x122/0x250 fs/read_write.c:637 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f66bba20bf9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 91 18 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:00007f66bb9c4208 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000000000018 RCX: 00007f66bba20bf9 RDX: 000000000000fd14 RSI: 0000000020000080 RDI: 0000000000000005 RBP: 00007f66bba9f780 R08: 00007f66bba9f788 R09: 00007f66bba9f788 R10: 00007f66bba9f788 R11: 0000000000000246 R12: 00007f66bba9f78c R13: 00007ffe1b508bbf R14: 00007f66bb9c4300 R15: 0000000000022000