summaryrefslogtreecommitdiff
path: root/.mailmap
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2021-12-22 20:26:56 -0700
committerJens Axboe <axboe@kernel.dk>2021-12-22 20:34:32 -0700
commit7b9762a5e8837b92a027d58d396a9d27f6440c36 (patch)
tree558a1ea956f6cfe20044a9f63364f74529dbc122 /.mailmap
parentd800c65c2d4eccebb27ffb7808e842d5b533823c (diff)
io_uring: zero iocb->ki_pos for stream file typesio_uring-5.16-2021-12-23
io_uring supports using offset == -1 for using the current file position, and we read that in as part of read/write command setup. For the non-iter read/write types we pass in NULL for the position pointer, but for the iter types we should not be passing any anything but 0 for the position for a stream. Clear kiocb->ki_pos if the file is a stream, don't leave it as -1. If we do, then the request will error with -ESPIPE. Fixes: ba04291eb66e ("io_uring: allow use of offset == -1 to mean file position") Link: https://github.com/axboe/liburing/discussions/501 Reported-by: Samuel Williams <samuel.williams@oriontransfer.co.nz> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to '.mailmap')
0 files changed, 0 insertions, 0 deletions