------------[ cut here ]------------ le32_to_cpu(aed->lengthAllocDescs) != epos->offset - sizeof(struct allocExtDesc) WARNING: fs/udf/inode.c:2142 at __udf_add_aext+0x52b/0x6e0 fs/udf/inode.c:2141, CPU#1: syz.2.321/7288 Modules linked in: CPU: 1 UID: 0 PID: 7288 Comm: syz.2.321 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026 RIP: 0010:__udf_add_aext+0x52b/0x6e0 fs/udf/inode.c:2141 Code: 81 c4 48 ff ff ff 4c 89 e6 e8 f1 15 f8 fe 31 c0 48 83 c4 28 5b 41 5c 41 5d 41 5e 41 5f 5d c3 cc cc cc cc cc e8 e6 f4 5f fe 90 <0f> 0b 90 e9 0d fc ff ff e8 d8 f4 5f fe 90 0f 0b 90 e9 5f fd ff ff RSP: 0018:ffffc90003417798 EFLAGS: 00010287 RAX: ffffffff8367e00a RBX: dffffc0000000000 RCX: 0000000000080000 RDX: ffffc9000e801000 RSI: 00000000000074f4 RDI: 00000000000074f5 RBP: 1ffff92000682f55 R08: ffff8880237dbe80 R09: 0000000000000002 R10: 0000000000000001 R11: 0000000000000002 R12: 00000000000001e0 R13: 0000000000000000 R14: ffffc90003417aa0 R15: ffffc90003417aa8 FS: 00007f138582d6c0(0000) GS:ffff888124dc0000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fd809897fd0 CR3: 0000000059670000 CR4: 00000000003526f0 Call Trace: udf_setup_indirect_aext+0x614/0x800 fs/udf/inode.c:2104 udf_add_aext fs/udf/inode.c:2194 [inline] udf_do_extend_file+0x8a2/0x11e0 fs/udf/inode.c:599 udf_extend_file fs/udf/inode.c:720 [inline] udf_setsize+0xb7d/0xf50 fs/udf/inode.c:1304 udf_setattr+0x412/0x6f0 fs/udf/file.c:238 notify_change+0xbba/0xea0 fs/attr.c:556 do_truncate+0x1c2/0x250 fs/open.c:68 vfs_truncate+0x4b4/0x540 fs/open.c:118 ksys_truncate+0xf3/0x1c0 fs/open.c:142 __do_sys_truncate fs/open.c:154 [inline] __se_sys_truncate fs/open.c:152 [inline] __x64_sys_truncate+0x5b/0x70 fs/open.c:152 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f138499e159 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:00007f138582d028 EFLAGS: 00000246 ORIG_RAX: 000000000000004c RAX: ffffffffffffffda RBX: 00007f1384c26090 RCX: 00007f138499e159 RDX: 0000000000000000 RSI: 0000040000000000 RDI: 0000200000000180 RBP: 00007f1384a35024 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f1384c26128 R14: 00007f1384c26090 R15: 00007fff9ad0be38