diff options
author | Nikita Popov <npv1310@gmail.com> | 2021-08-12 16:09:50 +0530 |
---|---|---|
committer | Siddhesh Poyarekar <siddhesh@sourceware.org> | 2021-08-12 16:09:50 +0530 |
commit | 4cc79c217744743077bf7a0ec5e0a4318f1e6641 (patch) | |
tree | d8b3fe97d08dcd0504d29040ac3e5ceebcbc5fd0 /rt/Makefile | |
parent | dc906e94f7033892dadbd91718349f19e1376391 (diff) | |
download | glibc-4cc79c217744743077bf7a0ec5e0a4318f1e6641.tar glibc-4cc79c217744743077bf7a0ec5e0a4318f1e6641.tar.gz glibc-4cc79c217744743077bf7a0ec5e0a4318f1e6641.tar.bz2 glibc-4cc79c217744743077bf7a0ec5e0a4318f1e6641.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>
Diffstat (limited to 'rt/Makefile')
-rw-r--r-- | rt/Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/rt/Makefile b/rt/Makefile index 113cea03a5..910e775995 100644 --- a/rt/Makefile +++ b/rt/Makefile @@ -74,6 +74,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 \ |