Files
linux/fs
Jens Axboe 5e559561a8 io_uring: ensure registered buffer import returns the IO length
A test case was reported where two linked reads with registered buffers
failed the second link always. This is because we set the expected value
of a request in req->result, and if we don't get this result, then we
fail the dependent links. For some reason the registered buffer import
returned -ERROR/0, while the normal import returns -ERROR/length. This
broke linked commands with registered buffers.

Fix this by making io_import_fixed() correctly return the mapped length.

Cc: stable@vger.kernel.org # v5.3
Reported-by: 李通洲 <carter.li@eoitek.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2019-11-13 16:15:14 -07:00
..
2019-09-29 19:25:39 -07:00
2019-07-03 17:52:09 -04:00
2019-10-19 06:32:32 -04:00
2019-08-30 08:11:25 -07:00
2019-04-08 18:21:02 -05:00
2019-08-07 21:51:47 -04:00
…
2019-10-14 15:04:01 -07:00
…
2019-08-01 20:51:23 +02:00
2019-09-25 17:51:41 -07:00