Skip to content

openposix: mq_close/2-1: Fix failure on v7.3+

Avinesh Kumar via ltp ltp 1 version Applied

Status from this message: Merged, Thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 6 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2openposix: mq_close/2-1: Use a valid signal number for mq_notify()testcases/open_posix_testsuite/conformance/interfaces/mq_close/2-1.c+1 -13 replies
2/2openposix: mq_close/2-1: Initialize sigev_signo and check for EBUSYtestcases/open_posix_testsuite/conformance/interfaces/mq_close/2-1.c+7 -13 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchCyril HrubisAndrea Cervesato
1/2R-b R-b
2/2R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [LTP] [PATCH 0/2] openposix: mq_close/2-1: Fix failure on v7.3+

Linux commit 1184f5e82009 ("mqueue: reject mq_notify with signo 0"), merged in v7.3-rc1, makes mq_notify() with SIGEV_SIGNAL fail with EINVAL if sigev_signo is 0. mq_close/2-1 passes signo 0 in the child's last mq_notify() call, so it fails on v7.3+.

Patch 1 fixes that failure by using a valid signal number.

Patch 2 fixes the same problem for the child's first mq_notify() call. It never sets sigev_signo, so it is rejected with EINVAL instead of failing with EBUSY as intended. The test only checked that the call failed, so it kept passing. The patch sets sigev_signo and requires EBUSY.

Avinesh Kumar (2):
openposix: mq_close/2-1: Use a valid signal number for mq_notify()
openposix: mq_close/2-1: Initialize sigev_signo and check for EBUSY

 .../conformance/interfaces/mq_close/2-1.c              | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)
Signature · 5 lines
2.56.0


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