diff options
author | 2021-04-01 12:18:48 +0100 | |
---|---|---|
committer | 2021-04-01 09:31:21 -0600 | |
commit | 07204f21577a1d882f0259590c3553fe6a476381 (patch) | |
tree | a581bb61e2722e70687801c9c9ec7c907ffaa24c /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | io_uring/io-wq: protect against sprintf overflow (diff) | |
download | wireguard-linux-07204f21577a1d882f0259590c3553fe6a476381.tar.xz wireguard-linux-07204f21577a1d882f0259590c3553fe6a476381.zip |
io_uring: fix EIOCBQUEUED iter revert
iov_iter_revert() is done in completion handlers that happensf before
read/write returns -EIOCBQUEUED, no need to repeat reverting afterwards.
Moreover, even though it may appear being just a no-op, it's actually
races with 1) user forging a new iovec of a different size 2) reissue,
that is done via io-wq continues completely asynchronously.
Fixes: 3e6a0d3c7571c ("io_uring: fix -EAGAIN retry with IOPOLL")
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions