From: Pavel Begunkov Date: Wed, 8 Oct 2025 12:39:01 +0000 (+0100) Subject: io_uring/zcrx: increment fallback loop src offset X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=e9a9dcb4ccb32446165800a9d83058e95c4833d2;p=users%2Fhch%2Fmisc.git io_uring/zcrx: increment fallback loop src offset Don't forget to adjust the source offset in io_copy_page(), otherwise it'll be copying into the same location in some cases for highmem setups. Fixes: e67645bb7f3f4 ("io_uring/zcrx: prepare fallback for larger pages") Signed-off-by: Pavel Begunkov Signed-off-by: Jens Axboe --- diff --git a/io_uring/zcrx.c b/io_uring/zcrx.c index ef73440b605a..a816f5902091 100644 --- a/io_uring/zcrx.c +++ b/io_uring/zcrx.c @@ -1079,6 +1079,7 @@ static ssize_t io_copy_page(struct io_copy_cache *cc, struct page *src_page, cc->size -= n; cc->offset += n; + src_offset += n; len -= n; copied += n; }