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

Avinesh Kumar avinesh.kumar@suse.com
Sun Oct 18 18:01:13 CEST 2026


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



More information about the ltp mailing list