diff options
author | Aleksa Sarai <[email protected]> | 2019-10-01 11:10:54 +1000 |
---|---|---|
committer | Christian Brauner <[email protected]> | 2019-10-01 15:45:17 +0200 |
commit | dff3a85feceade213daf153556fd32a3b0a73c63 (patch) | |
tree | e532439d4ce82a284eeffc133e90ff18a6fc895f /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | f14c234b4bc5184fd40d9a47830e5b32c3b36d49 (diff) |
sched_setattr: switch to copy_struct_from_user()
Switch sched_setattr() syscall from it's own copying struct sched_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. Ideally we could also
unify sched_getattr(2)-style syscalls as well, but unfortunately the
correct semantics for such syscalls are much less clear (see [1] for
more detail). In future we could come up with a more sane idea for how
the syscall interface should look.
[1]: commit 1251201c0d34 ("sched/core: Fix uclamp ABI bug, clean up and
robustify sched_read_attr() ABI logic and code")
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 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions