selftests/rseq: Add rseq syscall errors test
authorMichael Jeanson <mjeanson@efficios.com>
Tue, 21 Jan 2025 21:33:52 +0000 (16:33 -0500)
committerIngo Molnar <mingo@kernel.org>
Sat, 22 Feb 2025 13:13:45 +0000 (14:13 +0100)
commit3c27b40830cad0917c92fecf0c9cb1ec41de17cc
tree2318dd2e8031cfec855d0530b73dadc3a37a6f04
parent1a5d3492f8e14719184945893c610e0802c05533
selftests/rseq: Add rseq syscall errors test

This test adds coverage of expected errors during rseq registration and
unregistration, it disables glibc integration and will thus always
exercise the rseq syscall explictly.

Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Reviewed-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Cc: Shuah Khan <skhan@linuxfoundation.org>
Link: https://lore.kernel.org/r/20250121213402.1754762-1-mjeanson@efficios.com
tools/testing/selftests/rseq/.gitignore
tools/testing/selftests/rseq/Makefile
tools/testing/selftests/rseq/rseq.c
tools/testing/selftests/rseq/rseq.h
tools/testing/selftests/rseq/run_syscall_errors_test.sh [new file with mode: 0755]
tools/testing/selftests/rseq/syscall_errors_test.c [new file with mode: 0644]