Re: [PATCH next 0/3] iov: Optimise user copies

From: Linus Torvalds
Date: Fri Mar 21 2025 - 19:36:19 EST


On Fri, 21 Mar 2025 at 15:46, David Laight <david.laight.linux@xxxxxxxxx> wrote:
>
> The speculation barrier in access_ok() is expensive.
>
> The first patch removes the initial checks when reading the iovec[].
> The checks are repeated before the actual copy.
>
> The second patch uses 'user address masking' if supported.
>
> The third removes a lot of code for single entry iovec[].

Ack, except I'd really like to see numbers for things that claim to
remove expensive stuff.

But yeah, the patches look sane.

Linus