Re: [PATCH] io_uring/rsrc: fix slab-out-of-bounds in io_buffer_register_bvec
From: veygax
Date: Sun Dec 21 2025 - 20:02:54 EST
On 19/12/2025 05:33, Christoph Hellwig wrote:
> The above is simply an open coded version of doing repeated
> __bio_add_page calls. Which would be rather suboptimal, but perfectly
> valid.
I can confirm iterating over num_bvecs in __bio_add_page produces the
same KASAN output.
for (i = 0; i < num_bvecs; i++)
__bio_add_page(bio, page + i, PAGE_SIZE, 0);
Also (to all CC's), please disregard this version of the patch. V2 has
been posted with typos fixed and a more performance efficient approach.
https://lore.kernel.org/io-uring/20251217214753.218765-3-veyga@xxxxxxxxxx/
--
- Evan Lambert / veygax