loop6: detected capacity change from 0 to 2048 UDF-fs: INFO Mounting volume 'LiuxUDF', timestamp 2022/11/22 14:59 (1000) ------------[ cut here ]------------ le32_to_cpu(aed->lengthAllocDescs) != epos->offset - sizeof(struct allocExtDesc) WARNING: fs/udf/inode.c:2100 at __udf_add_aext+0x52b/0x6e0 fs/udf/inode.c:2099, CPU#1: syz.6.328/7289 Modules linked in: CPU: 1 UID: 0 PID: 7289 Comm: syz.6.328 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/26/2026 RIP: 0010:__udf_add_aext+0x52b/0x6e0 fs/udf/inode.c:2099 Code: 81 c4 48 ff ff ff 4c 89 e6 e8 31 27 f8 fe 31 c0 48 83 c4 28 5b 41 5c 41 5d 41 5e 41 5f 5d e9 27 55 a7 fd cc e8 16 26 5f fe 90 <0f> 0b 90 e9 0d fc ff ff e8 08 26 5f fe 90 0f 0b 90 e9 5f fd ff ff RSP: 0018:ffffc9000d467798 EFLAGS: 00010287 RAX: ffffffff8368ebea RBX: dffffc0000000000 RCX: 0000000000080000 RDX: ffffc900038f9000 RSI: 000000000001ef02 RDI: 000000000001ef03 RBP: 1ffff92001a8cf55 R08: ffff88804ae70000 R09: 0000000000000002 R10: 0000000000000001 R11: 0000000000000002 R12: 00000000000001e0 R13: 0000000000000000 R14: ffffc9000d467aa0 R15: ffffc9000d467aa8 FS: 00007f9b83c556c0(0000) GS:ffff888123bbf000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f8a58fbf000 CR3: 0000000029fba000 CR4: 0000000000350ef0 Call Trace: udf_setup_indirect_aext+0x619/0x800 fs/udf/inode.c:2062 udf_add_aext fs/udf/inode.c:2152 [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:0x7f9b82d9e559 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:00007f9b83c55028 EFLAGS: 00000246 ORIG_RAX: 000000000000004c RAX: ffffffffffffffda RBX: 00007f9b83025fa0 RCX: 00007f9b82d9e559 RDX: 0000000000000000 RSI: 0000040000000000 RDI: 0000200000000880 RBP: 00007f9b82e35ad8 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f9b83026038 R14: 00007f9b83025fa0 R15: 00007ffeab86e368