llvm-project/compiler-rt/lib
Mitch Phillips e78b64df98 [Scudo] Use GWP-ASan's aligned allocations and fixup postalloc hooks.
This patch does a few cleanup things:
 1. The non-standalone scudo has a problem where GWP-ASan allocations
 may not meet alignment requirements where Scudo was requested to have
 alignment >= 16. Use the new GWP-ASan API to fix this.
 2. The standalone variant loses some debugging information inside of
 GWP-ASan because we ask GWP-ASan to allocate an aligned size in the
 frontend. This means reports end up with 'UaF on a 16-byte allocation'
 for a 1-byte allocation with 16-byte alignment. Also use the new API to
 fix this.
 3. Add post-alloc hooks for GWP-ASan intercepted allocations, and add
 stats tracking for GWP-ASan allocations.
 4. Add a small test that checks the alignment of the frontend
 allocator, so that it can be used under GWP-ASan torture mode.
 5. Add GWP-ASan torture mode as a testing configuration to catch these
 regressions.

Depends on D94830, D95889.

Reviewed By: cryptoad

Differential Revision: https://reviews.llvm.org/D95884
2021-05-10 12:56:18 -07:00
..
BlocksRuntime
asan [compiler-rt] Handle None value when polling addr2line pipe 2021-05-10 09:46:06 +01:00
builtins [builtins] Fix ABI-incompatibility with GCC for floating-point compare 2021-04-28 12:19:19 +01:00
cfi [clang] accept -fsanitize-ignorelist= in addition to -fsanitize-blacklist= 2021-05-04 10:24:00 -04:00
crt [RISCV][crt] support building without init_array 2020-12-01 17:17:50 +03:00
dfsan [dfsan] Add a DFSan allocator 2021-05-05 00:51:45 +00:00
fuzzer [libFuzzer] Fix stack overflow detection 2021-05-07 08:18:28 -07:00
gwp_asan [Scudo] Use GWP-ASan's aligned allocations and fixup postalloc hooks. 2021-05-10 12:56:18 -07:00
hwasan [hwasan] Fix missing synchronization in AllocThread. 2021-05-05 11:57:18 -07:00
interception [sanitizer] Set IndentPPDirectives: AfterHash in .clang-format 2021-05-03 13:49:41 -07:00
lsan [sanitizer] Set IndentPPDirectives: AfterHash in .clang-format 2021-05-03 13:49:41 -07:00
memprof sanitizer_common: introduce kInvalidTid/kMainTid 2021-04-30 15:58:05 +02:00
msan [clang] accept -fsanitize-ignorelist= in addition to -fsanitize-blacklist= 2021-05-04 10:24:00 -04:00
orc [ORC-RT] Re-apply "Initial ORC Runtime directories and build..." with fixes. 2021-04-24 16:00:20 -07:00
profile [gcov] Delete ancient MSVC workaround 2021-03-12 15:10:12 -08:00
safestack [sanitizer] Set IndentPPDirectives: AfterHash in .clang-format 2021-05-03 13:49:41 -07:00
sanitizer_common Revert "[sanitizer_common] Recycle StackDepot memory" 2021-05-05 00:57:34 +00:00
scudo [Scudo] Use GWP-ASan's aligned allocations and fixup postalloc hooks. 2021-05-10 12:56:18 -07:00
stats compiler-rt: Rename .cc file in lib/{dfsan,stats,ubsan_minimal} to .cpp 2019-08-01 12:41:23 +00:00
tsan [sanitizer] Set IndentPPDirectives: AfterHash in .clang-format 2021-05-03 13:49:41 -07:00
ubsan [Sanitizers] Fix build 2021-04-17 11:15:31 +01:00
ubsan_minimal [compiler-rt] Suppress -Wunused-result due to ::write when _FORTIFY_SOURCE>0 in glibc 2020-10-12 09:57:12 -07:00
xray [XRay][compiler-rt][x86_64] Fix CFI directives in assembly trampolines 2021-03-06 10:38:27 -08:00
CMakeLists.txt [ORC-RT] Re-apply "Initial ORC Runtime directories and build..." with fixes. 2021-04-24 16:00:20 -07:00