Files
linux/fs
Pavel Begunkov 3b2b78a8eb io_uring: extend provided buf return to fails
It's never a good idea to put provided buffers without notifying the
userspace, it'll lead to userspace leaks, so add io_put_kbuf() in
io_req_complete_failed(). The fail helper is called by all sorts of
requests, but it's still safe to do as io_put_kbuf() will return 0 in
for all requests that don't support and so don't expect provided buffers.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/a4880106fcf199d5810707fe2d17126fcdf18bc4.1647481208.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2022-03-16 20:24:28 -06:00
..
2022-01-30 22:13:37 +09:00
2022-01-22 08:33:37 +02:00
2021-11-09 10:02:51 -08:00
2021-10-25 19:11:50 -07:00
2021-12-03 18:44:06 +01:00
2022-02-04 00:12:22 -06:00
2022-01-22 08:33:38 +02:00
2021-12-17 16:56:35 +09:00
2022-01-22 08:33:34 +02:00
2021-11-17 09:26:09 +01:00
2022-01-22 08:33:35 +02:00
2022-02-04 00:12:22 -06:00
2022-01-22 08:33:38 +02:00
2022-01-22 08:33:36 +02:00
2019-12-08 14:37:36 +01:00
2021-08-10 17:57:22 +02:00