[PATCH] D22063: [esan|wset] Ensure SIGSEGV is not blocked

Derek Bruening via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 6 11:48:04 PDT 2016


bruening created this revision.
bruening added a reviewer: aizatsky.
bruening added subscribers: llvm-commits, eugenis, kcc, zhaoqin, vitalybuka.
Herald added a subscriber: kubabrecka.

Adds interception of sigprocmask and pthread_sigmask to esan so that the
working set tool can prevent SIGSEGV from being blocked.  A blocked SIGSEGV
results in crashes due to our lazy shadow page allocation scheme.

Adds new sanitizer helper functions internal_sigemptyset and
internal_sigismember.

Adds a test to workingset-signal-posix.cpp.

http://reviews.llvm.org/D22063

Files:
  lib/esan/esan.cpp
  lib/esan/esan.h
  lib/esan/esan_interceptors.cpp
  lib/esan/working_set.h
  lib/esan/working_set_posix.cpp
  lib/sanitizer_common/sanitizer_linux.cc
  lib/sanitizer_common/sanitizer_posix.h
  test/esan/TestCases/workingset-signal-posix.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D22063.62927.patch
Type: text/x-patch
Size: 8608 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160706/9e427a42/attachment.bin>


More information about the llvm-commits mailing list