Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
io_uring: fix explicit async read/write mapping for large segments
ANBZ: torvalds#190 commit c183edf upstream. If we exceed UIO_FASTIOV, we don't handle the transition correctly between an allocated vec for requests that are queued with IOSQE_ASYNC. Store the iovec appropriately and re-set it in the iter iov in case it changed. Fixes: ff6165b ("io_uring: retain iov_iter state over io_read/io_write calls") Reported-by: Nick Hill <nick@nickhill.org> Tested-by: Norman Maurer <norman.maurer@googlemail.com> Signed-off-by: Jens Axboe <axboe@kernel.dk> Signed-off-by: Joseph Qi <joseph.qi@linux.alibaba.com> Reviewed-by: Xiaoguang Wang <xiaoguang.wang@linux.alibaba.com> Reviewed-by: Hao Xu <haoxu@linux.alibaba.com> Tested-by: Hao Xu <haoxu@linux.alibaba.com>
- Loading branch information