tsan: fix data races between signal handler and sigaction
authorDmitry Vyukov <dvyukov@google.com>
Thu, 18 Dec 2014 18:31:47 +0000 (18:31 +0000)
committerDmitry Vyukov <dvyukov@google.com>
Thu, 18 Dec 2014 18:31:47 +0000 (18:31 +0000)
commitf7790012a5c45cd0f21be8c71b966df27f50e188
treebbf5fc132eddf9173378f53452258092e903cd4e
parent9fd326d4d6ae4f371f01950280b274713f7a8d63
tsan: fix data races between signal handler and sigaction

signal handler reads sa_sigaction when a concurrent sigaction call can modify it
as the result in could try to call SIG_DFL or a partially overwritten function pointer

llvm-svn: 224530
compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
compiler-rt/test/tsan/signal_reset.cc [new file with mode: 0644]