about summary refs log tree commit diff
path: root/sysvipc
diff options
context:
space:
mode:
authorDmitry V. Levin <ldv@altlinux.org>2020-09-29 14:10:20 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2020-10-02 16:11:49 -0300
commit574500a108be1d2a6a0dc97a075c9e0a98371aba (patch)
tree018a857652d9591b21ac02289d14d3c6e28a0620 /sysvipc
parent238032ead6f34c41542890b968d973eb5c839673 (diff)
downloadglibc-574500a108be1d2a6a0dc97a075c9e0a98371aba.tar.gz
glibc-574500a108be1d2a6a0dc97a075c9e0a98371aba.tar.xz
glibc-574500a108be1d2a6a0dc97a075c9e0a98371aba.zip
sysvipc: Fix SEM_STAT_ANY kernel argument pass [BZ #26637]
Handle SEM_STAT_ANY the same way as SEM_STAT so that the buffer argument
of SEM_STAT_ANY is properly passed to the kernel and back.

The regression testcase checks for Linux specifix SysV ipc message
control extension.  For IPC_INFO/SEM_INFO it tries to match the values
against the tunable /proc values and for SEM_STAT/SEM_STAT_ANY it
check if the create message queue is within the global list returned
by the kernel.

Checked on x86_64-linux-gnu and on i686-linux-gnu (Linux v5.4 and on
Linux v4.15).

Co-authored-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>
Diffstat (limited to 'sysvipc')
-rw-r--r--sysvipc/test-sysvsem.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sysvipc/test-sysvsem.c b/sysvipc/test-sysvsem.c
index 01dbff343a..b7284e0b48 100644
--- a/sysvipc/test-sysvsem.c
+++ b/sysvipc/test-sysvsem.c
@@ -20,6 +20,7 @@
 #include <stdlib.h>
 #include <errno.h>
 #include <string.h>
+#include <stdbool.h>
 #include <sys/types.h>
 #include <sys/ipc.h>
 #include <sys/sem.h>