llvm-project/compiler-rt/test
Kostya Serebryany 712fc9803a [sanitizer] Initial implementation of a Hardened Allocator
Summary:
This is an initial implementation of a Hardened Allocator based on Sanitizer Common's CombinedAllocator.
It aims at mitigating heap based vulnerabilities by adding several features to the base allocator, while staying relatively fast.
The following were implemented:
- additional consistency checks on the allocation function parameters and on the heap chunks;
- use of checksum protected chunk header, to detect corruption;
- randomness to the allocator base;
- delayed freelist (quarantine), to mitigate use after free and overall determinism.
Additional mitigations are in the works.

Reviewers: eugenis, aizatsky, pcc, krasin, vitalybuka, glider, dvyukov, kcc

Subscribers: kubabrecka, filcab, llvm-commits

Differential Revision: http://reviews.llvm.org/D20084

llvm-svn: 271968
2016-06-07 01:20:26 +00:00
..
BlocksRuntime Move tests for BlocksRuntime and builtins to corresponding directories under test/ 2014-02-14 09:47:31 +00:00
asan [asan] Reenable ASan tests in "check-all" 2016-06-06 16:24:47 +00:00
builtins Add a generic version of __divtc3.c for long double complex division. 2015-11-22 19:13:49 +00:00
cfi Update visibility flags for CFI tests. 2016-04-28 17:09:09 +00:00
dfsan Replace hardcoded comment at 'lit.site.cfg.in' 2016-04-16 07:03:45 +00:00
esan [esan|cfrag] Compute the struct field access difference ratio 2016-06-03 20:48:17 +00:00
lsan Replace hardcoded comment at 'lit.site.cfg.in' 2016-04-16 07:03:45 +00:00
msan [MSan] Use COMMON_INTERCEPTOR_ENTER in libdl interceptors. 2016-04-25 22:25:49 +00:00
profile add -f to rm so the test passes the first time it's run the file file is not present 2016-06-06 23:31:58 +00:00
safestack Replace hardcoded comment at 'lit.site.cfg.in' 2016-04-16 07:03:45 +00:00
sanitizer_common Fix test for Darwin: ASAN is calling abort by default on Darwin, which not detects as a crash 2016-05-31 20:09:56 +00:00
scudo [sanitizer] Initial implementation of a Hardened Allocator 2016-06-07 01:20:26 +00:00
tsan tsan: rely on AnnotateRWLockCreateStatic to detect linker-initialized mutexes 2016-06-03 11:48:27 +00:00
ubsan UBSan: crash less often on corrupted Vtables. 2016-06-02 18:36:12 +00:00
CMakeLists.txt [sanitizer] Initial implementation of a Hardened Allocator 2016-06-07 01:20:26 +00:00
lit.common.cfg [asan] Mark the initialization-bug.cc unsupported on OS X Yosemite and older 2016-03-30 22:21:58 +00:00
lit.common.configured.in Replace hardcoded comment at 'lit.site.cfg.in' 2016-04-16 07:03:45 +00:00