Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit e30e2652 authored by Aleksa Sarai's avatar Aleksa Sarai Committed by Eva Huang
Browse files

BACKPORT: perf_event_open: switch to copy_struct_from_user()



(cherry picked from commit c2ba8f41ad366dc12840dd87d8f1565185845126)

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.

Bug: 261681571
Change-Id: Ib924bab8f4495e81b001136d3cf5db55875c85df
Signed-off-by: default avatarAleksa Sarai <cyphar@cyphar.com>
Reviewed-by: default avatarKees Cook <keescook@chromium.org>
Reviewed-by: default avatarChristian 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: default avatarChristian Brauner <christian.brauner@ubuntu.com>
Signed-off-by: default avatarJohnnLee <johnnlee@google.com>
parent 22cfbf1a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment