llvm-project/compiler-rt/lib/msan
Kostya Kortchinsky 596b8b4a22 [sanitizer] Split Symbolizer/StackTraces from core RTSanitizerCommon
Summary:
Host symbolizer & stacktraces related code in their own RT:
`RTSanitizerCommonSymbolizer`, which is "libcdep" by nature. Symbolizer &
stacktraces specific code that used to live in common files is moved to a new
file `sanitizer_symbolizer_report.cc` as is.

The purpose of this is the enforce a separation between code that relies on
symbolization and code that doesn't. This saves the inclusion of spurious code
due to the interface functions with default visibility, and the extra data
associated.

The following sanitizers makefiles were modified & tested locally:
- dfsan: doesn't require the new symbolizer RT
- esan: requires it
- hwasan: requires it
- lsan: requires it
- msan: requires it
- safestack: doesn't require it
- xray: doesn't require it
- tsan: requires it
- ubsan: requires it
- ubsan_minimal: doesn't require it
- scudo: requires it (but not for Fuchsia that has a minimal runtime)

This was tested locally on Linux, Android, Fuchsia.

Reviewers: alekseyshl, eugenis, dberris, kubamracek, vitalybuka, dvyukov, mcgrathr

Reviewed By: alekseyshl, vitalybuka

Subscribers: srhines, kubamracek, mgorny, krytarowski, delcypher, llvm-commits, #sanitizers

Differential Revision: https://reviews.llvm.org/D45457

llvm-svn: 330131
2018-04-16 16:32:19 +00:00
..
tests [Fuzzer] Avoid the unnecessary rebuild of the custom libc++ 2018-03-07 18:14:09 +00:00
.clang-format Tell clang-format that (most) sanitizers are written using Google style guide. 2015-11-19 22:11:10 +00:00
CMakeLists.txt [sanitizer] Split Symbolizer/StackTraces from core RTSanitizerCommon 2018-04-16 16:32:19 +00:00
msan.cc [MSan] Print current stack on CHECK violation 2018-02-26 18:27:24 +00:00
msan.h [MSan] Print current stack on CHECK violation 2018-02-26 18:27:24 +00:00
msan.syms.extra Export __ubsan_* symbols from MSan and TSan runtimes. 2015-04-28 01:20:34 +00:00
msan_allocator.cc [Sanitizers] Make common allocator agnostic to failure handling modes. 2018-01-17 23:20:36 +00:00
msan_allocator.h Revert r304285, r304297. 2017-06-05 21:20:55 +00:00
msan_blacklist.txt
msan_chained_origin_depot.cc [compiler-rt] Apply modernize-use-nullptr fixes in sanitizers 2015-10-01 00:22:21 +00:00
msan_chained_origin_depot.h
msan_flags.h [sanitizer] Flag parser rewrite. 2015-01-15 15:13:43 +00:00
msan_flags.inc [Sanitizers] Unify the semantics and usage of "exitcode" runtime flag across all sanitizers. 2015-08-21 20:49:37 +00:00
msan_interceptors.cc [sanitizer] Move strxfrm interceptors into sanitizer_common 2018-03-07 00:14:30 +00:00
msan_interface_internal.h [compiler-rt] Do not introduce __sanitizer namespace globally 2016-09-15 21:02:18 +00:00
msan_linux.cc (NFC) Rename GetMax{,User}VirtualAddress. 2017-11-07 23:51:22 +00:00
msan_new_delete.cc [MSan,TSan] Add aligned new/delete interceptors. 2017-12-22 17:02:17 +00:00
msan_origin.h [msan] Fix MsanTest to pass in track_origins=2 mode. 2015-02-26 15:19:33 +00:00
msan_poisoning.cc [msan] Fix SetShadow for mappings at the end of the application address space 2015-06-25 20:47:59 +00:00
msan_poisoning.h [msan] Refactor shadow operations. 2015-01-21 16:42:30 +00:00
msan_report.cc [msan] Replace CommonSanitizerReportMutex with ScopedErrorReportLock 2017-11-09 22:48:45 +00:00
msan_thread.cc [asan] Fix SanitizerCommon.PthreadDestructorIterations test on Android L. 2015-06-29 20:28:55 +00:00
msan_thread.h [compiler-rt] Apply modernize-use-nullptr fixes in sanitizers 2015-10-01 00:22:21 +00:00