loop0: detected capacity change from 0 to 2048 UDF-fs: error (device loop0): udf_read_tagged: tag checksum failed, block 99: 0x27 != 0x4d UDF-fs: INFO Mounting volume 'LinuxUDF', timestamp 2022/11/22 14:59 (1000) loop0: detected capacity change from 2048 to 2047 UDF-fs: error (device loop0): udf_verify_fi: directory (ino 1376) has entry at pos 0 with incorrect tag 2700 UDF-fs: error (device loop0): udf_verify_fi: directory (ino 1376) has entry at pos 0 with incorrect tag 2700 UDF-fs: error (device loop0): udf_verify_fi: directory (ino 1376) has entry at pos 0 with incorrect tag 2700 UDF-fs: error (device loop0): udf_verify_fi: directory (ino 1376) has entry at pos 0 with incorrect tag 2700 UDF-fs: error (device loop0): udf_verify_fi: directory (ino 1376) has entry at pos 0 with incorrect tag 2700 UDF-fs: error (device loop0): udf_verify_fi: directory (ino 1376) has entry at pos 0 with incorrect tag 2700 UDF-fs: error (device loop0): udf_verify_fi: directory (ino 1376) has entry at pos 0 with incorrect tag 2700 ------------[ cut here ]------------ byte_offset WARNING: fs/udf/truncate.c:225 at udf_truncate_extents+0xd79/0xef0 fs/udf/truncate.c:225, CPU#0: syz.0.0/5345 Modules linked in: CPU: 0 UID: 0 PID: 5345 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 RIP: 0010:udf_truncate_extents+0xd79/0xef0 fs/udf/truncate.c:225 Code: 12 68 11 48 3b 84 24 80 01 00 00 75 7a 44 89 f0 48 8d 65 d8 5b 41 5c 41 5d 41 5e 41 5f 5d c3 cc cc cc cc cc e8 78 87 4e fe 90 <0f> 0b 90 e9 67 ff ff ff 44 89 f9 80 e1 07 38 c1 0f 8c f3 f3 ff ff RSP: 0018:ffffc9000e30f840 EFLAGS: 00010283 RAX: ffffffff837aadc8 RBX: 000000207ffbfffc RCX: 0000000000100000 RDX: ffffc9000ef52000 RSI: 00000000000017cd RDI: 00000000000017ce RBP: ffffc9000e30fa10 R08: ffff888038fa0000 R09: 0000000000000002 R10: 0000000000000001 R11: 0000000000000002 R12: 0000001bbffc23fc R13: 1ffff11008f0173d R14: 0000000000000000 R15: 0000001bbffc2200 FS: 00007fae35e9d6c0(0000) GS:ffff88808a9f4000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000020000002cd00 CR3: 0000000013b61000 CR4: 0000000000352ef0 Call Trace: udf_setsize+0x988/0xf50 fs/udf/inode.c:1326 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+0x4b7/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+0x171/0x540 arch/x86/entry/syscall_64.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fae34fa94d9 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:00007fae35e9cfe8 EFLAGS: 00000246 ORIG_RAX: 000000000000004c RAX: ffffffffffffffda RBX: 00007fae35225fa0 RCX: 00007fae34fa94d9 RDX: 0000000000000000 RSI: 000000207ffbfffc RDI: 0000200000000000 RBP: 00007fae3503804e R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fae35226038 R14: 00007fae35225fa0 R15: 00007ffd4172b4e8