diff options
author | Aleksa Sarai <cyphar@cyphar.com> | 2019-10-01 11:10:55 +1000 |
---|---|---|
committer | Christian Brauner <christian.brauner@ubuntu.com> | 2019-10-01 15:45:22 +0200 |
commit | c2ba8f41ad366dc12840dd87d8f1565185845126 (patch) | |
tree | 7e6407dae5d248995ecbc56b808f49d8b687fd70 /lib/iov_iter.c | |
parent | dff3a85feceade213daf153556fd32a3b0a73c63 (diff) | |
download | lwn-c2ba8f41ad366dc12840dd87d8f1565185845126.tar.gz lwn-c2ba8f41ad366dc12840dd87d8f1565185845126.zip |
perf_event_open: switch to copy_struct_from_user()
Switch perf_event_open() syscall from it's own copying
struct perf_event_attr 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.
Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Christian Brauner <christian.brauner@ubuntu.com>
[christian.brauner@ubuntu.com: improve commit message]
Link: https://lore.kernel.org/r/20191001011055.19283-5-cyphar@cyphar.com
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Diffstat (limited to 'lib/iov_iter.c')
0 files changed, 0 insertions, 0 deletions