llvm-project/compiler-rt/lib/dfsan
Matt Morehouse 4deda57106 [DFSan] Handle mmap() calls before interceptors are installed.
InitializeInterceptors() calls dlsym(), which calls calloc().  Depending
on the allocator implementation, calloc() may invoke mmap(), which
results in a segfault since REAL(mmap) is still being resolved.

We fix this by doing a direct syscall if interceptors haven't been fully
resolved yet.

Reviewed By: vitalybuka

Differential Revision: https://reviews.llvm.org/D86168
2020-08-19 15:07:41 -07:00
..
scripts compiler-rt: Rename .cc file in test/dfsan to cpp 2019-08-05 13:19:28 +00:00
.clang-format [sanitizer] Remove unneeded blank lines 2018-05-09 00:44:26 +00:00
CMakeLists.txt compiler-rt: Rename .cc file in lib/{dfsan,stats,ubsan_minimal} to .cpp 2019-08-01 12:41:23 +00:00
dfsan.cpp [DFSan] Support fast16labels mode in dfsan_union. 2020-08-17 11:27:28 -07:00
dfsan.h [compiler-rt] Remove some cpplint filters 2019-09-12 02:20:36 +00:00
dfsan.syms.extra
dfsan_custom.cpp [DFSan] Fix parameters to strtoull wrapper. 2020-08-14 08:02:30 -07:00
dfsan_flags.inc [DFSan] Add efficient fast16labels instrumentation mode. 2020-07-29 18:58:47 +00:00
dfsan_interceptors.cpp [DFSan] Handle mmap() calls before interceptors are installed. 2020-08-19 15:07:41 -07:00
dfsan_platform.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
done_abilist.txt [DFSan] Remove dfsan_use_fast16labels from abilist. 2020-07-29 23:18:07 +00:00
libc_ubuntu1404_abilist.txt