Linux Test Project
 help / color / mirror / Atom feed
* [LTP] [PATCH v4 0/8] ioctl_pidfd testing suite
@ 2025-07-23 14:15 Andrea Cervesato
  2025-07-23 14:15 ` [LTP] [PATCH v4 1/8] Provide pidfd parameter in tst_clone_args Andrea Cervesato
                   ` (8 more replies)
  0 siblings, 9 replies; 11+ messages in thread
From: Andrea Cervesato @ 2025-07-23 14:15 UTC (permalink / raw)
  To: ltp

The testing suite has been created to cover the new feature
PIDFD_INFO_EXIT provided by kernel 6.15.

Signed-off-by: Andrea Cervesato <andrea.cervesato@suse.com>
---
Changes in v4:
- use ioctl_pidfd_info_exit_supported() name and check for minimum
  kernel version inside it
- close pidfd at the end of tests
- fix wrong import in autoconf for sys/linux.h
- Link to v3: https://lore.kernel.org/r/20250707-ioctl_pidfd_suite-v3-0-22ba4d15ee02@suse.com

Changes in v3:
- ioctl_pidfd02: compare exit_code with status from waitpid()
- check for PIDFD_INFO_EXIT support ioctl_pidfd.h
  ioctl_pidfd_suite-v1-0-165b9abf0296
- Link to v2: https://lore.kernel.org/r/20250704-ioctl_pidfd_suite-v2-0-88a6466d9f62@suse.com

Changes in v2:
- ioctl_pidfd02: check all flags of info before and after process being
  reaped. Include a fork() test
- ioctl_pidfd03: verify process info before being reaped
- add more error tests
- Link to v1: https://lore.kernel.org/r/20250626-ioctl_pidfd_suite-v1-0-165b9abf0296@suse.com

---
Andrea Cervesato (8):
      Provide pidfd parameter in tst_clone_args
      Fallback PIDFD_GET_INFO related definitions
      Add ioctl_pidfd01 test
      Add ioctl_pidfd02 test
      Add ioctl_pidfd03 test
      Add ioctl_pidfd04 test
      Add ioctl_pidfd05 test
      Add ioctl_pidfd06 test

 configure.ac                                    |  2 +
 include/lapi/pidfd.h                            | 39 +++++++++++-
 include/tst_clone.h                             |  1 +
 lib/tst_clone.c                                 |  1 +
 runtest/syscalls                                |  7 ++
 testcases/kernel/syscalls/ioctl/.gitignore      |  6 ++
 testcases/kernel/syscalls/ioctl/ioctl_pidfd.h   | 41 ++++++++++++
 testcases/kernel/syscalls/ioctl/ioctl_pidfd01.c | 58 +++++++++++++++++
 testcases/kernel/syscalls/ioctl/ioctl_pidfd02.c | 85 +++++++++++++++++++++++++
 testcases/kernel/syscalls/ioctl/ioctl_pidfd03.c | 64 +++++++++++++++++++
 testcases/kernel/syscalls/ioctl/ioctl_pidfd04.c | 71 +++++++++++++++++++++
 testcases/kernel/syscalls/ioctl/ioctl_pidfd05.c | 59 +++++++++++++++++
 testcases/kernel/syscalls/ioctl/ioctl_pidfd06.c | 66 +++++++++++++++++++
 13 files changed, 499 insertions(+), 1 deletion(-)
---
base-commit: bf14e296a9bc5f18cdc7f91d8e005297ab2ae2a2
change-id: 20250626-ioctl_pidfd_suite-322aa2375c42

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


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2025-07-23 14:56 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-23 14:15 [LTP] [PATCH v4 0/8] ioctl_pidfd testing suite Andrea Cervesato
2025-07-23 14:15 ` [LTP] [PATCH v4 1/8] Provide pidfd parameter in tst_clone_args Andrea Cervesato
2025-07-23 14:15 ` [LTP] [PATCH v4 2/8] Fallback PIDFD_GET_INFO related definitions Andrea Cervesato
2025-07-23 14:15 ` [LTP] [PATCH v4 3/8] Add ioctl_pidfd01 test Andrea Cervesato
2025-07-23 14:15 ` [LTP] [PATCH v4 4/8] Add ioctl_pidfd02 test Andrea Cervesato
2025-07-23 14:15 ` [LTP] [PATCH v4 5/8] Add ioctl_pidfd03 test Andrea Cervesato
2025-07-23 14:15 ` [LTP] [PATCH v4 6/8] Add ioctl_pidfd04 test Andrea Cervesato
2025-07-23 14:15 ` [LTP] [PATCH v4 7/8] Add ioctl_pidfd05 test Andrea Cervesato
2025-07-23 14:15 ` [LTP] [PATCH v4 8/8] Add ioctl_pidfd06 test Andrea Cervesato
2025-07-23 14:21 ` [LTP] [PATCH v4 0/8] ioctl_pidfd testing suite Cyril Hrubis
2025-07-23 14:55   ` Andrea Cervesato via ltp

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox