Files
linux/io_uring
Jens Axboe ca7ed49a12 io_uring/net: only retry recv bundle for a full transfer
commit 3a08988123 upstream.

If a shorter than assumed transfer was seen, a partial buffer will have
been filled. For that case it isn't sane to attempt to fill more into
the bundle before posting a completion, as that will cause a gap in
the received data.

Check if the iterator has hit zero and only allow to continue a bundle
operation if that is the case.

Also ensure that for putting finished buffers, only the current transfer
is accounted. Otherwise too many buffers may be put for a short transfer.

Link: https://github.com/axboe/liburing/issues/1409
Cc: stable@vger.kernel.org
Fixes: 7c71a0af81 ("io_uring/net: improve recv bundles")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-05-29 11:14:02 +02:00
..
2025-01-28 15:10:40 -07:00
2025-01-28 15:10:40 -07:00
2025-01-28 15:10:40 -07:00
2025-02-19 08:06:29 -07:00
2024-11-13 11:44:30 -05:00
2024-02-09 09:04:39 -07:00
2024-02-09 09:04:39 -07:00