[PATCH] D21083: [sanitizer][esan] Add internal_sigaction_syscall

Derek Bruening via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 7 10:01:30 PDT 2016


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

Adds a version of sigaction that uses a raw system call, to avoid circular
dependencies and support calling sigaction prior to setting up
interceptors.  The new sigaction relies on an assembly sigreturn routine
for its restorer, which is Linux x86_64-only for now.

Uses the new sigaction to initialize the working set tool's shadow fault
handler prior to libc interceptor being set up.  This is required to
support instrumentation invoked during interceptor setup, which happens
with tcmalloc.

http://reviews.llvm.org/D21083

Files:
  lib/esan/esan.cpp
  lib/esan/esan_interceptors.cpp
  lib/esan/working_set.cpp
  lib/esan/working_set.h
  lib/sanitizer_common/CMakeLists.txt
  lib/sanitizer_common/sanitizer_linux.cc
  lib/sanitizer_common/sanitizer_linux.h
  lib/sanitizer_common/sanitizer_linux_x86_64.S

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D21083.59903.patch
Type: text/x-patch
Size: 7387 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160607/ad5c66f8/attachment.bin>


More information about the llvm-commits mailing list