[LTP] [PATCH v2 0/5] listns() testing suite

Andrea Cervesato
2026-03-13T11:48:44Z

This testing suite is focusing on basic listns() syscall
functionalities, since most of the complex scenarios are already covered
inside the kselftests at `tools/testing/selftests/namespaces/`.

This is the first testing suite where we started to use AI agents and
claude configuration at https://github.com/acerv/agents-config

Signed-off-by: Andrea Cervesato <andrea.cervesato@suse.com>
---
Changes in v2:
- link tests to runtest file
- listns02: don't reap children before exit the test
- Link to v1: https://lore.kernel.org/r/20260313-listns-v1-0-04ef0081a377@suse.com

---
Andrea Cervesato (5):
Update architectures syscalls identifiers
Add listns fallback header
Add NS_GET_ID fallback
syscalls: add listns01 test for EFAULT on invalid address
syscalls: add listns02 functionality test

include/lapi/ioctl_ns.h | 3 +
include/lapi/listns.h | 36 +++++++++
include/lapi/syscalls/arc.in | 2 +
include/lapi/syscalls/arm.in | 3 +-
include/lapi/syscalls/arm64.in | 2 +
include/lapi/syscalls/i386.in | 3 +-
include/lapi/syscalls/loongarch64.in | 3 +
include/lapi/syscalls/mips64.in | 4 +-
include/lapi/syscalls/mips64n32.in | 4 +-
include/lapi/syscalls/mipso32.in | 4 +-
include/lapi/syscalls/parisc.in | 3 +-
include/lapi/syscalls/powerpc.in | 3 +-
include/lapi/syscalls/powerpc64.in | 3 +-
include/lapi/syscalls/s390.in | 102 +++++++-------------------
include/lapi/syscalls/s390x.in | 4 +-
include/lapi/syscalls/sh.in | 3 +-
include/lapi/syscalls/sparc.in | 4 +-
include/lapi/syscalls/sparc64.in | 4 +-
include/lapi/syscalls/x86_64.in | 4 +-
runtest/syscalls | 3 +
testcases/kernel/syscalls/listns/.gitignore | 2 +
testcases/kernel/syscalls/listns/Makefile | 7 ++
testcases/kernel/syscalls/listns/listns01.c | 56 ++++++++++++++
testcases/kernel/syscalls/listns/listns02.c | 109 ++++++++++++++++++++++++++++
24 files changed, 277 insertions(+), 94 deletions(-)
---
base-commit: 712e6e47e9744a1cf60074bf90e45ef402cce90f
change-id: 20260312-listns-3f85a0d77cca

Best regards,
--
Andrea Cervesato <andrea.cervesato@suse.com>