llvm-project/compiler-rt/lib
Evgenii Stepanov 596d06145a [GWP-ASan] enable/disable and fork support.
Summary:
* Implement enable() and disable() in GWP-ASan.
* Setup atfork handler.
* Improve test harness sanity and re-enable GWP-ASan in Scudo.

Scudo_standalone disables embedded GWP-ASan as necessary around fork().
Standalone GWP-ASan sets the atfork handler in init() if asked to. This
requires a working malloc(), therefore GWP-ASan initialization in Scudo
is delayed to the post-init callback.

Test harness changes are about setting up a single global instance of
the GWP-ASan allocator so that pthread_atfork() does not create
dangling pointers.

Test case shamelessly stolen from D72470.

Reviewers: cryptoad, hctim, jfb

Subscribers: mgorny, jfb, #sanitizers, llvm-commits

Tags: #sanitizers, #llvm

Differential Revision: https://reviews.llvm.org/D73294
2020-01-24 13:53:26 -08:00
..
BlocksRuntime [compiler-rt] Test commit: remove some trailing white spaces. 2017-08-25 19:36:30 +00:00
asan Remove unused variables, as suggested by @mcgov. 2019-11-04 14:55:51 -05:00
builtins Revert "Revert 1689ad27af "[builtins] Implement rounding mode support for i386/x86_64"" 2019-11-27 17:29:20 -08:00
cfi Improve error message when '=' is missing in {ASAN,...}_OPTIONS. 2019-06-15 01:37:14 +00:00
crt Check for aarch64 when not using .init_arrays 2020-01-02 10:10:49 -08:00
dfsan [compiler-rt] Remove some cpplint filters 2019-09-12 02:20:36 +00:00
fuzzer [CMake] Refactor iOS simulator/device test configuration generation code for LibFuzzer. 2020-01-23 12:44:00 -08:00
gwp_asan [GWP-ASan] enable/disable and fork support. 2020-01-24 13:53:26 -08:00
hwasan hwasan: Remove dead code. NFCI. 2020-01-17 15:12:38 -08:00
interception Fix check-interception link error in compiler-rt debug mode 2019-10-10 23:30:54 +00:00
lsan [sanitizer_common] Create max_allocation_size_mb flag. 2019-10-30 11:26:05 -07:00
msan [SanitizerCommon] Print the current value of options when printing out help. 2019-11-14 14:04:34 -08:00
profile [profile] Support counter relocation at runtime 2020-01-17 15:02:23 -08:00
safestack compiler-rt: Rename .cc file in lib/{interception/tests,safestack} to .cpp 2019-08-01 13:56:52 +00:00
sanitizer_common Change internal_start_thread arguments to match pthread_create. 2020-01-23 13:15:16 -08:00
scudo [GWP-ASan] enable/disable and fork support. 2020-01-24 13:53:26 -08:00
stats compiler-rt: Rename .cc file in lib/{dfsan,stats,ubsan_minimal} to .cpp 2019-08-01 12:41:23 +00:00
tsan Change internal_start_thread arguments to match pthread_create. 2020-01-23 13:15:16 -08:00
ubsan [UBSan] Appease linter 2019-10-10 11:32:06 +00:00
ubsan_minimal compiler-rt: Rename .cc file in lib/{dfsan,stats,ubsan_minimal} to .cpp 2019-08-01 12:41:23 +00:00
xray Re-land "[compiler-rt] Migrate llvm::make_unique to std::make_unique" 2019-08-15 14:57:44 +00:00
CMakeLists.txt Reland "[compiler-rt] Simple crtbegin.o and crtend.o implementation" 2019-04-30 18:13:22 +00:00