[PATCH v12 01/12] lib: introduce copy_struct_{to, from}_user helpers

Linus Torvalds torvalds at linux-foundation.org
Wed Sep 4 20:48:43 UTC 2019


On Wed, Sep 4, 2019 at 1:20 PM Aleksa Sarai <cyphar at cyphar.com> 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


More information about the Containers mailing list