------------[ 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-executor/6595 WARNING: fs/udf/inode.c:683 at udf_setsize+0xdf5/0x10b0 fs/udf/inode.c:1298, CPU#1: syz-executor/6595 Modules linked in: CPU: 1 UID: 0 PID: 6595 Comm: syz-executor Not tainted syzkaller #0 PREEMPT_{RT,(full)} Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/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 bf 33 e4 07 cc e8 b9 41 78 fe 45 89 f4 e9 2a fe ff ff e8 ac 41 78 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:ffffc90003d87aa0 EFLAGS: 00010293 RAX: ffffffff834c54b4 RBX: ffff888051a43e60 RCX: ffff88802a069ec0 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffc90003d87c00 R08: 0000000000000000 R09: 0000000000000000 R10: dffffc0000000000 R11: fffffbfff1f179bf R12: 0000000000000001 R13: 1ffff920007b0f68 R14: 0000000000000400 R15: 0000000000000c00 FS: 00007f9f14f4d6c0(0000) GS:ffff8881261fb000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020000040 CR3: 000000003e55c000 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:0x7f9f15bde9b9 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 d0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f9f14f4d078 EFLAGS: 00000246 ORIG_RAX: 000000000000004d RAX: ffffffffffffffda RBX: 00007f9f15d1c050 RCX: 00007f9f15bde9b9 RDX: 0000000000000000 RSI: 00000000000007fa RDI: 0000000000000004 RBP: 00007f9f15c3f4bc R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f9f15d1c050 R15: 00007fff0f50e0b8