Linux Test Project
 help / color / mirror / Atom feed
* [LTP] [PATCH v3 0/2] Add process_mrelease testing suite
@ 2026-09-07  8:55 Andrea Cervesato
  2026-09-07  8:55 ` [LTP] [PATCH v3 1/2] Add process_mrelease01 test Andrea Cervesato
  2026-09-07  8:55 ` [LTP] [PATCH v3 2/2] Add process_mrelease02 test Andrea Cervesato
  0 siblings, 2 replies; 4+ messages in thread
From: Andrea Cervesato @ 2026-09-07  8:55 UTC (permalink / raw)
  To: Linux Test Project

This testing suite is meant to add coverage for process_mrelease()
syscall, introduced in the kernel 5.15.

The testing suite is providing following tests:
- process_mrelease01
- process_mrelease02

Since there's no man pages, please consider the following
documentation instead:

https://lwn.net/Articles/864184/
https://lwn.net/Articles/865341/

Signed-off-by: Andrea Cervesato <andrea.cervesato@suse.com>
---
Changes in v3:
process_mrelease01:
- drop /proc/<pid>/maps check and unused shared memory setup
- retry on ESRCH with exponentially increasing memory allocations
- pass immediately when process_mrelease() returns success
- remove unneeded needs_root flag
- fix author name typo and description formatting

process_mrelease02:
- wait for child process after checkpoint wake to avoid zombies
- remove unneeded needs_root flag
- update doc comment formatting

Changes in v2:
- process_mrelease01: change the algorithm to ensure we released the
  memory after process_mrelease() is called
- process_mrelease02: verify ESRCH error
- Link to v1: https://lore.kernel.org/r/20240522-process_mrelease-v1-0-41fe2fa44194@suse.com

To: Linux Test Project <ltp@lists.linux.it>

---
Andrea Cervesato (2):
      Add process_mrelease01 test
      Add process_mrelease02 test

 runtest/syscalls                                   |  3 +
 .../kernel/syscalls/process_mrelease/.gitignore    |  2 +
 .../kernel/syscalls/process_mrelease/Makefile      |  7 ++
 .../syscalls/process_mrelease/process_mrelease01.c | 94 ++++++++++++++++++++++
 .../syscalls/process_mrelease/process_mrelease02.c | 90 +++++++++++++++++++++
 5 files changed, 196 insertions(+)
---
base-commit: 463b33ad464b6840d0a1df5d41939e50d55d542c
change-id: 20240522-process_mrelease-3f2632b432e6

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


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

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

end of thread, other threads:[~2026-09-07 12:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-07  8:55 [LTP] [PATCH v3 0/2] Add process_mrelease testing suite Andrea Cervesato
2026-09-07  8:55 ` [LTP] [PATCH v3 1/2] Add process_mrelease01 test Andrea Cervesato
2026-09-07 12:06   ` [LTP] " linuxtestproject.agent
2026-09-07  8:55 ` [LTP] [PATCH v3 2/2] Add process_mrelease02 test Andrea Cervesato

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