Jens Axboe
e0ee967630
io_uring/kbuf: sanitize peek buffer setup
...
Harden the buffer peeking a bit, by adding a sanity check for it having
a valid size. Outside of that, arg->max_len is a size_t, though it's
only ever set to a 32-bit value (as it's governed by MAX_RW_COUNT).
Bump our needed check to a size_t so we know it fits. Finally, cap the
calculated needed iov value to the PEEK_MAX_IMPORT, which is the
maximum number of segments that should be peeked.
Fixes: 35c8711c8fc4 ("io_uring/kbuf: add helpers for getting/peeking multiple buffers")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2024-08-21 07:16:38 -06:00
..
2024-06-16 14:54:55 -06:00
2022-07-24 18:39:11 -06:00
2024-04-15 08:10:25 -06:00
2024-04-15 08:10:26 -06:00
2024-06-13 19:25:28 -06:00
2023-05-26 20:22:41 -06:00
2022-07-24 18:39:11 -06:00
2024-06-16 14:54:55 -06:00
2024-06-16 14:54:55 -06:00
2024-04-15 08:10:26 -06:00
2022-07-24 18:39:12 -06:00
2024-05-08 08:27:45 -06:00
2024-02-08 13:27:03 -07:00
2023-11-20 09:01:42 -07:00
2022-07-24 18:39:11 -06:00
2024-04-15 08:10:25 -06:00
2024-04-15 08:10:25 -06:00
2024-07-26 08:31:59 -06:00
2024-07-26 08:31:59 -06:00
2024-07-11 01:51:44 -06:00
2024-06-16 14:54:55 -06:00
2024-08-21 07:16:38 -06:00
2024-04-22 11:26:01 -06:00
2024-06-16 14:54:55 -06:00
2024-05-29 09:53:14 -06:00
2024-04-15 08:10:26 -06:00
2024-07-25 08:41:35 -06:00
2024-06-24 08:39:55 -06:00
2024-08-12 12:11:42 -06:00
2024-08-12 12:09:03 -06:00
2024-08-07 15:20:52 -06:00
2024-06-19 07:57:21 -06:00
2024-05-10 06:09:45 -06:00
2022-07-24 18:39:11 -06:00
2024-04-30 13:06:27 -06:00
2024-04-22 19:31:18 -06:00
2024-06-19 08:58:00 -06:00
2024-06-19 08:58:00 -06:00
2024-01-23 15:25:14 -07:00
2023-12-12 07:42:57 -07:00
2024-07-30 06:18:58 -06:00
2024-04-15 08:10:25 -06:00
2024-04-15 08:10:26 -06:00
2024-06-19 08:58:00 -06:00
2023-12-19 08:54:20 -07:00
2024-07-15 13:49:10 -07:00
2024-04-15 08:10:26 -06:00
2024-06-20 15:19:17 -06:00
2024-04-15 08:10:25 -06:00
2023-03-09 10:10:58 -07:00
2023-12-12 16:19:59 +01:00
2022-07-24 18:39:11 -06:00
2024-08-13 06:10:59 -06:00
2024-03-01 06:28:19 -07:00
2024-06-05 17:03:57 +02:00
2022-07-24 18:39:11 -06:00
2023-01-29 15:18:26 -07:00
2022-07-24 18:39:11 -06:00
2023-05-16 08:06:00 -06:00
2022-10-07 12:25:30 -06:00
2024-07-24 08:01:49 -06:00
2022-09-21 13:15:01 -06:00
2024-02-09 09:04:39 -07:00
2024-02-09 09:04:39 -07:00
2024-07-24 08:01:49 -06:00
2024-04-15 08:10:25 -06:00
2024-04-15 08:10:24 -06:00
2023-09-21 12:04:45 -06:00
2024-06-05 17:03:57 +02:00
2022-07-24 18:39:11 -06:00