about summary refs log tree commit diff
path: root/rt/Makefile
diff options
context:
space:
mode:
authorNikita Popov <npv1310@gmail.com>2021-08-12 16:09:50 +0530
committerSiddhesh Poyarekar <siddhesh@sourceware.org>2021-08-17 18:47:03 +0530
commit22d37364aeaf5f8e4c5108677baaf084871c3006 (patch)
tree6beea36d5e1d6dec4c3da4145f4d4486356f9699 /rt/Makefile
parent27a78fd712c06748737dfa9638fab96ea362fca9 (diff)
downloadglibc-22d37364aeaf5f8e4c5108677baaf084871c3006.tar.gz
glibc-22d37364aeaf5f8e4c5108677baaf084871c3006.tar.xz
glibc-22d37364aeaf5f8e4c5108677baaf084871c3006.zip
librt: add test (bug 28213)
This test implements following logic:
1) Create POSIX message queue.
   Register a notification with mq_notify (using NULL attributes).
   Then immediately unregister the notification with mq_notify.
   Helper thread in a vulnerable version of glibc
   should cause NULL pointer dereference after these steps.
2) Once again, register the same notification.
   Try to send a dummy message.
   Test is considered successfulif the dummy message
   is successfully received by the callback function.

Signed-off-by: Nikita Popov <npv1310@gmail.com>
Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
(cherry picked from commit 4cc79c217744743077bf7a0ec5e0a4318f1e6641)
Diffstat (limited to 'rt/Makefile')
-rw-r--r--rt/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/rt/Makefile b/rt/Makefile
index 7b374f2073..c87d95793a 100644
--- a/rt/Makefile
+++ b/rt/Makefile
@@ -44,6 +44,7 @@ tests := tst-shm tst-timer tst-timer2 \
 	 tst-aio7 tst-aio8 tst-aio9 tst-aio10 \
 	 tst-mqueue1 tst-mqueue2 tst-mqueue3 tst-mqueue4 \
 	 tst-mqueue5 tst-mqueue6 tst-mqueue7 tst-mqueue8 tst-mqueue9 \
+	 tst-bz28213 \
 	 tst-timer3 tst-timer4 tst-timer5 \
 	 tst-cpuclock2 tst-cputimer1 tst-cputimer2 tst-cputimer3 \
 	 tst-shm-cancel