------------[ cut here ]------------ WARNING: CPU: 1 PID: 24816 at fs/udf/truncate.c:208 udf_truncate_extents+0xbf4/0xdc8 Modules linked in: CPU: 1 PID: 24816 Comm: syz-executor.3 Not tainted 5.15.120-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/03/2023 pstate: 60400005 (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 : ffff80001ed16d20 x29: ffff80001ed16f00 x28: ffff00011a380e78 x27: 00000000002b0000 x26: dfff800000000000 x25: ffff80001ed16ea0 x24: 00000000000000ff x23: 0000000000000008 x22: ffff80001ed16e60 x21: 00000000000000ff x20: ffff00011a380e28 x19: ffff80001ed16e20 x18: 0000000000000000 x17: ff80800009838f94 x16: 0000000000000002 x15: ffff800009838f94 x14: 0000000000000001 x13: ffffffffffffffff x12: 0000000000040000 x11: 000000000003ffff x10: ffff80001f559000 x9 : ffff800009858e68 x8 : 0000000000040000 x7 : 0000000000000000 x6 : 0000000000000000 x5 : 0000000000000000 x4 : 0000000000000001 x3 : 0000000000000001 x2 : ffff80001ed16e28 x1 : 00000000002b0000 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+0x1258/0x4120 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:3776 __generic_file_write_iter+0x230/0x454 mm/filemap.c:3903 udf_file_write_iter+0x234/0x490 fs/udf/file.c:163 call_write_iter include/linux/fs.h:2103 [inline] new_sync_write fs/read_write.c:507 [inline] vfs_write+0x87c/0xb3c fs/read_write.c:594 ksys_write+0x15c/0x26c fs/read_write.c:647 __do_sys_write fs/read_write.c:659 [inline] __se_sys_write fs/read_write.c:656 [inline] __arm64_sys_write+0x7c/0x90 fs/read_write.c:656 __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:596 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:614 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 irq event stamp: 31228 hardirqs last enabled at (31227): [] lookup_bh_lru fs/buffer.c:1294 [inline] hardirqs last enabled at (31227): [] __find_get_block+0x1d0/0xdd4 fs/buffer.c:1306 hardirqs last disabled at (31228): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:387 softirqs last enabled at (30326): [] softirq_handle_end kernel/softirq.c:401 [inline] softirqs last enabled at (30326): [] __do_softirq+0xb5c/0xe20 kernel/softirq.c:587 softirqs last disabled at (30275): [] do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline] softirqs last disabled at (30275): [] invoke_softirq kernel/softirq.c:439 [inline] softirqs last disabled at (30275): [] __irq_exit_rcu+0x28c/0x534 kernel/softirq.c:636 ---[ end trace bfabba41b87093a9 ]--- attempt to access beyond end of device loop3: rw=2049, want=2049, limit=2048 buffer_io_error: 7 callbacks suppressed Buffer I/O error on dev loop3, logical block 2048, lost async page write attempt to access beyond end of device loop3: rw=2049, want=2049, limit=2048 Buffer I/O error on dev loop3, logical block 2048, lost async page write Buffer I/O error on dev loop3, logical block 2048, lost async page write Buffer I/O error on dev loop3, logical block 2048, lost async page write Buffer I/O error on dev loop3, logical block 2049, lost async page write Buffer I/O error on dev loop3, logical block 2049, lost async page write Buffer I/O error on dev loop3, logical block 2049, lost async page write Buffer I/O error on dev loop3, logical block 2049, lost async page write Buffer I/O error on dev loop3, logical block 2050, lost async page write Buffer I/O error on dev loop3, logical block 2050, lost async page write