diff options
author | Jens Axboe <axboe@kernel.dk> | 2024-03-08 01:48:03 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2024-03-08 01:48:03 +0100 |
commit | deaef31bc1ec7966698a427da8c161930830e1cf (patch) | |
tree | 9b5c0c57d8dac2dc7bc87afe26cf915ebba04971 /io_uring/truncate.c | |
parent | io_uring/net: clear REQ_F_BL_EMPTY in the multishot retry handler (diff) | |
download | linux-deaef31bc1ec7966698a427da8c161930830e1cf.tar.xz linux-deaef31bc1ec7966698a427da8c161930830e1cf.zip |
io_uring/net: correctly handle multishot recvmsg retry setup
If we loop for multishot receive on the initial attempt, and then abort
later on to wait for more, we miss a case where we should be copying the
io_async_msghdr from the stack to stable storage. This leads to the next
retry potentially failing, if the application had the msghdr on the
stack.
Cc: stable@vger.kernel.org
Fixes: 9bb66906f23e ("io_uring: support multishot in recvmsg")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_uring/truncate.c')
0 files changed, 0 insertions, 0 deletions