about summary refs log tree commit diff
path: root/src/setjmp/i386
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2019-09-25 21:49:53 -0400
committerRich Felker <dalias@aerifal.cx>2019-09-25 21:49:53 -0400
commit29bad49d72e5aeedb97d2bb2af44838d934026a0 (patch)
tree320a06fd7a4318149b3b0dd779b6e299868fe7a1 /src/setjmp/i386
parent7d5c5706a0e1d2f4019a92e1a869d71d552bbb49 (diff)
downloadmusl-29bad49d72e5aeedb97d2bb2af44838d934026a0.tar.gz
musl-29bad49d72e5aeedb97d2bb2af44838d934026a0.tar.xz
musl-29bad49d72e5aeedb97d2bb2af44838d934026a0.zip
fix data race in timer_create with SIGEV_THREAD notification
in the timer thread start function, self->timer_id was accessed
without synchronization; the timer thread could fail to see the store
from the calling thread, resulting in timer_delete failing to delete
the correct kernel-level timer.

this fix is based on a patch by changdiankang, but with the load moved
to after receiving the timer_delete signal rather than just after the
start barrier, so as not to retain the possibility of data race with
timer_delete.
Diffstat (limited to 'src/setjmp/i386')
0 files changed, 0 insertions, 0 deletions