attempt to access beyond end of device loop0: rw=2049, want=2050, limit=2048 Buffer I/O error on dev loop0, logical block 2049, lost async page write ------------[ cut here ]------------ WARNING: CPU: 1 PID: 4018 at fs/udf/truncate.c:208 udf_truncate_extents+0xbf4/0xdc8 Modules linked in: CPU: 1 PID: 4018 Comm: syz-executor168 Not tainted 5.15.164-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024 pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : udf_truncate_extents+0xbf4/0xdc8 lr : udf_truncate_extents+0xbf0/0xdc8 fs/udf/truncate.c:208 sp : ffff80001caf6ba0 x29: ffff80001caf6d80 x28: ffff0000e1428e78 x27: 0000000007e55e62 x26: dfff800000000000 x25: ffff80001caf6d20 x24: 00000000000000ff x23: 0000000000000010 x22: ffff80001caf6ce0 x21: 00000000000000ff x20: ffff0000e1428e28 x19: ffff80001caf6ca0 x18: 0000000000000000 x17: 0000000000000000 x16: ffff80000985c9bc x15: 0000000000000001 x14: ffff0000daddb680 x13: 0000000000ff0100 x12: ffffffffffffffff x11: 0000000000000000 x10: 0000000000000000 x9 : ffff0000daddb680 x8 : ffff80000987c890 x7 : 0000000000000000 x6 : 0000000000000000 x5 : 0000000000000000 x4 : 0000000000000001 x3 : 0000000000000001 x2 : ffff80001caf6ca8 x1 : 0000000007e55e62 x0 : 0000000000000000 Call trace: udf_truncate_extents+0xbf4/0xdc8 udf_do_extend_file+0xae0/0xde0 fs/udf/inode.c:591 inode_getblk fs/udf/inode.c:798 [inline] udf_get_block+0x11a0/0x4094 fs/udf/inode.c:448 __block_write_begin_int+0x3ec/0x1608 fs/buffer.c:2012 __block_write_begin fs/buffer.c:2062 [inline] block_write_begin+0x60/0xdc fs/buffer.c:2122 udf_write_begin+0x50/0x98 fs/udf/inode.c:212 generic_perform_write+0x24c/0x520 mm/filemap.c:3785 __generic_file_write_iter+0x230/0x454 mm/filemap.c:3912 udf_file_write_iter+0x234/0x490 fs/udf/file.c:163 do_iter_readv_writev+0x420/0x5f8 do_iter_write+0x1b8/0x66c fs/read_write.c:855 vfs_writev fs/read_write.c:928 [inline] do_pwritev+0x1ec/0x334 fs/read_write.c:1025 __do_sys_pwritev2 fs/read_write.c:1084 [inline] __se_sys_pwritev2 fs/read_write.c:1075 [inline] __arm64_sys_pwritev2+0xd4/0x108 fs/read_write.c:1075 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181 el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:608 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 irq event stamp: 41362 hardirqs last enabled at (41361): [] lookup_bh_lru fs/buffer.c:1294 [inline] hardirqs last enabled at (41361): [] __find_get_block+0x1d0/0xdd4 fs/buffer.c:1306 hardirqs last disabled at (41362): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:396 softirqs last enabled at (41208): [] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:31 softirqs last disabled at (41206): [] local_bh_disable+0x10/0x34 include/linux/bottom_half.h:18 ---[ end trace c06039cb2fc12b40 ]---