------------[ cut here ]------------ WARNING: CPU: 1 PID: 5946 at fs/udf/truncate.c:224 udf_truncate_extents+0x8f3/0xa70 fs/udf/truncate.c:224 Modules linked in: CPU: 1 UID: 0 PID: 5946 Comm: syz.0.8 Not tainted 6.13.0-rc2-syzkaller-00159-gf932fb9b4074 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/25/2024 RIP: 0010:udf_truncate_extents+0x8f3/0xa70 fs/udf/truncate.c:224 Code: e8 d2 e8 ff ff e9 81 fe ff ff bb fb ff ff ff e9 5b fa ff ff e8 be 8d 83 fe 8b 44 24 20 05 b0 00 00 00 eb a3 e8 ae 8d 83 fe 90 <0f> 0b 90 31 db e9 3b fa ff ff e8 9e 8d 83 fe 48 8d bd cc fe ff ff RSP: 0018:ffffc90003217a58 EFLAGS: 00010287 RAX: 0000000000000fd1 RBX: 0000000000000000 RCX: ffffc9000bdc9000 RDX: 0000000000080000 RSI: ffffffff83167542 RDI: 0000000000000007 RBP: ffff888057fc87b8 R08: 0000000000000007 R09: 0000000000000000 R10: 000000000000000a R11: 0000000000000003 R12: ffff88803181c000 R13: 000000000000000a R14: ffffc90003217b10 R15: ffffc90003217b50 FS: 00007f71848366c0(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000110c2f62d0 CR3: 00000000304ec000 CR4: 0000000000350ef0 Call Trace: udf_write_failed.isra.0+0x170/0x1c0 fs/udf/inode.c:178 udf_direct_IO+0x20e/0x280 fs/udf/inode.c:307 generic_file_direct_write+0x19a/0x410 mm/filemap.c:3978 __generic_file_write_iter+0x11b/0x240 mm/filemap.c:4142 udf_file_write_iter+0x233/0x740 fs/udf/file.c:111 new_sync_write fs/read_write.c:586 [inline] vfs_write+0x5b1/0x1150 fs/read_write.c:679 ksys_pwrite64 fs/read_write.c:786 [inline] __do_sys_pwrite64 fs/read_write.c:794 [inline] __se_sys_pwrite64 fs/read_write.c:791 [inline] __x64_sys_pwrite64+0x1f6/0x250 fs/read_write.c:791 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f7183985d19 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:00007f7184836038 EFLAGS: 00000246 ORIG_RAX: 0000000000000012 RAX: ffffffffffffffda RBX: 00007f7183b75fa0 RCX: 00007f7183985d19 RDX: 0000000000000001 RSI: 0000000020000000 RDI: 0000000000000004 RBP: 00007f7183a01a20 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000ffff R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f7183b75fa0 R15: 00007ffcdc6dd538