diff options
| author | Aleksa Sarai <[email protected]> | 2019-10-01 01:10:53 +0000 |
|---|---|---|
| committer | Christian Brauner <[email protected]> | 2019-10-01 13:45:10 +0000 |
| commit | f14c234b4bc5184fd40d9a47830e5b32c3b36d49 (patch) | |
| tree | 03dd3b1cb5035fa6cec8389cf10ea30ddd1ec3e3 /net/unix/af_unix.c | |
| parent | lib: introduce copy_struct_from_user() helper (diff) | |
| download | kernel-f14c234b4bc5184fd40d9a47830e5b32c3b36d49.tar.gz kernel-f14c234b4bc5184fd40d9a47830e5b32c3b36d49.zip | |
clone3: switch to copy_struct_from_user()
Switch clone3() syscall from it's own copying struct clone_args from
userspace to the new dedicated copy_struct_from_user() helper.
The change is very straightforward, and helps unify the syscall
interface for struct-from-userspace syscalls. Additionally, explicitly
define CLONE_ARGS_SIZE_VER0 to match the other users of the
struct-extension pattern.
Signed-off-by: Aleksa Sarai <[email protected]>
Reviewed-by: Kees Cook <[email protected]>
Reviewed-by: Christian Brauner <[email protected]>
[[email protected]: improve commit message]
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Christian Brauner <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
