------------[ cut here ]------------ within_last_ext && elen > ((loff_t)offset + 1) << inode->i_blkbits WARNING: fs/udf/inode.c:683 at udf_extend_file fs/udf/inode.c:682 [inline], CPU#1: syz.2.29/5938 WARNING: fs/udf/inode.c:683 at udf_setsize+0xdf5/0x10b0 fs/udf/inode.c:1298, CPU#1: syz.2.29/5938 Modules linked in: CPU: 1 UID: 0 PID: 5938 Comm: syz.2.29 Not tainted syzkaller #0 PREEMPT_{RT,(full)} Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/18/2026 RIP: 0010:udf_extend_file fs/udf/inode.c:682 [inline] RIP: 0010:udf_setsize+0xdf5/0x10b0 fs/udf/inode.c:1298 Code: 44 89 e0 48 8d 65 d8 5b 41 5c 41 5d 41 5e 41 5f 5d e9 cf 87 dc 07 cc e8 49 06 75 fe 45 89 f4 e9 2a fe ff ff e8 3c 06 75 fe 90 <0f> 0b 90 e9 8a f7 ff ff 44 89 f1 80 e1 07 38 c1 0f 8c 9f f2 ff ff RSP: 0018:ffffc90005f0faa0 EFLAGS: 00010287 RAX: ffffffff834fc5e4 RBX: ffff88805f1336d8 RCX: 0000000000080000 RDX: ffffc9000e85b000 RSI: 0000000000000626 RDI: 0000000000000627 RBP: ffffc90005f0fc00 R08: 0000000000000000 R09: 0000000000000000 R10: dffffc0000000000 R11: fffffbfff1f1597f R12: 0000000000000001 R13: 1ffff92000be1f68 R14: 0000000000000200 R15: 0000000000000e00 FS: 00007f7b1ca2d6c0(0000) GS:ffff88812601f000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000200000288030 CR3: 000000003db80000 CR4: 00000000003526f0 Call Trace: udf_setattr+0x3a2/0x5a0 fs/udf/file.c:245 notify_change+0xc18/0xf60 fs/attr.c:556 do_truncate+0x1c2/0x250 fs/open.c:68 do_ftruncate+0x49c/0x550 fs/open.c:194 ksys_ftruncate fs/open.c:206 [inline] __do_sys_ftruncate fs/open.c:211 [inline] __se_sys_ftruncate fs/open.c:209 [inline] __x64_sys_ftruncate+0x8f/0xe0 fs/open.c:209 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x15f/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f7b1e7fcdd9 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f7b1ca2d028 EFLAGS: 00000246 ORIG_RAX: 000000000000004d RAX: ffffffffffffffda RBX: 00007f7b1ea76090 RCX: 00007f7b1e7fcdd9 RDX: 0000000000000000 RSI: 0000000000000005 RDI: 0000000000000008 RBP: 00007f7b1e892d69 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f7b1ea76128 R14: 00007f7b1ea76090 R15: 00007ffef6889748