linux/io_uring
Keith Busch d6fef34ee4 io_uring: fix off-by one bvec index
If the offset equals the bv_len of the first registered bvec, then the
request does not include any of that first bvec. Skip it so that drivers
don't have to deal with a zero length bvec, which was observed to break
NVMe's PRP list creation.

Cc: stable@vger.kernel.org
Fixes: bd11b3a391e3 ("io_uring: don't use iov_iter_advance() for fixed buffers")
Signed-off-by: Keith Busch <kbusch@kernel.org>
Link: https://lore.kernel.org/r/20231120221831.2646460-1-kbusch@meta.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2023-11-20 15:21:38 -07:00
..
2023-11-01 11:25:08 -10:00
2023-11-01 11:09:19 -10:00
2022-12-07 06:47:13 -07:00
2022-07-24 18:39:11 -06:00
2022-07-24 18:39:14 -06:00
2023-11-20 15:21:38 -07:00
2023-08-10 10:24:25 -06:00
2023-08-11 10:42:57 -06:00