Linux Test Project
 help / color / mirror / Atom feed
* [LTP] [PATCH v6 0/4] futex: Add error coverage tests for wait, wake and cmp_requeue
@ 2026-05-20  7:44 Michael Menasherov via ltp
  2026-05-20  7:44 ` [LTP] [PATCH v6 1/4] futex_wait06: Add EFAULT error coverage test Michael Menasherov via ltp
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Michael Menasherov via ltp @ 2026-05-20  7:44 UTC (permalink / raw)
  To: ltp

Improve error handling coverage for futex syscalls by adding tests
for missing error conditions that were previously untested.

v6:
- Fix doc comment in futex_cmp_requeue03 to mention both EFAULT and
  EACCES outcomes for the PROT_NONE case

v5:
- Use compile-time testcase arrays with double pointers instead of
  runtime initialization in setup()
- Fix sparse warnings: add (void *) cast in SAFE_MUNMAP calls
- Remove unnecessary braces in single-statement if blocks

v4:
- Use TST_EXP_FAIL instead of manual error checks
- Add kernel version check for EACCES in futex_cmp_requeue03
- Restructure testcases to use direct pointers instead of flag fields
- Replace raw mmap() with SAFE_MMAP() in futex_wait06
- Remove manual SAFE_WAITPID, let library collect child
- Remove obvious comments in futex_wait07

v3:
- Fix copyright year 2024 -> 2026
- Use /*\ comment format for test catalog
- Add Signed-off-by

Michael Menasherov (4):
  futex_wait06: Add EFAULT error coverage test
  futex_wait07: Add EINTR error coverage test
  futex_wake05: Add EFAULT error coverage test
  futex_cmp_requeue03: Add EFAULT error coverage test

 runtest/syscalls                              |  4 +
 testcases/kernel/syscalls/futex/.gitignore    |  4 +
 .../syscalls/futex/futex_cmp_requeue03.c      | 98 +++++++++++++++++++
 .../kernel/syscalls/futex/futex_wait06.c      | 75 ++++++++++++++
 .../kernel/syscalls/futex/futex_wait07.c      | 87 ++++++++++++++++
 .../kernel/syscalls/futex/futex_wake05.c      | 86 ++++++++++++++++
 6 files changed, 354 insertions(+)
 create mode 100644 testcases/kernel/syscalls/futex/futex_cmp_requeue03.c
 create mode 100644 testcases/kernel/syscalls/futex/futex_wait06.c
 create mode 100644 testcases/kernel/syscalls/futex/futex_wait07.c
 create mode 100644 testcases/kernel/syscalls/futex/futex_wake05.c

-- 
2.54.0


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

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

end of thread, other threads:[~2026-05-20 14:06 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-20  7:44 [LTP] [PATCH v6 0/4] futex: Add error coverage tests for wait, wake and cmp_requeue Michael Menasherov via ltp
2026-05-20  7:44 ` [LTP] [PATCH v6 1/4] futex_wait06: Add EFAULT error coverage test Michael Menasherov via ltp
2026-05-20  9:45   ` [LTP] " linuxtestproject.agent
2026-05-20  7:44 ` [LTP] [PATCH v6 2/4] futex_wait07: Add EINTR " Michael Menasherov via ltp
2026-05-20  7:44 ` [LTP] [PATCH v6 3/4] futex_wake05: Add EFAULT " Michael Menasherov via ltp
2026-05-20  7:44 ` [LTP] [PATCH v6 4/4] futex_cmp_requeue03: " Michael Menasherov via ltp
2026-05-20 14:06 ` [LTP] [PATCH v6 0/4] futex: Add error coverage tests for wait, wake and cmp_requeue 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