lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <e0054c50-3ea2-48e4-b913-8cd861a34f72@veygax.dev>
Date: Mon, 22 Dec 2025 01:02:47 +0000
From: veygax <veyga@...gax.dev>
To: Christoph Hellwig <hch@...radead.org>, Keith Busch <kbusch@...nel.org>
Cc: Ming Lei <ming.lei@...hat.com>, Jens Axboe <axboe@...nel.dk>, "io-uring@...r.kernel.org" <io-uring@...r.kernel.org>, Caleb Sander Mateos <csander@...estorage.com>, "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] io_uring/rsrc: fix slab-out-of-bounds in io_buffer_register_bvec

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@veygax.dev/

-- 
- Evan Lambert / veygax



Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ