[PATCH] selftests/futex: Add futex_numa to .gitignore

2025-06-09 Thread Terry Tritton
futex_numa was never added to the .gitignore file. Add it. Signed-off-by: Terry Tritton --- tools/testing/selftests/futex/functional/.gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/selftests/futex/functional/.gitignore b/tools/testing/selftests/futex/functional

[PATCH] selftests/futex: Convert 32bit timespec struct to 64bit version for 32bit compatibility mode

2025-06-09 Thread Terry Tritton
Futex_waitv can not accept old_timespec32 struct, so userspace should convert it from 32bit to 64bit before syscall in 32bit compatible mode. This fix is based off [1] Link: https://lore.kernel.org/all/20231203235117.29677-1-we...@suse.com/ [1] Signed-off-by: Terry Tritton Signed-off-by: Wei

Re: [PATCH] selftests/timers: Fix integer overlow errors on 32 bit systems

2025-06-04 Thread Terry Tritton
> So this seems to be undoing commit 80fa614e2fbc ("selftests: timers: > Remove local NSEC_PER_SEC and USEC_PER_SEC defines") Thanks John, I somehow missed 80fa614e2fbc and was wondering how this had got in. > Would it make more sense to fix the NSEC_PER_SEC definition in time64.h to a > LL? I wa

[PATCH] selftests/timers: Fix integer overlow errors on 32 bit systems

2025-06-03 Thread Terry Tritton
The use of NSEC_PER_SEC (10L) as defined in include/vdso/time64.h causes several integer overflow warnings and test errors on 32 bit architectures. Use a long long instead of long to prevent integer overflow when converting seconds to nanoseconds. Signed-off-by: Terry Tritton

[PATCH] selftests/seccomp: fix negative_ENOSYS tracer tests on arm32

2025-05-09 Thread Terry Tritton
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: 24cf65a62266 ("selftests/harness: Share _metadata between forked processes") Signed-off-by: Ter