loop2: detected capacity change from 0 to 2048 UDF-fs: INFO Mounting volume 'LinuxUDF', timestamp 2022/11/22 14:59 (1000) ------------[ cut here ]------------ WARNING: CPU: 1 PID: 6406 at fs/udf/truncate.c:224 udf_truncate_extents+0x985/0xa80 fs/udf/truncate.c:224 Modules linked in: CPU: 1 UID: 0 PID: 6406 Comm: syz.2.122 Not tainted 6.15.0-rc5-syzkaller-00300-g3ce9925823c7 #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 RIP: 0010:udf_truncate_extents+0x985/0xa80 fs/udf/truncate.c:224 Code: fe e9 4c f8 ff ff 48 8b 7c 24 18 e8 95 33 e3 fe e9 09 f9 ff ff 48 8b 7c 24 18 e8 86 33 e3 fe e9 a9 f7 ff ff e8 5c ad 7e fe 90 <0f> 0b 90 e9 a5 f9 ff ff e8 4e ad 7e fe 90 0f 0b 48 8b 7c 24 10 48 RSP: 0018:ffffc900045af880 EFLAGS: 00010283 RAX: 0000000000001685 RBX: ffff8880574d87b8 RCX: ffffc9000c7bc000 RDX: 0000000000080000 RSI: ffffffff833c74d4 RDI: 0000000000000007 RBP: ffffc900045af978 R08: 0000000000000007 R09: 0000000000000000 R10: 000000000000000a R11: 0000000000000000 R12: ffff888024aa2000 R13: 0000000000000000 R14: 000000000000000a R15: ffffc900045af938 FS: 00007f433a3276c0(0000) GS:ffff888124ae5000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000200000155030 CR3: 000000004e839000 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:4037 __generic_file_write_iter+0x11b/0x240 mm/filemap.c:4206 udf_file_write_iter+0x233/0x7b0 fs/udf/file.c:111 do_iter_readv_writev+0x657/0x950 fs/read_write.c:825 vfs_writev+0x353/0xdc0 fs/read_write.c:1055 do_pwritev+0x1af/0x270 fs/read_write.c:1151 __do_sys_pwritev2 fs/read_write.c:1209 [inline] __se_sys_pwritev2 fs/read_write.c:1200 [inline] __x64_sys_pwritev2+0xef/0x160 fs/read_write.c:1200 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0x260 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f433958e969 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:00007f433a327038 EFLAGS: 00000246 ORIG_RAX: 0000000000000148 RAX: ffffffffffffffda RBX: 00007f43397b5fa0 RCX: 00007f433958e969 RDX: 0000000000000001 RSI: 0000200000000000 RDI: 0000000000000005 RBP: 00007f4339610ab1 R08: 000000000000010f R09: 0000000000000000 R10: 000000000002020b R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f43397b5fa0 R15: 00007fff8f193d98