Skip to content

semctl01: fix SEM_STAT failures under parallel LTP runs

Stephen Bertram via ltp ltp 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2newipc: Factor out generic get_ipc_idx_from_id() helperinclude/tse_newipc.h libs/newipc/tse_newipc.c testcases/kernel/syscalls/shmctl/shmctl01.c+40 -71 reply
2/2semctl01: fix SEM_STAT failures under parallel LTP runstestcases/kernel/syscalls/semctl/Makefile testcases/kernel/syscalls/semctl/semctl01.c+65 -130 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [LTP] [PATCH v1 0/2] semctl01: fix SEM_STAT failures under parallel LTP runs

From: Stephen Bertram <[email protected]>

Split from the single-patch version per review feedback, so each patch is one logical, independently-bisectable change:

1/2: introduce get_ipc_idx_from_id() in libs/newipc and convert
shmctl01 to use it (no behavior change)
2/2: fix semctl01's SEM_STAT lookup on top of the new helper

See the prior thread for context:
https://lists.linux.it/pipermail/ltp/2026-July/050268.html

Stephen Bertram (2):
newipc: Factor out generic get_ipc_idx_from_id() helper
semctl01: fix SEM_STAT failures under parallel LTP runs

 include/tse_newipc.h                        | 20 ++++++
 libs/newipc/tse_newipc.c                    | 13 ++++
 testcases/kernel/syscalls/semctl/Makefile   |  2 +-
 testcases/kernel/syscalls/semctl/semctl01.c | 76 +++++++++++++++++----
 testcases/kernel/syscalls/shmctl/shmctl01.c | 14 ++--
 5 files changed, 105 insertions(+), 20 deletions(-)
Signature · 5 lines
2.55.0


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