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)
commit36a6c843fd0d8e02506681577e96dabd203dd8e8
tree5d235696ba455e2ad85d78592489ad818efdf851
parent6342adcaa683c2b705c24ed201dc11b35854c88d
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