Re: [PATCH 02/10] block: copy bip_max_vcnt vecs instead of bip_vcnt during clone

Christoph Hellwig
2024-04-27T07:03:35Z

On Fri, Apr 26, 2024 at 12:09:35AM +0530, Kanchan Joshi wrote:
> From: Anuj Gupta <anuj20.g@samsung.com>
>
> If bio_integrity_copy_user is used to process the meta buffer, bip_max_vcnt
> is one greater than bip_vcnt. In this case bip_max_vcnt vecs needs to be
> copied to cloned bip.

Can you explain this a bit more? The clone should only allocate what
is actually used, so this leaves be a bit confused.