openposix: mq_close/2-1: Fix failure on v7.3+
Status from this message: Merged, Thanks!
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | openposix: mq_close/2-1: Use a valid signal number for mq_notify()testcases/ | +1 | 3 replies | |
| 2/2 | openposix: mq_close/2-1: Initialize sigev_signo and check for EBUSYtestcases/ | +7 | 3 replies |
Reviews trailers per patch
All 2 patches have a Reviewed-by or Acked-by.
| Patch | Cyril Hrubis | Andrea Cervesato |
|---|---|---|
| 1/2 | R-b | R-b |
| 2/2 | R-b | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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