loop0: detected capacity change from 0 to 2048 ------------[ cut here ]------------ WARNING: CPU: 0 PID: 5305 at fs/udf/truncate.c:226 udf_truncate_extents+0x848/0x930 fs/udf/truncate.c:226 Modules linked in: CPU: 0 PID: 5305 Comm: syz-executor383 Not tainted 6.1.0-rc5-next-20221116-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 RIP: 0010:udf_truncate_extents+0x848/0x930 fs/udf/truncate.c:226 Code: 84 d2 74 05 e8 09 50 ef fe 8b 44 24 20 be 07 00 00 00 48 89 df 89 83 cc fe ff ff e8 52 10 0b ff e9 a5 fd ff ff e8 78 ab a1 fe <0f> 0b e9 1f fe ff ff e8 6c ab a1 fe 0f 0b 48 8b 7c 24 18 e8 50 4f RSP: 0018:ffffc90003d8f9d8 EFLAGS: 00010293 RAX: 0000000000000000 RBX: ffff888072d507c0 RCX: 0000000000000000 RDX: ffff88801c2dba80 RSI: ffffffff82def968 RDI: 0000000000000007 RBP: ffffc90003d8fac0 R08: 0000000000000007 R09: 0000000000000000 R10: 0000000000000200 R11: 0000000000000000 R12: ffffc90003d8fa80 R13: 0000000000000200 R14: 00000000000000ff R15: ffff88802b85c000 FS: 0000555557200300(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000002000e000 CR3: 0000000027b16000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: udf_write_failed.isra.0+0x173/0x1c0 fs/udf/inode.c:179 udf_write_begin+0x83/0xa0 fs/udf/inode.c:214 generic_perform_write+0x256/0x570 mm/filemap.c:3771 __generic_file_write_iter+0x2ae/0x4d0 mm/filemap.c:3899 udf_file_write_iter+0x2d0/0x650 fs/udf/file.c:170 call_write_iter include/linux/fs.h:2160 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0xa45/0xe40 fs/read_write.c:584 ksys_write+0x12b/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:0x7fc6f46aa8f9 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 c0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fff84474fd8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00000000200001c0 RCX: 00007fc6f46aa8f9 RDX: 000000000208e24b RSI: 0000000020000040 RDI: 0000000000000003 RBP: 0000000000000000 R08: 00007fff84475000 R09: 00007fff84475000 R10: 00007fff84474eb0 R11: 0000000000000246 R12: 00007fff84474ffc R13: 00007fff84475030 R14: 00007fff84475010 R15: 0000000000000001