------------[ cut here ]------------ WARNING: CPU: 0 PID: 6397 at fs/udf/truncate.c:208 udf_truncate_extents+0xf90/0x11a0 Modules linked in: CPU: 0 PID: 6397 Comm: syz-executor.3 Not tainted 6.1.38-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/03/2023 RIP: 0010:udf_truncate_extents+0xf90/0x11a0 fs/udf/truncate.c:208 Code: 5c 41 5d 41 5e 41 5f 5d c3 e8 ac 00 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 90 00 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:ffffc90008c4eb00 EFLAGS: 00010246 RAX: ffffffff82fddab0 RBX: 1ffff92001189d78 RCX: 0000000000040000 RDX: ffffc9000c2a0000 RSI: 000000000003ffff RDI: 0000000000040000 RBP: ffffc90008c4ecf0 R08: ffffffff82fdcfab R09: ffffffff82fb7280 R10: 0000000000000002 R11: ffff888015f43b80 R12: dffffc0000000000 R13: 0000000000767110 R14: 0000000000000000 R15: 00000000000000ff FS: 00007fdfd120d6c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f5efc36d000 CR3: 0000000055488000 CR4: 00000000003506f0 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 do_iter_write+0x6e6/0xc50 fs/read_write.c:861 iter_file_splice_write+0x806/0xfa0 fs/splice.c:686 do_splice_from fs/splice.c:764 [inline] direct_splice_actor+0xe3/0x1c0 fs/splice.c:931 splice_direct_to_actor+0x4c0/0xbd0 fs/splice.c:886 do_splice_direct+0x27f/0x3c0 fs/splice.c:974 do_sendfile+0x61c/0xff0 fs/read_write.c:1255 __do_sys_sendfile64 fs/read_write.c:1323 [inline] __se_sys_sendfile64+0x178/0x1e0 fs/read_write.c:1309 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:0x7fdfd047cb29 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fdfd120d0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007fdfd059bf80 RCX: 00007fdfd047cb29 RDX: 0000000000000000 RSI: 0000000000000005 RDI: 0000000000000004 RBP: 00007fdfd04c847a R08: 0000000000000000 R09: 0000000000000000 R10: 0001000000201005 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007fdfd059bf80 R15: 00007ffca9c48808