Bala-Vignesh-Reddy
e6fbd1759c
selftests: complete kselftest include centralization
...
This follow-up patch completes centralization of kselftest.h and
ksefltest_harness.h includes in remaining seltests files, replacing all
relative paths with a non-relative paths using shared -I include path in
lib.mk
Tested with gcc-13.3 and clang-18.1, and cross-compiled successfully on
riscv, arm64, x86_64 and powerpc arch.
[[email protected] : add selftests include path for kselftest.h]
Link: https://lkml.kernel.org/r/[email protected]
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Bala-Vignesh-Reddy <[email protected] >
Suggested-by: Andrew Morton <[email protected] >
Link: https://lore.kernel.org/lkml/[email protected] /
Reviewed-by: Wei Yang <[email protected] >
Cc: David Hildenbrand <[email protected] >
Cc: David S. Miller <[email protected] >
Cc: Eric Dumazet <[email protected] >
Cc: Günther Noack <[email protected] >
Cc: Jakub Kacinski <[email protected] >
Cc: Liam Howlett <[email protected] >
Cc: Lorenzo Stoakes <[email protected] >
Cc: Michal Hocko <[email protected] >
Cc: Mickael Salaun <[email protected] >
Cc: Ming Lei <[email protected] >
Cc: Paolo Abeni <[email protected] >
Cc: Shuah Khan <[email protected] >
Cc: Simon Horman <[email protected] >
Cc: Suren Baghdasaryan <[email protected] >
Cc: Vlastimil Babka <[email protected] >
Signed-off-by: Andrew Morton <[email protected] >
2025-11-27 14:24:31 -08:00
Tycho Andersen
f0ece18e99
selftests: add ESRCH tests for pidfd_getfd()
...
Ensure that pidfd_getfd() reports -ESRCH if the task is already exiting.
Signed-off-by: Tycho Andersen <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Christian Brauner <[email protected] >
2024-02-07 15:48:31 +01:00
Tommi Rantala
b5ec9fe5be
selftests: pidfd: skip test on kcmp() ENOSYS
...
Skip test if kcmp() is not available, for example if kernel is compiled
without CONFIG_CHECKPOINT_RESTORE=y.
Signed-off-by: Tommi Rantala <[email protected] >
Acked-by: Christian Brauner <[email protected] >
Signed-off-by: Shuah Khan <[email protected] >
2020-10-27 17:01:45 -06:00
Kees Cook
ce79097a8f
selftests: Remove unneeded selftest API headers
...
Remove unused includes of the kselftest.h header.
Acked-by: Christian Brauner <[email protected] >
Signed-off-by: Kees Cook <[email protected] >
Signed-off-by: Shuah Khan <[email protected] >
2020-07-06 15:59:07 -06:00
Christian Brauner
86f56395fe
tests: test for setns() EINVAL regression
...
Verify that setns() reports EINVAL when an fd is passed that refers to an
open file but the file is not a file descriptor useable to interact with
namespaces.
Cc: Jan Stancek <[email protected] >
Cc: Cyril Hrubis <[email protected] >
Link: https://lore.kernel.org/lkml/20200615085836.GR12456@shao2-debian
Signed-off-by: Christian Brauner <[email protected] >
2020-06-17 00:48:54 +02:00
Sargun Dhillon
873dfd7881
test: Add test for pidfd getfd
...
The following tests:
* Fetch FD, and then compare via kcmp
* Make sure getfd can be blocked by blocking ptrace_may_access
* Making sure fetching bad FDs fails
* Make sure trying to set flags to non-zero results in an EINVAL
Signed-off-by: Sargun Dhillon <[email protected] >
Acked-by: Christian Brauner <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Christian Brauner <[email protected] >
2020-01-13 21:49:54 +01:00