summaryrefslogtreecommitdiff
path: root/lib/sanitizer_common
AgeCommit message (Collapse)Author
2018-07-12[CMake] Rename `SANITIZER_HEADERS` to `SANITIZER_IMPL_HEADERS` under ↵Dan Liew
`lib/sanitizer_common`. The variable name `SANITIZER_HEADERS` is already used for the list of public headers in `include/CMakeLists.txt`. Although the previous implementation worked it's probably best to avoid shadowing global variables to avoid confusion. Differential Revision: https://reviews.llvm.org/D49176 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@336904 91177308-0d34-0410-b5e6-96231b3b80d8
2018-07-10[CMake] Add compiler-rt header files to the list of sources for targetsDan Liew
when building with an IDE so that header files show up in the UI. This massively improves the development workflow in IDEs. To implement this a new function `compiler_rt_process_sources(...)` has been added that adds header files to the list of sources when the generator is an IDE. For non-IDE generators (e.g. Ninja/Makefile) no changes are made to the list of source files. The function can be passed a list of headers via the `ADDITIONAL_HEADERS` argument. For each runtime library a list of explicit header files has been added and passed via `ADDITIONAL_HEADERS`. For `tsan` and `sanitizer_common` a list of headers was already present but it was stale and has been updated to reflect the current state of the source tree. The original version of this patch used file globbing (`*.{h,inc,def}`) to find the headers but the approach was changed due to this being a CMake anti-pattern (if the list of headers changes CMake won't automatically re-generate if globbing is used). The LLVM repo contains a similar function named `llvm_process_sources()` but we don't use it here for several reasons: * It depends on the `LLVM_ENABLE_OPTION` cache variable which is not set in standalone compiler-rt builds. * We would have to `include(LLVMProcessSources)` which I'd like to avoid because it would include a bunch of stuff we don't need. Differential Revision: https://reviews.llvm.org/D48422 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@336663 91177308-0d34-0410-b5e6-96231b3b80d8
2018-07-01[asan] Fix deadlock issue on FreeBSD, caused by use of .preinit_array in ↵Fangrui Song
rL325240 Summary: Without this patch, clang -fsanitize=address -xc =(printf 'int main(){}') -o a; ./a => deadlock in __asan_init>AsanInitInternal>AsanTSDInit>...>__getcontextx_size>_rtld_bind>rlock_acquire(rtld_bind_lock, &lockstate) libexec/rtld-elf/rtld.c wlock_acquire(rtld_bind_lock, &lockstate); if (obj_main->crt_no_init) preinit_main(); // unresolved PLT functions cannot be called here lib/libthr/thread/thr_rtld.c uc_len = __getcontextx_size(); // unresolved PLT function in libthr.so.3 check-xray tests currently rely on .preinit_array so we special case in xray_init.cc Subscribers: srhines, kubamracek, krytarowski, delcypher, llvm-commits, #sanitizers Differential Revision: https://reviews.llvm.org/D48806 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@336067 91177308-0d34-0410-b5e6-96231b3b80d8
2018-06-30[asan] Use MADV_NOCORE for use_madv_dontdump on FreeBSD.Fangrui Song
Currently in FreeBSD 12.0-CURRENT with trunk clang+compiler-rt, faulty -fsanitize=address executable hangs at 'urdlck' state. Ka Ho Ng has verified that by backporting this to llvm 6.0.1, with use_madv_dontdump=1, shadow memory is not dumped. ASAN_OPTIONS=abort_on_error=1:disable_coredump=0:use_madv_dontdump=1 ./a Reviewers: dimitry, kcc, dvyukov, emaste, khng300 Subscribers: kubamracek, delcypher, llvm-commits, #sanitizers Differential Revision: https://reviews.llvm.org/D48257 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@336046 91177308-0d34-0410-b5e6-96231b3b80d8
2018-06-27[sanitizer] zx_cprng_draw no longer returns any valuePetr Hosek
Remove the return value check. Differential Revision: https://reviews.llvm.org/D48671 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@335790 91177308-0d34-0410-b5e6-96231b3b80d8
2018-06-27[sanitizer] zx_cprng_draw no longer takes the output argumentPetr Hosek
The zx_cprng_draw system call no longer takes the output argument. Differential Revision: https://reviews.llvm.org/D48657 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@335755 91177308-0d34-0410-b5e6-96231b3b80d8
2018-06-20[Lsan] intercept thr_exit on FreeBSDDavid Carlier
Intercepts thr_exit call on FreeBSD. Disable pthread key workflow. The pthread key create approach does not function under FreeBSD as the libpthread is not initialised enough at this stage. Reviewers: vitalybuka, krytarowski, dim Reviewed By: vitalybuka Differential Revision: https://reviews.llvm.org/D48268 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@335164 91177308-0d34-0410-b5e6-96231b3b80d8
2018-06-20[Sanitizers] Remove OOM/BadRequest allocator error handling policies.Alex Shlyapnikov
Summary: Remove the generic error nadling policies and handle each allocator error explicitly. Although more verbose, it allows for more comprehensive, precise and actionable allocator related failure reports. This finishes up the series of changes of the particular sanitizer allocators, improves the internal allocator error reporting and removes now unused policies. Reviewers: vitalybuka, cryptoad Subscribers: kubamracek, delcypher, #sanitizers, llvm-commits Differential Revision: https://reviews.llvm.org/D48328 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@335147 91177308-0d34-0410-b5e6-96231b3b80d8
2018-06-18[sanitizer] Guard call to internal_lseek when SANITIZER_MAC is trueFrancis Visoiu Mistrih
r334881 breaks macOS bots because internal_lseek is not defined (neither used on macOS): http://green.lab.llvm.org/green/job/clang-stage1-configure-RA/46240/consoleFull. See discussion from r334881: https://reviews.llvm.org/rL334881 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@334944 91177308-0d34-0410-b5e6-96231b3b80d8
2018-06-18[sanitizer] Suppress unused function warningVitaly Buka
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@334923 91177308-0d34-0410-b5e6-96231b3b80d8
2018-06-17[sanitizer] Fix tsan GO buildVitaly Buka
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@334914 91177308-0d34-0410-b5e6-96231b3b80d8
2018-06-17[sanitizer] Fix s390 build after r334900Vitaly Buka
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@334913 91177308-0d34-0410-b5e6-96231b3b80d8
2018-06-17[sanitizer] Use confstr to check libc version in InitTlsSizeVitaly Buka
Reviewers: Lekensteyn, jakubjelinek Subscribers: kubamracek, llvm-commits Differential Revision: https://reviews.llvm.org/D48265 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@334912 91177308-0d34-0410-b5e6-96231b3b80d8
2018-06-17[sanitizer] Use const char* in internal_simple_strtollVitaly Buka
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@334900 91177308-0d34-0410-b5e6-96231b3b80d8
2018-06-16[sanitizer_common] Fix windows build caused by r334881Fangrui Song
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@334884 91177308-0d34-0410-b5e6-96231b3b80d8
2018-06-16[sanitizer_common] Use O_TRUNC for WrOnly access mode.Fangrui Song
Summary: Otherwise if the file existed and was larger than the write size before the OpenFile call, the file will not be truncated and contain garbage in trailing bytes. Reviewers: glider, kcc, vitalybuka Subscribers: kubamracek, delcypher, llvm-commits, #sanitizers Differential Revision: https://reviews.llvm.org/D48250 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@334881 91177308-0d34-0410-b5e6-96231b3b80d8
2018-06-14[Sanitizer] fix compilation warningDavid Carlier
In most of systems, this field is a signed type but in some it is an unsigned. Reviewers: vitalybuka Reviewed By: vitalybuka Differential Revision: https://reviews.llvm.org/D48118 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@334686 91177308-0d34-0410-b5e6-96231b3b80d8
2018-06-13[ASAN] Fix fputs interception for 32-bit macOSPeter Wu
On 32-bit macOS, "_fputs$UNIX2003" is called instead of "fputs" and the "fgets_fputs" test fails. Apparently previous versions still passed the test due to the internal implementation calling "strlen", but that does not seem to be the case with macOS 10.13.3. Fixes r334450. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@334670 91177308-0d34-0410-b5e6-96231b3b80d8
2018-06-13[Sanitizers] Make sanitizer allocator linker-initialize compliant.Alex Shlyapnikov
Summary: These four SpinMutex ctors was the only code executed in the ctor for the static __asan::Allocator instance (same for the other sanitizers allocators), which is supposed to be fully linker-initialized. Also, when the global ctor for this allocator instance is executed, this instance might already be initialized by __asan_init called from .preinit_array. Issue: https://github.com/google/sanitizers/issues/194 Reviewers: morehouse, eugenis, cryptoad Subscribers: kubamracek, delcypher, #sanitizers, llvm-commits Differential Revision: https://reviews.llvm.org/D48142 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@334660 91177308-0d34-0410-b5e6-96231b3b80d8
2018-06-13[TSan] Fix madvise(MADV_NOHUGEPAGE) for meta shadow memoryAlex Shlyapnikov
Summary: Move madvise(MADV_NOHUGEPAGE) for the meta shadow memory after the meta shadow memory is mapped (currently it silently fails with ENOMEM). Add a diagnostic message to detect similar problems in the future. Reviewers: dvyukov Subscribers: kubamracek, delcypher, #sanitizers, llvm-commits Differential Revision: https://reviews.llvm.org/D48097 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@334624 91177308-0d34-0410-b5e6-96231b3b80d8
2018-06-12[asan, myriad] Support environment variablesWalter Lee
Provide a buffer that the test harness can write into to provide values for the environment variables. Format is a null-separated list of VAR=value pairs; this is sufficent for our purpose. Differential Revision: https://reviews.llvm.org/D47960 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@334522 91177308-0d34-0410-b5e6-96231b3b80d8
2018-06-11[sanitizer] Add fgets, fputs and puts into sanitizer_commonPeter Wu
Summary: Add fgets, fputs and puts to sanitizer_common. This adds ASAN coverage for these functions, extends MSAN support from fgets to fputs/puts and extends TSAN support from puts to fputs. Fixes: https://github.com/google/sanitizers/issues/952 Reviewed By: vitalybuka Differential Revision: https://reviews.llvm.org/D46545 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@334450 91177308-0d34-0410-b5e6-96231b3b80d8
2018-06-10[ASAN] Fix crash on i?86-linux (32-bit) against glibc 2.27 and laterPeter Wu
Summary: Running sanitized 32-bit x86 programs on glibc 2.27 crashes at startup, with: ERROR: AddressSanitizer: SEGV on unknown address 0xf7a8a250 (pc 0xf7f807f4 bp 0xff969fc8 sp 0xff969f7c T16777215) The signal is caused by a WRITE memory access. #0 0xf7f807f3 in _dl_get_tls_static_info (/lib/ld-linux.so.2+0x127f3) #1 0xf7a92599 (/lib/libasan.so.5+0x112599) #2 0xf7a80737 (/lib/libasan.so.5+0x100737) #3 0xf7f7e14f in _dl_init (/lib/ld-linux.so.2+0x1014f) #4 0xf7f6eb49 (/lib/ld-linux.so.2+0xb49) The problem is that glibc changed the calling convention for the GLIBC_PRIVATE symbol that sanitizer uses (even when it should not, GLIBC_PRIVATE is exactly for symbols that can change at any time, be removed etc.), see https://sourceware.org/ml/libc-alpha/2017-08/msg00497.html Fixes https://github.com/google/sanitizers/issues/954 Patch By: Jakub Jelinek Reviewed By: vitalybuka, Lekensteyn Differential Revison: https://reviews.llvm.org/D44623 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@334363 91177308-0d34-0410-b5e6-96231b3b80d8
2018-06-08[Sanitizers] Check alignment != 0 for aligned_alloc and posix_memalignAlex Shlyapnikov
Summary: Move the corresponding tests to the common folder (as all of the sanitizer allocators will support this feature soon) and add the checks specific to aligned_alloc to ASan and LSan allocators. Reviewers: vitalybuka Subscribers: srhines, kubamracek, delcypher, #sanitizers, llvm-commits Differential Revision: https://reviews.llvm.org/D47924 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@334316 91177308-0d34-0410-b5e6-96231b3b80d8
2018-06-07Silence a -Wconstant-logical-operand warning.Douglas Yung
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@334214 91177308-0d34-0410-b5e6-96231b3b80d8
2018-06-07[sanitizer] Don't use internal_unlink on WindowsVitaly Buka
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@334152 91177308-0d34-0410-b5e6-96231b3b80d8
2018-06-06[sanitizer] Replace deprecated mktemp with mkstempVitaly Buka
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@334138 91177308-0d34-0410-b5e6-96231b3b80d8
2018-06-06[sanitizer] Cleanup ReadFileToVector and ReadFileToBufferVitaly Buka
Summary: Added unit-test. Fixed behavior of max_len argument. Call read syscall with all available buffer, not just a page. Reviewers: eugenis Subscribers: kubamracek, mgorny, llvm-commits Differential Revision: https://reviews.llvm.org/D46618 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@334130 91177308-0d34-0410-b5e6-96231b3b80d8
2018-06-06[asan] Fix Myraid RTEMS port broken by r333985Walter Lee
Add nop CheckASLR() function. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@334102 91177308-0d34-0410-b5e6-96231b3b80d8
2018-06-05[LSan] Report proper error on allocator failures instead of CHECK(0)-ingAlex Shlyapnikov
Summary: Following up on and complementing D44404. Currently many allocator specific errors (OOM, for example) are reported as a text message and CHECK(0) termination, not stack, no details, not too helpful nor informative. To improve the situation, detailed and structured errors were defined and reported under the appropriate conditions. Reviewers: eugenis Subscribers: srhines, mgorny, delcypher, llvm-commits, #sanitizers Differential Revision: https://reviews.llvm.org/D47645 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@334034 91177308-0d34-0410-b5e6-96231b3b80d8
2018-06-05Introduce CheckASLR() in sanitizersKamil Rytarowski
Summary: At least the ASan, MSan, TSan sanitizers require disabled ASLR on a NetBSD. Introduce a generic CheckASLR() routine, that implements a check for the current process. This flag depends on the global or per-process settings. There is no simple way to disable ASLR in the build process from the level of a sanitizer or during the runtime execution. With ASLR enabled sanitizers that operate over the process virtual address space can misbehave usually breaking with cryptic messages. This check is dummy for !NetBSD. Sponsored by <The NetBSD Foundation> Reviewers: vitalybuka, joerg Reviewed By: vitalybuka Subscribers: cryptoad, kubamracek, llvm-commits, #sanitizers Tags: #sanitizers Differential Revision: https://reviews.llvm.org/D47442 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@333985 91177308-0d34-0410-b5e6-96231b3b80d8
2018-06-01[asan, myriad] Configure platform interceptorsWalter Lee
Myriad only uses the platform interceptors for memory allocation routines. Configure them properly. Also add a missing guard around aligned alloc interceptor. Differential Revision: https://reviews.llvm.org/D47641 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@333784 91177308-0d34-0410-b5e6-96231b3b80d8
2018-05-31Define SIZEOF_STRUCT_USTAT for 32bit sparc.Sylvestre Ledru
Patch landed on gcc upstream: https://github.com/gcc-mirror/gcc/commit/27453e962b3fe2f918c5105b2a48ec3e92d4c873 Patch by Matthias Klose git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@333644 91177308-0d34-0410-b5e6-96231b3b80d8
2018-05-30[asan, myriad] Simplify main thread handlingWalter Lee
On Myriad RTEMS, we don't need to treat the main thread differently. The existing thread hooks will do the right thing, so get rid of all the unneeded special logic. Differential Revision: https://reviews.llvm.org/D47502 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@333504 91177308-0d34-0410-b5e6-96231b3b80d8
2018-05-25Revert the last test commitH.J. Lu
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@333310 91177308-0d34-0410-b5e6-96231b3b80d8
2018-05-25This is a test commit to verify repository accessH.J. Lu
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@333309 91177308-0d34-0410-b5e6-96231b3b80d8
2018-05-24sanitizer: Use pre-computed size of struct ustat for LinuxCraig Topper
<sys/ustat.h> has been removed from glibc 2.28 by: commit cf2478d53ad7071e84c724a986b56fe17f4f4ca7 Author: Adhemerval Zanella <adhemerval.zanella@linaro.org> Date: Sun Mar 18 11:28:59 2018 +0800 Deprecate ustat syscall interface This patch uses pre-computed size of struct ustat for Linux to fix https://bugs.llvm.org/show_bug.cgi?id=37418 Patch by H.J. Lu. Differential Revision: https://reviews.llvm.org/D47281 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@333213 91177308-0d34-0410-b5e6-96231b3b80d8
2018-05-23[fuchsia] Add line buffering in RawWriteJake Ehrlich
This change causes RawWrite to buffer upto 128 bytes or until a line is reached. This helps group calls into more readable lines. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@333136 91177308-0d34-0410-b5e6-96231b3b80d8
2018-05-23[sanitizer] Define UINTPTR_MAXKostya Kortchinsky
Summary: `sanitizer_internal_defs.h` didn't have this define, which will be useful in an upcoming CL. Reviewers: alekseyshl Reviewed By: alekseyshl Subscribers: kubamracek, delcypher, llvm-commits, #sanitizers Differential Revision: https://reviews.llvm.org/D47270 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@333109 91177308-0d34-0410-b5e6-96231b3b80d8
2018-05-23Fix internal_mmap() on 32-bit NetBSD platformsKamil Rytarowski
There is need to use internal_syscall64() instead of internal_syscall_ptr(). The offset argument of type off_t is always 64-bit. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@333075 91177308-0d34-0410-b5e6-96231b3b80d8
2018-05-23[sanitizer] Reland "Be more accurate when calculating the previous ↵Igor Kudrin
instruction address on ARM." Differential Revision: https://reviews.llvm.org/D46004 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@333071 91177308-0d34-0410-b5e6-96231b3b80d8
2018-05-18[asan] Add target-specific files for Myriad RTEMS portWalter Lee
Differential Revision: https://reviews.llvm.org/D46468 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@332691 91177308-0d34-0410-b5e6-96231b3b80d8
2018-05-18[sanitizer] Trivial portion of the port to Myriad RTEMSWalter Lee
This commit contains the trivial portion of the port of ASan to Myriad RTEMS. - Whitelist platform in sanitizer_platform.h, ubsan_platform.h - Turn off general interception - Use memset for FastPoisonShadow - Define interception wrappers - Set errno symbol correctly - Enable ASAN_LOW_MEMORY - Enable preinit array - Disable slow unwinding - Use fuchsia offline symbolizer - Disable common code for: InitializeShadowMemory, CreateMainThread, AsanThread::ThreadStart, StartReportDeadlySignal, MaybeReportNonExecRegion. Differential Revision: https://reviews.llvm.org/D46454 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@332681 91177308-0d34-0410-b5e6-96231b3b80d8
2018-05-16[sanitizer] Minor 32-bit primary improvementsKostya Kortchinsky
Summary: For the 32-bit TransferBatch: - `SetFromArray` callers have bounds `count`, so relax the `CHECK` to `DCHECK`; - same for `Add`; - mark `CopyToArray` as `const`; For the 32-bit Primary: - `{Dea,A}llocateBatch` are only called from places that check `class_id`, relax the `CHECK` to `DCHECK`; - same for `AllocateRegion`; - remove `GetRegionBeginBySizeClass` that is not used; - use a local variable for the random shuffle state, so that the compiler can use a register instead of reading and writing to the `SizeClassInfo` at every iteration; For the 32-bit local cache: - pass the count to drain instead of doing a `Min` everytime which is at times superfluous. Reviewers: alekseyshl Reviewed By: alekseyshl Subscribers: kubamracek, delcypher, #sanitizers, llvm-commits Differential Revision: https://reviews.llvm.org/D46657 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@332478 91177308-0d34-0410-b5e6-96231b3b80d8
2018-05-15[sanitizer] Intercept __pthread_mutex_lock and __pthread_mutex_unlockVitaly Buka
Reviewers: eugenis, dvyukov Subscribers: srhines, kubamracek, llvm-commits Differential Revision: https://reviews.llvm.org/D46793 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@332320 91177308-0d34-0410-b5e6-96231b3b80d8
2018-05-15[asan] Workaround to avoid hangs in Chromium testsVitaly Buka
Summary: For some reasons on Chromium when we start leak checking we get own pid as 1. After that we see threads with PPID:0 assuming that thread is dead in infinite loop. To resolve particularly this case and possible issues like this, when IsAlive check failed to detect thread status, we need to limit the number of SuspendAllThreads iterations. Reviewers: eugenis Subscribers: kubamracek, llvm-commits Differential Revision: https://reviews.llvm.org/D46852 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@332319 91177308-0d34-0410-b5e6-96231b3b80d8
2018-05-14Revert "[sanitizer] Intercept __pthread_mutex_lock and __pthread_mutex_unlock"Vitaly Buka
Tsan tests fail. This reverts commit r332268 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@332276 91177308-0d34-0410-b5e6-96231b3b80d8
2018-05-14[sanitizer] Intercept __pthread_mutex_lock and __pthread_mutex_unlockVitaly Buka
Reviewers: eugenis, dvyukov Subscribers: srhines, kubamracek, llvm-commits Differential Revision: https://reviews.llvm.org/D46793 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@332268 91177308-0d34-0410-b5e6-96231b3b80d8
2018-05-13[sanitizer] Replace #if SANITIZER_NETBSD with #if ↵Vitaly Buka
SANITIZER_INTERCEPT___LIBC_MUTEX git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@332190 91177308-0d34-0410-b5e6-96231b3b80d8
2018-05-12[sanitizer] Fix typo in macro nameVitaly Buka
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@332171 91177308-0d34-0410-b5e6-96231b3b80d8