aboutsummaryrefslogtreecommitdiffstats
path: root/lib/xarray.c
diff options
context:
space:
mode:
authorPavel Begunkov <[email protected]>2021-04-01 11:18:48 +0000
committerJens Axboe <[email protected]>2021-04-01 15:31:21 +0000
commit07204f21577a1d882f0259590c3553fe6a476381 (patch)
treea581bb61e2722e70687801c9c9ec7c907ffaa24c /lib/xarray.c
parentio_uring/io-wq: protect against sprintf overflow (diff)
downloadkernel-07204f21577a1d882f0259590c3553fe6a476381.tar.gz
kernel-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 <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'lib/xarray.c')
0 files changed, 0 insertions, 0 deletions