# Re: \[PATCH v9 1/9\] iov\_iter: add copy\_struct\_from\_iter()

- From: Linus Torvalds \<torvalds@linux-foundation.org\>
- Date: 2021-04-01 17:47:05 
- List: linux-api
- Page: https://ratatoskr.run/linux-api/2021/04/203091
- Thread: https://ratatoskr.run/linux-fsdevel/2021/04/203041/t.md

```text
On Wed, Mar 31, 2021 at 11:51 PM Omar Sandoval [ref] wrote:
>
> + *
> + * The recommended usage is something like the following:
> + *
> + *     if (usize > PAGE_SIZE)
> + *       return -E2BIG;

Maybe this should be more than a recommendation, and just be inside
copy_struct_from_iter(), because otherwise the "check_zeroed_user()"
call might be quite the timesink for somebody who does something
stupid.

But otherwise this new version (still) looks fine to me.

            Linus
```
