linux/tools/testing/selftests/seccomp
Terry Tritton 295f1b128c selftests/seccomp: fix negative_ENOSYS tracer tests on arm32
[ Upstream commit 73989c9988 ]

TRACE_syscall.ptrace.negative_ENOSYS and TRACE_syscall.seccomp.negative_ENOSYS
on arm32 are being reported as failures instead of skipping.

The teardown_trace_fixture function sets the test to KSFT_FAIL in case of a
non 0 return value from the tracer process.
Due to _metadata now being shared between the forked processes the tracer is
returning the KSFT_SKIP value set by the tracee which is non 0.

Remove the setting of the _metadata.exit_code in teardown_trace_fixture.

Fixes: 24cf65a622 ("selftests/harness: Share _metadata between forked processes")
Signed-off-by: Terry Tritton <terry.tritton@linaro.org>
Link: https://lore.kernel.org/r/20250509115622.64775-1-terry.tritton@linaro.org
Signed-off-by: Kees Cook <kees@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2025-06-19 15:31:39 +02:00
..
.gitignore .gitignore: add SPDX License Identifier 2020-03-25 11:50:48 +01:00
config selftests/seccomp: Update kernel config 2020-12-02 11:20:54 -08:00
Makefile selftests: seccomp: Fix incorrect kernel headers search path 2023-02-13 09:09:45 -07:00
seccomp_benchmark.c selftests: seccomp: fix format-zero-length warnings 2024-06-11 09:25:43 -06:00
seccomp_bpf.c selftests/seccomp: fix negative_ENOSYS tracer tests on arm32 2025-06-19 15:31:39 +02:00
settings selftests/seccomp: Try to fit runtime of benchmark into timeout 2024-03-29 13:57:14 -06:00