[PATCH] D39124: Add NetBSD improvements in sanitizers

Kamil Rytarowski via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 20 08:29:34 PDT 2017


krytarowski created this revision.
krytarowski added a project: Sanitizers.
Herald added a subscriber: kubamracek.

Changes:

- Add initial msan stub support.
- Handle NetBSD specific pthread_setname_np(3).
- NetBSD supports __attribute__((tls_model("initial-exec"))), define it in SANITIZER_TLS_INITIAL_EXEC_ATTRIBUTE.
- Add ReExec() specific bits for NetBSD.
- Correct bunch of syscall wrappers for NetBSD.
- Disable test/tsan/map32bit on NetBSD as not applicable.
- Port test/tsan/strerror_r to a POSIX-compliant OSes.
- Disable __libc_stack_end on NetBSD.
- Disable ReadNullSepFileToArray() on NetBSD.
- Define struct_ElfW_Phdr_sz, detected missing symbol by msan.
- Change type of __sanitizer_FILE from void to char. This helps to reuse this type as an array. Long term it will be properly implemented along with SANITIZER_HAS_STRUCT_FILE setting to 1.
- Add initial NetBSD support in lib/tsan/go/buildgo.sh.
- Correct referencing stdout and stderr in tsan_interceptors.cc on NetBSD.
- Document NetBSD x86_64 specific virtual memory layout in tsan_platform.h.
- Don't check for VDSO in CheckAndProtect() on NetBSD.
- Port tests/rtl/tsan_test_util_posix.cc to NetBSD.
- Enable NetBSD tests in test/msan/lit.cfg.
- Enable NetBSD tests in test/tsan/lit.cfg.

Sponsored by <The NetBSD Foundation>


Repository:
  rL LLVM

https://reviews.llvm.org/D39124

Files:
  lib/msan/msan_interceptors.cc
  lib/msan/msan_linux.cc
  lib/sanitizer_common/sanitizer_common_interceptors.inc
  lib/sanitizer_common/sanitizer_internal_defs.h
  lib/sanitizer_common/sanitizer_linux.cc
  lib/sanitizer_common/sanitizer_platform_limits_netbsd.cc
  lib/sanitizer_common/sanitizer_platform_limits_netbsd.h
  lib/tsan/go/buildgo.sh
  lib/tsan/rtl/tsan_interceptors.cc
  lib/tsan/rtl/tsan_platform.h
  lib/tsan/rtl/tsan_platform_linux.cc
  lib/tsan/rtl/tsan_platform_posix.cc
  lib/tsan/tests/rtl/tsan_test_util_posix.cc
  test/msan/lit.cfg
  test/tsan/lit.cfg
  test/tsan/map32bit.cc
  test/tsan/strerror_r.cc

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D39124.119659.patch
Type: text/x-patch
Size: 24271 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171020/02b83221/attachment.bin>


More information about the llvm-commits mailing list