io_uring: ensure recv and recvmsg handle MSG_WAITALL correctly
commit 7ba89d2a upstream. We currently don't attempt to get the full asked for length even if MSG_WAITALL is set, if we get a partial receive. If we do see a partial receive, then just note how many bytes we did and return -EAGAIN to get it retried. The iov is advanced appropriately for the vector based case, and we manually bump the buffer and remainder for the non-vector case. Cc: stable@vger.kernel.org Reported-by:Constantine Gavrilov <constantine.gavrilov@gmail.com> Signed-off-by:
Jens Axboe <axboe@kernel.dk> Signed-off-by:
Sasha Levin <sashal@kernel.org>
Loading
-
mentioned in commit c0678dc3
-
mentioned in commit 2a86712f
-
mentioned in commit 5e7920e5
-
mentioned in commit bafa0f2a
-
mentioned in commit cbae7ebc
-
mentioned in commit 8c2e4e41
-
mentioned in commit 9317a8f4
-
mentioned in commit b0b6bfe4
-
mentioned in commit 51556245
-
mentioned in commit 51556245
Please sign in to comment