loop0: detected capacity change from 0 to 1024 UDF-fs: INFO Mounting volume 'LinuxUDF', timestamp 2022/11/22 14:59 (1000) syz.0.0: attempt to access beyond end of device loop0: rw=2049, sector=1024, nr_sectors = 1 limit=1024 Buffer I/O error on dev loop0, logical block 1024, lost async page write syz.0.0: attempt to access beyond end of device loop0: rw=2049, sector=1024, nr_sectors = 1 limit=1024 Buffer I/O error on dev loop0, logical block 1024, lost async page write syz.0.0: attempt to access beyond end of device loop0: rw=2049, sector=1024, nr_sectors = 1 limit=1024 Buffer I/O error on dev loop0, logical block 1024, lost async page write syz.0.0: attempt to access beyond end of device loop0: rw=2049, sector=1024, nr_sectors = 1 limit=1024 Buffer I/O error on dev loop0, logical block 1024, lost async page write loop0: detected capacity change from 1024 to 1023 ------------[ cut here ]------------ WARNING: CPU: 0 PID: 5361 at fs/udf/inode.c:2088 __udf_add_aext+0x524/0x6d0 fs/udf/inode.c:2087 Modules linked in: CPU: 0 UID: 0 PID: 5361 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~bpo12+1 04/01/2014 RIP: 0010:__udf_add_aext+0x524/0x6d0 fs/udf/inode.c:2087 Code: bb eb fe 49 8b 3e 4c 89 e6 e8 48 6d 0e ff 31 c0 48 83 c4 28 5b 41 5c 41 5d 41 5e 41 5f 5d e9 93 2e 46 08 cc e8 ad bf 86 fe 90 <0f> 0b 90 e9 14 fc ff ff e8 9f bf 86 fe 90 0f 0b 90 e9 66 fd ff ff RSP: 0018:ffffc9000d41f840 EFLAGS: 00010287 RAX: ffffffff8338fd93 RBX: dffffc0000000000 RCX: 0000000000100000 RDX: ffffc9000e1ba000 RSI: 00000000000008dc RDI: 00000000000008dd RBP: 1ffff92001a83f59 R08: ffff888033084880 R09: 0000000000000002 R10: 0000000000000001 R11: 0000000000000002 R12: 0000000000000000 R13: 0000000000000001 R14: ffffc9000d41fac0 R15: ffffc9000d41fac8 FS: 00007f1fc5e6b6c0(0000) GS:ffff88808d007000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f7877373000 CR3: 0000000043bcb000 CR4: 0000000000352ef0 Call Trace: udf_add_aext fs/udf/inode.c:2145 [inline] udf_do_extend_file+0x576/0x1180 fs/udf/inode.c:551 udf_extend_file fs/udf/inode.c:712 [inline] udf_setsize+0xb78/0x1000 fs/udf/inode.c:1300 udf_setattr+0x3a1/0x5a0 fs/udf/file.c:236 notify_change+0xb33/0xe40 fs/attr.c:552 do_truncate+0x1a4/0x220 fs/open.c:68 vfs_truncate+0x493/0x520 fs/open.c:118 do_sys_truncate+0xdb/0x190 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+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f1fc4f8eec9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f1fc5e6b038 EFLAGS: 00000246 ORIG_RAX: 000000000000004c RAX: ffffffffffffffda RBX: 00007f1fc51e5fa0 RCX: 00007f1fc4f8eec9 RDX: 0000000000000000 RSI: 00000020fdfffffe RDI: 0000200000000100 RBP: 00007f1fc5011f91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f1fc51e6038 R14: 00007f1fc51e5fa0 R15: 00007ffd198a06d8