# Re: \[PATCH v12 01/12\] lib: introduce copy\_struct\_{to, from}\_user helpers

- From: Linus Torvalds \<torvalds@linux-foundation.org\>
- Date: 2019-09-04 20:54:23 
- List: linux-arm-kernel
- Page: https://ratatoskr.run/linux-arm-kernel/2019/09/162942
- Thread: https://ratatoskr.run/linux-alpha/2019/09/162929/t.md

```text
On Wed, Sep 4, 2019 at 1:20 PM Aleksa Sarai [ref] wrote:
>
> A common pattern for syscall extensions is increasing the size of a
> struct passed from userspace, such that the zero-value of the new fields
> result in the old kernel behaviour (allowing for a mix of userspace and
> kernel vintages to operate on one another in most cases).

Ack, this makes the whole series (and a few unrelated system calls) cleaner.

           Linus

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
```
