[PATCH] [sanitizer] Decorate /proc/self/maps.

Evgeniy Stepanov eugenis at google.com
Wed May 27 17:19:51 PDT 2015


I've had to move the two memory mapping functions to a _libcdep header. Shm_open is not a syscall, and it's implementation in libc includes a lot of platform-specific details that we would not want to replicate in compiler-rt (like searching for a tmpfs/shmfs mount point in mtab).

I've moved the test to sanitizer_common and lost the msan-origin checks - they are not very interesting. In the future it could be nice to add msan-origins as yet another mode we run sanitizer_common tests in.


http://reviews.llvm.org/D10039

Files:
  cmake/config-ix.cmake
  lib/asan/CMakeLists.txt
  lib/asan/asan_internal.h
  lib/asan/asan_poisoning.h
  lib/asan/asan_rtl.cc
  lib/asan/tests/CMakeLists.txt
  lib/msan/msan_linux.cc
  lib/sanitizer_common/sanitizer_common.h
  lib/sanitizer_common/sanitizer_flags.inc
  lib/sanitizer_common/sanitizer_posix.cc
  lib/sanitizer_common/sanitizer_posix_libcdep.cc
  lib/sanitizer_common/sanitizer_win.cc
  lib/sanitizer_common/tests/CMakeLists.txt
  lib/tsan/go/buildgo.sh
  lib/tsan/rtl/tsan_platform_linux.cc
  lib/tsan/rtl/tsan_rtl.cc
  lib/tsan/rtl/tsan_rtl.h
  test/sanitizer_common/TestCases/Posix/decorate_proc_maps.cc
  test/sanitizer_common/TestCases/Posix/lit.local.cfg
  test/sanitizer_common/lit.common.cfg

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D10039.26650.patch
Type: text/x-patch
Size: 21261 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150528/dc22c14f/attachment.bin>


More information about the llvm-commits mailing list