]> 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)
commite19029e5aba4dce9a37d62c73e4d8e23b0332308
tree5d235696ba455e2ad85d78592489ad818efdf851
parent6cf417dd382b19e371537d82bed586db0a41ee43
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