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
Also in
linux-alpha, linux-api, linux-arch, linux-arm-kernel, linux-fsdevel, linux-kselftest, linux-mips, linux-s390, linux-sh, lkml, sparclinux
Reply to
Aleksa Sarai, 2019-09-04
On Wed, Sep 4, 2019 at 1:20 PM Aleksa Sarai [off-list 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
Thread (63 messages) 63 messages, 12 authors, last reply 2019-09-18
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help