Add close_range01, SAFE_DUP2 and SAFE_CLONE
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest5 patches 0 repliesNew
- v15 patches 0 repliesSuperseded
Changes in v2 from the cover letter
* Add docs for tst_clone
* Add lapi/close_range.h
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | API: Add close_range syscall wrapperconfigure.ac include/ include/ +16 more | +47 | 0 replies | |
| 2/5 | API: Add SAFE_DUP2include/ lib/ | +23 | 0 replies | |
| 3/5 | API: Fix clone.hinclude/ | +3 | 0 replies | |
| 4/5 | API: Add tst_clonedoc/ include/ include/ +2 more | +122 | 0 replies | |
| 5/5 | close_range: Add testtestcases/ testcases/ testcases/ | +211 | 5 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [LTP] [PATCH v2 0/5] Add close_range01, SAFE_DUP2 and SAFE_CLONE
Hi,
This series adds a test for the new system call close_range. The kernel selftests already added some tests, so I based this on those.
Also of note, is the addition of tst_clone and SAFE_CLONE which mirror the clone3 interface. This is not really necessary for this test as it is unlikely close_range is backported, but clone3 is not. OTOH I think it will be usefull for other tests especially as the libc clone wrapper seems to force the user to allocate the stack even though the kernel can handle this. Also the clone_args is growing rapidly.
The old API has ltp_clone* functions, but I think we will have an easier time tracking the clone3 interface, than what we were doing with the old API.
V2:
* Add docs for tst_clone
* Add lapi/close_range.h
Richard Palethorpe (5):
API: Add close_range syscall wrapper
API: Add SAFE_DUP2
API: Fix clone.h
API: Add tst_clone
close_range: Add test
configure.ac | 2 + doc/test-writing-guidelines.txt | 27 ++- include/lapi/clone.h | 5 +- include/lapi/close_range.h | 28 +++ include/lapi/syscalls/aarch64.in | 1 + include/lapi/syscalls/arc.in | 1 + include/lapi/syscalls/arm.in | 1 + include/lapi/syscalls/hppa.in | 1 + include/lapi/syscalls/i386.in | 1 + include/lapi/syscalls/ia64.in | 1 + include/lapi/syscalls/mips_n32.in | 1 + include/lapi/syscalls/mips_n64.in | 1 + include/lapi/syscalls/mips_o32.in | 1 + include/lapi/syscalls/powerpc.in | 1 + include/lapi/syscalls/powerpc64.in | 1 + include/lapi/syscalls/s390.in | 1 + include/lapi/syscalls/s390x.in | 1 + include/lapi/syscalls/sh.in | 1 + include/lapi/syscalls/sparc.in | 1 + include/lapi/syscalls/sparc64.in | 1 + include/lapi/syscalls/x86_64.in | 1 + include/tst_clone.h | 28 +++ include/tst_safe_macros.h | 5 + include/tst_test.h | 2 +- lib/tst_clone.c | 46 ++++ lib/tst_safe_macros.c | 18 ++ lib/tst_test.c | 25 +++ .../kernel/syscalls/close_range/.gitignore | 1 + .../kernel/syscalls/close_range/Makefile | 10 + .../syscalls/close_range/close_range01.c | 200 ++++++++++++++++++ 30 files changed, 406 insertions(+), 8 deletions(-) create mode 100644 include/lapi/close_range.h create mode 100644 lib/tst_clone.c create mode 100644 testcases/kernel/syscalls/close_range/.gitignore create mode 100644 testcases/kernel/syscalls/close_range/Makefile create mode 100644 testcases/kernel/syscalls/close_range/close_range01.c
Signature · 1 line
2.30.0