io_uring: ensure recv and recvmsg handle MSG_WAITALL correctly
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>
-
mentioned in commit 82826a64
-
mentioned in commit 5e766499
-
mentioned in commit 53880f97
-
mentioned in commit 77147666
-
mentioned in commit 4a8d7701
-
mentioned in commit 5635bf63
-
mentioned in commit 4e8dc01a
-
mentioned in commit 250e046d
-
mentioned in commit ea336e7f
-
mentioned in commit 8de6f23a
-
mentioned in commit 8e03fef7
-
mentioned in commit 88d477bb
-
mentioned in commit 373a2dac
-
mentioned in commit fc9864d2
-
mentioned in commit c02a5977
-
mentioned in commit d539bcf6
-
mentioned in commit fec5b923
-
mentioned in commit 40aebc66
-
mentioned in commit 51cfc84f
-
mentioned in commit b768c5c9
-
mentioned in commit 47d63564
-
mentioned in commit afea97d7
-
mentioned in commit e45d35f9
-
mentioned in commit 90065525
-
mentioned in commit bae56853
-
mentioned in commit 352a44b8
-
mentioned in commit fe386410
-
mentioned in commit e5daff22
-
mentioned in commit 3a74ee4a
-
mentioned in commit 848284d4
-
mentioned in commit 45b2a34e
-
mentioned in commit a64d6ea0
-
mentioned in commit 827f8fcb
-
mentioned in commit 8f8b46e3
-
mentioned in commit abd190d1
-
mentioned in commit 4363ed07
-
mentioned in commit d830251c
-
mentioned in commit bd404b2d
-
mentioned in commit 01769eca
-
mentioned in commit 673cade1
-
mentioned in commit 8b30cf80
-
mentioned in commit 3b01abd1
-
mentioned in commit 0ace25ec
-
mentioned in commit 1758af4f
-
mentioned in commit cc8d776d
-
mentioned in commit 7aba3181
-
mentioned in commit 7a05394c
-
mentioned in commit 616d7cda
-
mentioned in commit c8b3ed2f
-
mentioned in commit c0678dc3
-
mentioned in commit 2ffd0df1
-
mentioned in commit 11cb8ee3
-
mentioned in commit 2a86712f
-
mentioned in commit fa93148d
-
mentioned in commit 5e7920e5
-
mentioned in commit 321815ce
-
mentioned in commit 66f441f6
-
mentioned in commit ee585e30
-
mentioned in commit bafa0f2a
-
mentioned in commit 042ec471
-
mentioned in commit cbae7ebc
-
mentioned in commit 646034e6
-
mentioned in commit de325050
-
mentioned in commit 8c2e4e41
-
mentioned in commit 009ee9e2
-
mentioned in commit 3a886adb
-
mentioned in commit 27d60b91
-
mentioned in commit 9317a8f4
-
mentioned in commit 5b9835e5
-
mentioned in commit b0b6bfe4
-
mentioned in commit 393d9945
-
mentioned in commit 0da7ee3f