Re: [PATCH] io_uring/kbuf: cap buffer selection length at MAX_RW_COUNT
Nitesh Shetty <[email protected]> Mon, 27 Jul 2026 19:34:43 +0530
| Newsgroups | org.kernel.vger.io-uring |
|---|---|
| Message-ID | <[email protected]> |
On 26/07/26 04:28PM, Jens Axboe wrote: >io_ring_buffers_peek() builds an iovec array from provided buffers, and >that in turn can be handed off to a lower level provider. Be prudent and >cap the total size to MAX_RW_COUNT, which is the Linux default for how >much IO do to in a single call. > >No bugs here, but it's a good preventative measure to avoid truncation >issues. > >Signed-off-by: Jens Axboe <[email protected]> > Reviewed-by: Nitesh Shetty <[email protected]>