------------[ cut here ]------------ within_last_ext && elen > ((loff_t)offset + 1) << inode->i_blkbits WARNING: fs/udf/inode.c:684 at udf_extend_file fs/udf/inode.c:683 [inline], CPU#0: syz.4.26/6065 WARNING: fs/udf/inode.c:684 at udf_setsize+0xdf5/0x10b0 fs/udf/inode.c:1300, CPU#0: syz.4.26/6065 Modules linked in: CPU: 0 UID: 0 PID: 6065 Comm: syz.4.26 Not tainted syzkaller #0 PREEMPT_{RT,(full)} Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/24/2026 RIP: 0010:udf_extend_file fs/udf/inode.c:683 [inline] RIP: 0010:udf_setsize+0xdf5/0x10b0 fs/udf/inode.c:1300 Code: 44 89 e0 48 8d 65 d8 5b 41 5c 41 5d 41 5e 41 5f 5d c3 cc cc cc cc cc e8 69 d1 81 fe 45 89 f4 e9 2a fe ff ff e8 5c d1 81 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:ffffc900065579c0 EFLAGS: 00010293 RAX: ffffffff83416314 RBX: ffff88805e220f98 RCX: ffff88802705bc80 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffc90006557b20 R08: 0000000000000000 R09: 0000000000000000 R10: dffffc0000000000 R11: fffffbfff1e8fbef R12: 0000000000000001 R13: 1ffff92000caaf4c R14: 0000000000000800 R15: 0000000000001000 FS: 00007f06f76d66c0(0000) GS:ffff8881265c9000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f06ef2d4000 CR3: 000000002fcd8000 CR4: 00000000003526f0 Call Trace: udf_setattr+0x3a2/0x5a0 fs/udf/file.c:236 notify_change+0xc18/0xf60 fs/attr.c:546 do_truncate+0x1c2/0x250 fs/open.c:68 vfs_truncate+0x4b4/0x540 fs/open.c:118 do_sys_truncate+0xf1/0x1c0 fs/open.c:141 __do_sys_truncate fs/open.c:153 [inline] __se_sys_truncate fs/open.c:151 [inline] __x64_sys_truncate+0x5b/0x70 fs/open.c:151 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xe2/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f06f947aeb9 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:00007f06f76d6028 EFLAGS: 00000246 ORIG_RAX: 000000000000004c RAX: ffffffffffffffda RBX: 00007f06f96f5fa0 RCX: 00007f06f947aeb9 RDX: 0000000000000000 RSI: 00000000000006e3 RDI: 00002000000000c0 RBP: 00007f06f94e8c1f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f06f96f6038 R14: 00007f06f96f5fa0 R15: 00007ffca2b71dd8