]> git.baikalelectronics.ru Git - kernel.git/commit
entry: Use different define for selector variable in SUD
authorGabriel Krisman Bertazi <krisman@collabora.com>
Fri, 5 Feb 2021 18:43:21 +0000 (13:43 -0500)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 5 Feb 2021 23:21:42 +0000 (00:21 +0100)
commitceff6c695d461118f8bef8f749146c39ed1ddc43
tree5d235696ba455e2ad85d78592489ad818efdf851
parentc4f561a9919e6edbadf8c86390350e867aab2176
entry: Use different define for selector variable in SUD

Michael Kerrisk suggested that, from an API perspective, it is a bad
idea to share the PR_SYS_DISPATCH_ defines between the prctl operation
and the selector variable.

Therefore, define two new constants to be used by SUD's selector variable
and update the corresponding documentation and test cases.

While this changes the API syscall user dispatch has never been part of a
Linux release, it will show up for the first time in 5.11.

Suggested-by: Michael Kerrisk (man-pages) <mtk.manpages@gmail.com>
Signed-off-by: Gabriel Krisman Bertazi <krisman@collabora.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20210205184321.2062251-1-krisman@collabora.com
Documentation/admin-guide/syscall-user-dispatch.rst
include/uapi/linux/prctl.h
kernel/entry/syscall_user_dispatch.c
tools/testing/selftests/syscall_user_dispatch/sud_benchmark.c
tools/testing/selftests/syscall_user_dispatch/sud_test.c