[compiler-rt] r186579 - tsan: treat SIGSYS as synchronous signal
Dmitry Vyukov
dvyukov at google.com
Thu Jul 18 06:14:11 PDT 2013
Author: dvyukov
Date: Thu Jul 18 08:14:11 2013
New Revision: 186579
URL: http://llvm.org/viewvc/llvm-project?rev=186579&view=rev
Log:
tsan: treat SIGSYS as synchronous signal
It is required for chromium sandboxing code.
>From the description it seems to be indeed synchronous -- called back on syscall with incorrect arguments,
but seems to be unused in practice. So this should be fine.
Modified:
compiler-rt/trunk/lib/tsan/rtl/tsan_interceptors.cc
Modified: compiler-rt/trunk/lib/tsan/rtl/tsan_interceptors.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/tsan/rtl/tsan_interceptors.cc?rev=186579&r1=186578&r2=186579&view=diff
==============================================================================
--- compiler-rt/trunk/lib/tsan/rtl/tsan_interceptors.cc (original)
+++ compiler-rt/trunk/lib/tsan/rtl/tsan_interceptors.cc Thu Jul 18 08:14:11 2013
@@ -77,6 +77,7 @@ const int SIGFPE = 8;
const int SIGSEGV = 11;
const int SIGPIPE = 13;
const int SIGBUS = 7;
+const int SIGSYS = 31;
void *const MAP_FAILED = (void*)-1;
const int PTHREAD_BARRIER_SERIAL_THREAD = -1;
const int MAP_FIXED = 0x10;
@@ -1608,7 +1609,7 @@ void ALWAYS_INLINE rtl_generic_sighandle
SignalContext *sctx = SigCtx(thr);
// Don't mess with synchronous signals.
if (sig == SIGSEGV || sig == SIGBUS || sig == SIGILL ||
- sig == SIGABRT || sig == SIGFPE || sig == SIGPIPE ||
+ sig == SIGABRT || sig == SIGFPE || sig == SIGPIPE || sig == SIGSYS ||
// If we are sending signal to ourselves, we must process it now.
(sctx && sig == sctx->int_signal_send) ||
// If we are in blocking function, we can safely process it now
More information about the llvm-commits
mailing list