Pavel Begunkov
99bc4c3853
io_uring: fix iovec leaks
...
Allocated iovec is freed only in io_{read,write,send,recv)(), and just
leaves it if an error occured. There are plenty of such cases:
- cancellation of non-head requests
- fail grabbing files in __io_queue_sqe()
- set REQ_F_NOWAIT and returning in __io_queue_sqe()
Add REQ_F_NEED_CLEANUP, which will force such requests with custom
allocated resourses go through cleanup handlers on put.
Cc: stable@vger.kernel.org # 5.5
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2020-02-08 13:06:58 -07:00
..
2019-09-27 15:10:34 -07:00
2020-01-25 11:31:59 -05:00
2019-11-18 14:26:43 +01:00
2020-01-26 08:54:04 -08:00
2019-12-05 17:11:48 -08:00
2019-08-30 07:27:17 -07:00
2019-08-30 07:27:17 -07:00
2020-02-03 17:03:42 +00:00
2019-05-24 17:27:11 +02:00
2020-02-06 12:21:01 +00:00
2020-02-05 05:02:42 +00:00
2019-09-19 09:42:37 -07:00
2019-12-08 19:10:50 -05:00
2019-11-23 21:44:49 -05:00
2020-01-22 14:50:03 -08:00
2020-02-05 05:09:46 +00:00
2019-09-03 09:30:56 -04:00
2019-12-18 18:07:31 +01:00
2019-12-11 16:36:56 +08:00
2019-07-19 10:42:02 -07:00
2019-08-30 07:27:17 -07:00
2020-01-21 16:46:23 +08:00
2019-11-11 09:21:59 -05:00
2020-01-06 10:09:35 +01:00
2020-02-04 03:05:27 +00:00
2020-02-05 05:02:42 +00:00
2020-02-05 05:02:42 +00:00
2019-08-30 07:27:17 -07:00
2020-02-04 03:05:26 +00:00
2020-01-16 11:09:36 +01:00
2020-01-28 15:04:53 +01:00
2019-12-18 18:07:32 +01:00
2019-12-18 18:07:32 +01:00
2019-12-18 18:07:32 +01:00
2019-10-23 17:23:46 +02:00
2020-01-03 10:39:08 -08:00
2020-01-06 08:58:23 -08:00
2019-09-19 09:42:37 -07:00
2020-02-04 03:05:26 +00:00
2019-11-29 11:29:58 +01:00
2020-02-05 05:28:20 +00:00
2020-02-05 05:02:42 +00:00
2020-02-04 03:05:26 +00:00
2019-08-30 07:27:17 -07:00
2020-01-29 14:55:47 -08:00
2019-05-21 10:50:46 +02:00
2020-02-04 03:05:26 +00:00
2019-10-23 17:23:46 +02:00
2019-05-21 10:50:46 +02:00
2019-12-18 00:03:01 -05:00
2019-12-08 19:10:50 -05:00
2020-02-04 03:05:27 +00:00
2019-08-30 08:11:25 -07:00
2019-07-19 10:42:02 -07:00
2019-12-04 08:52:55 -05:00
2020-02-03 11:41:53 +01:00
2020-02-06 07:12:11 +00:00
2020-01-08 17:05:45 -08:00
2019-08-30 07:27:17 -07:00
2019-08-30 07:27:17 -07:00
2020-01-30 15:37:41 -08:00
2019-09-12 21:05:34 -04:00
2020-01-31 12:16:36 -08:00
2019-09-19 10:06:57 -07:00
2019-09-19 10:06:57 -07:00
2020-02-04 03:05:27 +00:00
2019-08-30 07:27:18 -07:00
2019-12-10 22:29:58 -05:00
2020-02-05 05:02:42 +00:00
2020-01-20 13:59:41 +01:00
2019-09-19 09:42:37 -07:00
2019-09-17 11:48:24 -04:00
2020-01-14 13:28:28 -08:00
2020-02-06 07:58:38 +00:00
2020-02-03 17:27:47 -07:00
2019-07-19 10:42:02 -07:00
2019-12-08 19:10:50 -05:00
2019-05-21 10:50:45 +02:00
2019-11-15 14:38:29 +01:00
2020-01-31 10:30:41 -08:00
2019-05-21 10:50:45 +02:00
2019-07-16 19:23:22 -07:00
2019-07-19 10:42:02 -07:00
2019-05-21 10:50:45 +02:00
2019-12-02 18:49:30 -07:00
2020-01-24 20:40:09 +01:00
2020-01-06 20:10:26 +01:00
2019-11-15 14:38:29 +01:00
2019-06-19 17:09:55 +02:00
2019-08-03 07:02:01 -07:00
2019-08-30 19:31:09 -04:00
2019-11-30 10:44:49 -08:00
2019-12-08 11:08:28 -08:00
2019-05-21 10:50:45 +02:00
2020-01-04 13:55:09 -08:00
2019-12-18 00:03:01 -05:00
2020-02-03 17:27:38 -07:00
2020-01-29 15:45:47 -07:00
2020-01-31 12:16:36 -08:00
2019-12-08 11:08:28 -08:00
2019-08-07 21:51:47 -04:00
2019-08-19 11:00:39 -04:00
2020-01-29 19:38:34 -08:00
2019-09-06 21:28:49 +02:00
2019-09-12 21:06:14 -04:00
2019-07-16 22:52:37 -04:00
2019-05-21 10:50:45 +02:00
2020-01-31 10:30:36 -08:00
2019-07-19 10:42:02 -07:00
2020-02-05 05:02:42 +00:00
2020-01-29 18:53:37 -08:00
2020-02-08 13:06:58 -07:00
2020-01-29 13:46:44 -07:00
2020-01-29 13:46:44 -07:00
2020-01-03 09:42:52 +01:00
2019-10-29 12:43:00 -06:00
2019-06-24 09:16:47 +10:00
2019-12-10 22:29:58 -05:00
2019-12-29 09:00:58 -05:00
2020-01-03 09:42:52 +01:00
2019-05-21 10:50:45 +02:00
2019-07-16 22:52:37 -04:00
2020-01-09 08:16:12 -07:00
2020-02-01 10:36:49 -08:00
2020-01-04 13:55:09 -08:00
2019-05-30 11:26:32 -07:00
2020-01-29 11:20:24 -08:00
2020-01-20 17:01:53 -07:00
2019-12-22 09:47:47 -08:00
2019-06-17 17:36:09 -04:00
2019-05-30 11:29:53 -07:00
2020-01-04 13:55:09 -08:00
2019-09-06 21:28:49 +02:00
2020-02-04 11:45:21 +00:00
2020-01-23 10:15:28 -08:00
2019-11-15 14:38:29 +01:00
2019-08-13 16:06:52 -07:00
2019-04-08 18:21:02 -05:00
2019-12-07 13:21:01 -08:00
2019-12-08 14:37:36 +01:00
2020-01-20 17:03:54 -07:00
2019-10-03 14:21:35 -07:00
2019-12-18 00:03:01 -05:00
2019-05-14 09:47:50 -07:00
2020-01-14 12:20:53 +01:00
2019-12-01 20:36:41 -08:00
2019-12-08 19:10:50 -05:00
2019-05-21 10:50:45 +02:00