selftests: Add kselftest for syscall user dispatch
authorGabriel Krisman Bertazi <krisman@collabora.com>
Fri, 27 Nov 2020 19:32:36 +0000 (14:32 -0500)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 2 Dec 2020 14:07:56 +0000 (15:07 +0100)
commit179ef035992e89646e17138b18b130bb874b86bb
treea37dab221792cdf193fce9044badd19d13da9847
parent11894468e39def270199f845b76df6c36d4ed133
selftests: Add kselftest for syscall user dispatch

Implement functionality tests for syscall user dispatch.  In order to
make the test portable, refrain from open coding syscall dispatchers and
calculating glibc memory ranges.

Signed-off-by: Gabriel Krisman Bertazi <krisman@collabora.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Andy Lutomirski <luto@kernel.org>
Acked-by: Kees Cook <keescook@chromium.org>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/20201127193238.821364-6-krisman@collabora.com
tools/testing/selftests/Makefile
tools/testing/selftests/syscall_user_dispatch/.gitignore [new file with mode: 0644]
tools/testing/selftests/syscall_user_dispatch/Makefile [new file with mode: 0644]
tools/testing/selftests/syscall_user_dispatch/config [new file with mode: 0644]
tools/testing/selftests/syscall_user_dispatch/sud_test.c [new file with mode: 0644]