Pavel Begunkov
5f798beaf3
io_uring: fix double prep iovec leak
...
Requests may be prepared multiple times with ->io allocated (i.e. async
prepared). Preparation functions don't handle it and forget about
previously allocated resources. This may happen in case of:
- spurious defer_check
- non-head (i.e. async prepared) request executed in sync (via nxt).
Make the handlers check, whether they already allocated resources, which
is true IFF REQ_F_NEED_CLEANUP is set.
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:07:00 -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
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
2020-02-04 03:05:26 +00:00
2019-10-23 17:23: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-11-15 14:38:29 +01:00
2020-01-31 10:30:41 -08:00
2019-07-16 19:23:22 -07:00
2019-07-19 10:42:02 -07: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-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
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
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:07:00 -07:00
2020-02-08 13:06:58 -07:00
2020-02-08 13:06:58 -07:00
2020-01-03 09:42:52 +01:00
2019-10-29 12:43:00 -06: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-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
2020-01-29 11:20:24 -08:00
2020-01-20 17:01:53 -07:00
2019-12-22 09:47:47 -08: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-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
2020-01-14 12:20:53 +01:00
2019-12-01 20:36:41 -08:00
2019-12-08 19:10:50 -05:00