glibc/rt
Nikita Popov 7c987a5ccb 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 4cc79c2177)
2021-08-16 11:35:35 +05:30
..
bits
aio_cancel.c Linux: Move aio_cancel, aio_cancel64 into libc 2021-06-25 11:48:46 +02:00
aio_error.c Linux: Move aio_error, aio_error64 into libc 2021-06-25 11:49:55 +02:00
aio_fsync.c Linux: Move aio_fsync, aio_fsync64 into libc 2021-06-25 11:50:24 +02:00
aio_misc.c Linux: Cleanups after librt move 2021-06-28 09:51:01 +02:00
aio_notify.c Linux: Cleanups after librt move 2021-06-28 09:51:01 +02:00
aio_read64.c Linux: Move aio_read, aio_read64 into libc 2021-06-25 11:53:37 +02:00
aio_read.c Linux: Move aio_read, aio_read64 into libc 2021-06-25 11:53:37 +02:00
aio_return.c Linux: Move aio_return, aio_return64 into libc 2021-06-25 11:55:01 +02:00
aio_sigqueue.c Linux: Cleanups after librt move 2021-06-28 09:51:01 +02:00
aio_suspend.c Linux: Move aio_suspend, aio_suspend64, __aio_suspend_time64 to libc 2021-06-25 11:55:27 +02:00
aio_write64.c Linux: Move aio_write, aio_write64 into libc 2021-06-25 12:19:15 +02:00
aio_write.c Linux: Move aio_write, aio_write64 into libc 2021-06-25 12:19:15 +02:00
aio.h
Depend
librt-compat.c Linux: Move timer_settime, __timer_settime64 from librt to libc 2021-06-28 09:51:01 +02:00
lio_listio64.c rt: Rework lio_listio implementation 2021-06-25 12:19:57 +02:00
lio_listio-common.c Linux: Move lio_listio, lio_listio64 from librt to libc 2021-06-25 12:19:58 +02:00
lio_listio.c rt: Rework lio_listio implementation 2021-06-25 12:19:57 +02:00
Makefile librt: add test (bug 28213) 2021-08-16 11:35:35 +05:30
mq_close.c
mq_getattr.c
mq_notify.c
mq_open.c
mq_receive.c
mq_send.c
mq_setattr.c
mq_timedreceive.c
mq_timedsend.c
mq_unlink.c
mqueue.h
shm_open.c rt: Move shm_open into libc 2021-06-21 08:25:15 +02:00
shm_unlink.c rt: Move shm_unlink into libc 2021-06-21 08:25:15 +02:00
timer_create.c rt: Move generic implementation from sysdeps/pthread to rt 2021-06-22 09:50:45 +02:00
timer_delete.c rt: Move generic implementation from sysdeps/pthread to rt 2021-06-22 09:50:45 +02:00
timer_getoverr.c rt: Move generic implementation from sysdeps/pthread to rt 2021-06-22 09:50:45 +02:00
timer_gettime.c rt: Move generic implementation from sysdeps/pthread to rt 2021-06-22 09:50:45 +02:00
timer_settime.c rt: Move generic implementation from sysdeps/pthread to rt 2021-06-22 09:50:45 +02:00
tst-aio2.c
tst-aio3.c
tst-aio4.c
tst-aio5.c
tst-aio6-time64.c y2038: Add test coverage 2021-06-15 10:42:11 -03:00
tst-aio6.c
tst-aio7.c
tst-aio8.c
tst-aio9.c
tst-aio10.c
tst-aio64.c
tst-aio.c
tst-bz28213.c librt: add test (bug 28213) 2021-08-16 11:35:35 +05:30
tst-cpuclock2-time64.c y2038: Add test coverage 2021-06-15 10:42:11 -03:00
tst-cpuclock2.c y2038: Add test coverage 2021-06-15 10:42:11 -03:00
tst-cputimer1.c
tst-cputimer2.c
tst-cputimer3.c
tst-mqueue1-time64.c y2038: Add test coverage 2021-06-15 10:42:11 -03:00
tst-mqueue1.c
tst-mqueue2-time64.c y2038: Add test coverage 2021-06-15 10:42:11 -03:00
tst-mqueue2.c
tst-mqueue3.c
tst-mqueue4-time64.c y2038: Add test coverage 2021-06-15 10:42:11 -03:00
tst-mqueue4.c
tst-mqueue5.c
tst-mqueue6.c
tst-mqueue7.c
tst-mqueue8-time64.c y2038: Add test coverage 2021-06-15 10:42:11 -03:00
tst-mqueue8.c
tst-mqueue9.c
tst-mqueue10-time64.c linux: Only use 64-bit syscall if required for mq_timedreceive 2021-06-22 12:09:52 -03:00
tst-mqueue10.c linux: Only use 64-bit syscall if required for mq_timedsend 2021-06-22 12:09:52 -03:00
tst-mqueue.h
tst-shm-cancel.c
tst-shm.c
tst-timer2.c
tst-timer3.c
tst-timer4-time64.c y2038: Add test coverage 2021-06-15 10:42:11 -03:00
tst-timer4.c
tst-timer5.c
tst-timer-sigmask.c
tst-timer.c
Versions Linux: Cleanups after librt move 2021-06-28 09:51:01 +02:00