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 82826a64
-
mentioned in commit 4a8d7701
-
mentioned in commit 4e8dc01a
-
mentioned in commit 8de6f23a
-
mentioned in commit 373a2dac
-
mentioned in commit 40aebc66
-
mentioned in commit b768c5c9
-
mentioned in commit afea97d7
-
mentioned in commit bae56853
-
mentioned in commit 3a74ee4a
-
mentioned in commit 45b2a34e
-
mentioned in commit fb0cece7
-
mentioned in commit fb0cece7
-
mentioned in commit abd190d1
-
mentioned in commit d830251c
-
mentioned in commit 673cade1
-
mentioned in commit 0ace25ec
-
mentioned in commit 616d7cda
-
mentioned in commit b28a5779
-
mentioned in commit b28a5779
Please sign in to comment