All of lore.kernel.org
 help / color / mirror / Atom feed
* [LTP] [PATCH 0/2] openposix: mq_close/2-1: Fix failure on v7.3+
@ 2026-10-18 16:01 Avinesh Kumar via ltp
  2026-10-18 16:01 ` [LTP] [PATCH 1/2] openposix: mq_close/2-1: Use a valid signal number for mq_notify() Avinesh Kumar via ltp
  2026-10-18 16:01 ` [LTP] [PATCH 2/2] openposix: mq_close/2-1: Initialize sigev_signo and check for EBUSY Avinesh Kumar via ltp
  0 siblings, 2 replies; 6+ messages in thread
From: Avinesh Kumar via ltp @ 2026-10-18 16:01 UTC (permalink / raw)
  To: ltp

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(-)

-- 
2.56.0


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

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

end of thread, other threads:[~2026-10-20 10:22 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-18 16:01 [LTP] [PATCH 0/2] openposix: mq_close/2-1: Fix failure on v7.3+ Avinesh Kumar via ltp
2026-10-18 16:01 ` [LTP] [PATCH 1/2] openposix: mq_close/2-1: Use a valid signal number for mq_notify() Avinesh Kumar via ltp
2026-10-18 17:54   ` [LTP] " linuxtestproject.agent
2026-10-20 10:10   ` [LTP] [PATCH 1/2] " Cyril Hrubis
2026-10-18 16:01 ` [LTP] [PATCH 2/2] openposix: mq_close/2-1: Initialize sigev_signo and check for EBUSY Avinesh Kumar via ltp
2026-10-20 10:22   ` Cyril Hrubis

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.