This is an automated email from the git hooks/post-receive script.
unknown user pushed a change to branch google/stable in repository compiler-rt.
from 04ce6346f Updating branches/google/stable to r298696 adds b80243e5d Update debug_external.cc testcase to use TSan-invisible barri [...] adds c3709191b builtins: Select correct code fragments when compiling for Th [...] adds c651b5d41 [Compiler-rt][Builtins] Implement lit-test support (part 2 of 2) adds 9736f9043 Revert "builtins: Select correct code fragments when compilin [...] adds 9ef4ca6aa Fix an uninitialized field in tsan_block_context_t/AllocConte [...] adds 50bdaed4b Follow-up for r298738: Use "0" instead of "false" because the [...] adds a2065a768 Fix flaky strtok.c test. adds 7218fa55e Fix sanitizer tests with LLVM_TOOL_LLD_BUILD=OFF. adds 96ccf181c tsan: add new mutex annotations adds ea0ff516f [tsan] Only Acquire/Release GCD queues if they're not NULL adds d75e2e9fd [asan] Remove column numbers from test expectations in invali [...] adds 8dbff7cb7 [XRay][compiler-rt] Use sanitizer_common's atomic ops adds bf19b3764 Add --std=c++11 to tests that #include <atomic> adds 97cbaf1d3 Fix build error: adds 82b27a27c Disable use_tls_dynamic on 32-bit linux adds 3fbf3a414 Use pthreads for thread-local lsan allocator cache on darwin adds e7eb94b99 [sanitizers] Avoid using -fomit-frame-pointer on Darwin adds 83871acc2 [sanitizers] Upgrade ios min version to 8 adds 724beb709 Revert "[Compiler-rt][Builtins] Implement lit-test support (p [...] adds fa1f07dfb [powerpc] deactivate ManyThreadsTest asan test on powerpc64 adds 7b6358233 Move lsan allocator cache from lsan_common_linux to lsan_linux adds 049542483 Fix comment in lsan_linux.cc adds 7af31ae82 Fix missing sanitizer platform include adds e6100317e Reland "[Compiler-rt][Builtins] Implement lit-test support (p [...] adds 1e39eaad4 Enable i386 builds for darwin lsan adds 4d2e2402a Postpone lsan tls allocation until required adds 260f2c513 [Builtin] Unxfail tests for armhf adds 8b9877881 [XRay][compiler-rt] Add an end-to-end test for FDR Logging adds eacaa8fb8 [XRay] [compiler-rt] Write buffer length to FDR log before wr [...] adds 897c2d32c [Compiler-RT][Builtins] Remove XFAIL for mulsc3; NFC adds b78c5b858 [Builtins] Mark mulsc3_test as UNSUPPORTED for armhf; NFC adds 195832b0e Add allocator_frees_and_returns_null_on_realloc_zero=false fl [...] adds 6e194c247 Remove failing check from platform specific darwin lsan initializer adds 386f8e576 Move current thread data out of lsan_common on linux adds 4eeb34e26 [sanitizers] Fix get_groups interceptor in sanitizer (https:/ [...] adds a4ebae933 [XRay][compiler-rt] Use llvm-xray in FDR mode tests adds 3f1112dbf [asan] Support line numbers in StackVarDescr adds e014e3455 [XRay][compiler-rt] XFAIL the FDR mode tests on aarch64-42vma adds 8e08f7371 [XRay][compiler-rt] Only run tests using llvm-xray in x86_64 for now adds b1170d772 [XRay][compiler-rt] Spell REQUIRES properly for x86_64-linux adds 8b391d0ed [sanitizer] Move fread and fwrite interceptors to sanitizer_common adds 7b0994518 Use count instead of grep -c. adds 4aad00e01 Add LIT_USE_INTERNAL_SHELL to compiler-rt tests. adds 9fa19db0e Use FileCheck instead of [. adds 323e69dcc Enable leak detection on linux-i686 by default adds fa43e8248 avoid a subshell. adds e17862e22 [asan] Implement "scribble" flags, which overwrite free'd mem [...] adds ee2f75fcf [tsan] Add interceptor for xpc_connection_cancel to avoid fal [...] adds 173233549 Fixup for r299085: Include stdint.h in scribble.cc to make ui [...] adds cef58227a Fixup for r299085: Print all output to stderr. adds cad6e9412 Fixup for r299085: On Windows %p doesn't print 0x prefix. adds a7455404b Fixup for r299085: Disable the scribble.cc test on AArch64. adds ca8992d68 Fixup for r299085: Keep the scribble.cc test on Darwin only, [...] adds be5ba6663 [asan] Turn -fsanitize-address-use-after-scope on by default [...] adds 00f498843 [asan] Move AsanCheckDynamicRTPrereqs check under flag adds 7596a2af0 Remove unused variable. adds fc209f28f Simplify test. adds 172de6930 Replace wc -l with count. adds ef626e4f6 Avoid sub shell. adds 360834440 Don't remove the cwd. adds 9093a35c5 Avoid calling basename to compute xdynamiclib_namespec. adds bd4e3b4a8 Simplify test a bit. adds 9f4261ccd [cfi] Fix symbol lookup hack in cross-dso cfi to handle LLD b [...] adds 6b3405390 [Builtins] Fix div0 error in udivsi3 adds 7b9666449 [XRay] [compiler-rt] Unwriting FDR mode buffers when function [...] adds 500b2fd06 [lsan] Avoid segfaults during threads destruction under high load adds e3ebbf0ee Try to fix windows buildbot after r299630 adds 5829a6235 Try to fix MAC buildbot after r299630 adds c4b0a1a3e [XRay][compiler-rt] Remove unused local variable adds af3a7b559 [TSan] Adjust expectation for check_analyze.sh adds 9ba14dedf Enable builds of darwin lsan by default adds 0536342a3 Add a virtual destructor to a class with virtual methods. adds 35c61d811 Add __ffssi2 implementation to compiler-rt builtins adds ee0634886 Revert r299672: Add a virtual destructor to a class with virt [...] adds 6f78f5c40 Replace a few uses of basename. adds 58cce4a23 [asan] Fix dead stripping of globals on Linux (compiler-rt). adds 5a5d83e7f [lit] Fix Darwin pickling errors with process pools adds 7f45a6001 Add missing import adds 5584d09fd [builtins] Get the builtins tests passing on Windows adds 27ebbdc98 [builtins] Fix MSVC build adds 3cefeceb9 [builtins] Make some ISA macro checks work with MSVC adds 47c2a986a [builtins] Remove stray quotes to fix check-builtins on non-W [...] adds 0e4db8459 Use a temp file to avoid Process Substitution. adds 85fba5b83 [cfi] Accept weak definition of __cfi_check. adds f14d140b7 [msan] Reorder unittests for future parametrization. adds 633658ab0 [msan] Wrap sockaddr_in and socket for future IPv6 support. adds fed59961d [msan] Replace AF_INET with AF_UNIX to avoid IPv4 vs IPv6 issues. adds 3b81e31e9 [msan] Make test to fall-back to IPv6 if IPv4 is not available. adds e2a1b2466 [Asan] Eliminate SHADOW_TO_MEM() macro Differential Revision: [...] adds 39c38f1fd Revert "[asan] Fix dead stripping of globals on Linux (compil [...] adds f6ffcbb42 [msan] Choose in runtime if IPv4 or IPv6 are supported. adds 3fa7e26dd [tsan] Fall-back to IPv6 if IPv4 is not available. adds 227b42366 [PPC64, Sanitizers] Proper stack frame for the thread spawned [...] adds 2150691ee [XRay][compiler-rt] Remove the xray_fdr_log_printer_tool adds 769089a0b [XRay][compiler-rt] Add support for TSC emulation for x86_64 [...] adds 77094f117 [lsan] Enable LSan for arm Linux adds da0f8e2b7 This patch causes the installation of headers for the sanitiz [...] adds 056881d0b Revert r299923, it doesn't build in bootstrap builds. adds 8d8e5f3b6 Reapply "Enable LSan for arm Linux" adds 2c3562da9 [Profile] PE binary coverage bug fix adds 8df0cf037 [lsan] Fix typo in test/lsan/lit.common.cfg adds 4f28340f8 Revert 299954 : test failure needs to be fixed adds 73b0c20fc Don't delete lsan thread-local data until it's no longer required adds ef3c0d303 Implement standalone lsan interceptors for OS X adds b6240efd1 [msan] fix iconv interceptor. before the fix the interceptor [...] adds 379a34bac [XRay][compiler-rt] Add another work-around to XRay FDR tests [...] adds 4f0068953 [XRay] [compiler-rt] Simplify FDR logging handler. [NFC] adds 4153a1785 [XRay] [compiler-rt] Refactor rewinding FDR logging. adds e68ed0602 Fix compile error adds 8037ab9c5 Revert "[lsan] Fix typo in test/lsan/lit.common.cfg" adds 4d122dd84 [LSAN] Disable on ARM/Thumb for good adds 3cd04e32a Use 0-padding for i386 and arm print format specifiers adds 059c103b5 Fix memory leaks in address sanitizer darwin tests adds d1ca180de Avoid calling SizeClassMap::MaxCachedHint on hot path, it's n [...] adds 28db59a5e Cache size per class size in SizeClassAllocatorXLocalCache. adds c2cc1e207 [msan] Fix invalid use of vector constructor introduced by r299884. adds 4a814b2e5 [msan] Fix msan_test broken after r299884. adds a1687c291 Revert "Cache size per class size in SizeClassAllocatorXLocalCache." adds b84477f98 [lsan] Reenable lsan tests on ARM bots adds f91aadbae Free zone name when destroying malloc zone adds 546e70f18 Enable LSan on PowerPC64. adds 365d041bb Cache size per class size in SizeClassAllocatorXLocalCache. adds 6357c2dc3 Don't assume PTHREAD_CREATE_JOINABLE is 0 on all systems adds 55b1f4fcd Implement global pointer scanning for darwin leak sanitizer adds 89c661687 Revert "Enable LSan on PowerPC64." adds d4919012c Move Linux-specific lsan tests into a new directory adds 2d4035c4d Disable use of tls scanning on darwin leak sanitizer adds 0d5f39faf Revert "[msan] Fix msan_test broken after r299884." adds 3767ff9d5 [msan] Fix msan_test.cc by checking bind results before assum [...] adds b97fb2e6b [Profile] PE binary coverage bug fix adds 6d4c217ce [ubsan] Use the correct tool name in diagnostics adds 55d98a136 [profile] Sync up InstrProfData.inc (NFC) adds 1bc70377e Scan Kernel Alloc Once page for global pointers adds 9e60082e3 Don't read non-readable address ranges during lsan pointer scanning adds 0f9f15db7 [sanitizer] Introduce tid_t as a typedef for OS-provided thread IDs adds cd07c2344 Fixup for r300473: Use %lu on Linux for tid_t in format strings. adds a5928c107 [tsan] Add missing include for uint64_t in test. adds 279da8dd0 Update suspended threads info to be compatible with darwin adds b09b51744 [asan] Fixup for r300483 (which is a fixup for r300473). adds 4f6879e40 [XRay][compiler-rt] Use emulated TSC when CPU supports rdtscp [...] adds 385d9f6d5 [sanitizer] Don't include <linux/user.h> in sanitizer_stopthe [...] adds 73ac02fff Allow for setting of global platform-specific lsan options in [...] adds 5962f26bd Don't use abort_on_error for lsan darwin test suite adds e73b4aa40 Remove mips64 defines from darwin-specific file adds c895c98c3 Implement suspended thread register count for darwin adds 85478c5f4 [sanitizer] Define lsan-x86 in tests for both i386 and i686. adds 28c21763d [XRay][compiler-rt] Fix up CFI annotations and stack alignment adds 57da2deeb Move valid caller-pc checks out of platform-specific checks adds 02099e22a Implement function to get registers from suspended thread on darwin adds 8b205e90b Let ubsan search UBSAN_SYMBOLIZER_PATH for llvm-symbolizer adds 88ccfa16b Skip tests that use 'llvm_xray' for standalone builds. adds 7971e4d17 [sanitizer-coverage] remove run-time support for the deprecat [...] adds 70d9e16a1 Turn symbolization on for ASan unit test. adds 223b56caa Implement StopTheWorld for Darwin adds 60ceca631 Make sure to scan mmap'd memory regions for root pointers on OS X adds 42bd2ce3d Fixup style from r300760 adds 2409e866b [sanitizer-coverage] remove run-time support for -fsanitize-c [...] adds 104db270d [sanitizer-coverage] remove run-time support for -fsanitize-c [...] adds 00e8357e5 [sanitizer-coverage] remove more unused code new 13513d17c Updating branches/google/stable to r300801
The 1 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "adds" were already present in the repository and have only been added to this reference.
Summary of changes: CMakeLists.txt | 10 +- cmake/config-ix.cmake | 16 +- include/CMakeLists.txt | 32 +- include/sanitizer/coverage_interface.h | 29 -- include/sanitizer/tsan_interface.h | 121 +++++++ include/xray/xray_log_interface.h | 9 + include/xray/xray_records.h | 21 +- lib/asan/CMakeLists.txt | 4 - lib/asan/asan_allocator.cc | 20 +- lib/asan/asan_descriptions.cc | 3 + lib/asan/asan_flags.cc | 14 +- lib/asan/asan_flags.inc | 13 + lib/asan/asan_linux.cc | 2 +- lib/asan/asan_mapping.h | 1 - lib/asan/asan_report.cc | 12 +- lib/asan/asan_report.h | 1 + lib/asan/asan_thread.cc | 13 +- lib/asan/asan_thread.h | 2 +- lib/asan/tests/asan_mac_test_helpers.mm | 1 + lib/asan/tests/asan_test.cc | 11 +- lib/asan/tests/asan_test_main.cc | 19 +- lib/builtins/CMakeLists.txt | 16 +- lib/builtins/README.txt | 1 + lib/builtins/arm/udivsi3.S | 26 +- lib/builtins/clear_cache.c | 2 +- lib/builtins/cpu_model.c | 19 +- lib/builtins/divtc3.c | 22 +- lib/builtins/{ffsdi2.c => ffssi2.c} | 16 +- lib/builtins/int_lib.h | 6 +- lib/builtins/x86_64/floatdidf.c | 2 +- lib/builtins/x86_64/floatdisf.c | 2 +- lib/cfi/cfi.cc | 14 +- lib/dfsan/done_abilist.txt | 14 - lib/esan/esan_interceptors.cpp | 14 - lib/lsan/CMakeLists.txt | 6 +- lib/lsan/lsan.cc | 1 + lib/lsan/lsan.h | 7 + lib/lsan/lsan_allocator.cc | 71 ++--- lib/lsan/lsan_allocator.h | 49 +++ lib/lsan/lsan_common.cc | 158 ++++++++-- lib/lsan/lsan_common.h | 61 +++- lib/lsan/lsan_common_linux.cc | 84 +---- lib/lsan/lsan_common_mac.cc | 115 ++++++- lib/lsan/lsan_flags.inc | 2 +- lib/lsan/lsan_interceptors.cc | 59 ++-- lib/lsan/lsan_linux.cc | 33 ++ lib/lsan/lsan_malloc_mac.cc | 55 ++++ lib/lsan/lsan_thread.cc | 7 +- lib/lsan/lsan_thread.h | 2 +- lib/msan/msan_interceptors.cc | 8 - lib/msan/tests/CMakeLists.txt | 1 + lib/msan/tests/msan_test.cc | 320 ++++++++++++------- lib/profile/InstrProfData.inc | 67 +++- .../sanitizer_allocator_local_cache.h | 14 +- lib/sanitizer_common/sanitizer_common.cc | 18 +- lib/sanitizer_common/sanitizer_common.h | 25 +- .../sanitizer_common_interceptors.inc | 52 ++- lib/sanitizer_common/sanitizer_common_libcdep.cc | 5 +- .../sanitizer_coverage_interface.inc | 8 - lib/sanitizer_common/sanitizer_coverage_libcdep.cc | 351 --------------------- lib/sanitizer_common/sanitizer_flags.inc | 3 +- lib/sanitizer_common/sanitizer_internal_defs.h | 6 + lib/sanitizer_common/sanitizer_linux.cc | 143 +++++++-- lib/sanitizer_common/sanitizer_linux.h | 3 +- lib/sanitizer_common/sanitizer_linux_libcdep.cc | 20 +- lib/sanitizer_common/sanitizer_mac.cc | 5 +- lib/sanitizer_common/sanitizer_malloc_mac.inc | 3 + lib/sanitizer_common/sanitizer_platform.h | 6 + .../sanitizer_platform_interceptors.h | 3 + lib/sanitizer_common/sanitizer_posix.h | 3 + lib/sanitizer_common/sanitizer_posix_libcdep.cc | 4 + lib/sanitizer_common/sanitizer_procmaps_common.cc | 3 +- lib/sanitizer_common/sanitizer_procmaps_mac.cc | 3 +- lib/sanitizer_common/sanitizer_stoptheworld.h | 38 +-- .../sanitizer_stoptheworld_linux_libcdep.cc | 97 ++++-- lib/sanitizer_common/sanitizer_stoptheworld_mac.cc | 166 +++++++++- lib/sanitizer_common/sanitizer_thread_registry.cc | 7 +- lib/sanitizer_common/sanitizer_thread_registry.h | 8 +- lib/sanitizer_common/sanitizer_tls_get_addr.cc | 8 + lib/sanitizer_common/sanitizer_tls_get_addr.h | 2 + lib/sanitizer_common/sanitizer_win.cc | 5 +- lib/tsan/check_analyze.sh | 12 +- lib/tsan/go/tsan_go.cc | 8 +- lib/tsan/rtl/tsan.syms.extra | 10 + lib/tsan/rtl/tsan_debugging.cc | 4 +- lib/tsan/rtl/tsan_flags.cc | 4 - lib/tsan/rtl/tsan_flags.h | 1 - lib/tsan/rtl/tsan_interceptors.cc | 82 ++--- lib/tsan/rtl/tsan_interceptors_mac.cc | 6 + lib/tsan/rtl/tsan_interface.h | 5 +- lib/tsan/rtl/tsan_interface_ann.cc | 112 ++++++- lib/tsan/rtl/tsan_interface_atomic.cc | 8 +- lib/tsan/rtl/tsan_interface_java.cc | 14 +- lib/tsan/rtl/tsan_libdispatch_mac.cc | 18 +- lib/tsan/rtl/tsan_report.h | 2 +- lib/tsan/rtl/tsan_rtl.cc | 12 +- lib/tsan/rtl/tsan_rtl.h | 25 +- lib/tsan/rtl/tsan_rtl_mutex.cc | 118 ++++--- lib/tsan/rtl/tsan_rtl_thread.cc | 2 +- lib/tsan/rtl/tsan_stat.cc | 10 + lib/tsan/rtl/tsan_stat.h | 10 + lib/tsan/rtl/tsan_sync.cc | 5 +- lib/tsan/rtl/tsan_sync.h | 48 ++- lib/ubsan/ubsan_diag.cc | 6 +- lib/ubsan/ubsan_flags.cc | 1 + lib/ubsan/ubsan_init.cc | 6 +- lib/ubsan/ubsan_init.h | 3 + lib/xray/tests/CMakeLists.txt | 2 +- lib/xray/tests/unit/CMakeLists.txt | 2 - lib/xray/tests/unit/xray_fdr_log_printer_tool.cc | 330 ------------------- lib/xray/xray_buffer_queue.cc | 11 +- lib/xray/xray_buffer_queue.h | 19 +- lib/xray/xray_fdr_logging.cc | 128 +++++--- lib/xray/xray_fdr_logging.h | 8 - lib/xray/xray_fdr_logging_impl.h | 222 ++++++++++--- lib/xray/xray_flags.inc | 3 + lib/xray/xray_init.cc | 23 +- lib/xray/xray_inmemory_log.cc | 10 +- lib/xray/xray_interface.cc | 59 ++-- lib/xray/xray_log_interface.cc | 20 +- lib/xray/xray_trampoline_x86_64.S | 89 +++--- lib/xray/xray_utils.cc | 5 +- lib/xray/xray_x86_64.cc | 6 + test/asan/CMakeLists.txt | 2 +- .../Darwin/malloc_set_zone_name-mprotect.cc | 1 + test/asan/TestCases/Darwin/scribble.cc | 58 ++++ test/asan/TestCases/Darwin/suppressions-darwin.cc | 1 + test/asan/TestCases/Darwin/suppressions-sandbox.cc | 1 + test/asan/TestCases/Linux/asan_dlopen_test.cc | 2 + test/asan/TestCases/Linux/clang_gcc_abi.cc | 2 +- test/asan/TestCases/Linux/coverage-missing.cc | 22 +- test/asan/TestCases/Linux/memmem_test.cc | 4 +- .../asan/TestCases/Linux/swapcontext_annotation.cc | 9 +- test/asan/TestCases/Posix/closed-fds.cc | 3 +- .../asan/TestCases/Posix/coverage-caller-callee.cc | 75 ----- .../TestCases/Posix/coverage-maybe-open-file.cc | 3 +- test/asan/TestCases/Posix/coverage-sandboxing.cc | 6 +- test/asan/TestCases/Posix/coverage.cc | 12 +- test/asan/TestCases/Posix/deep_call_stack.cc | 5 +- test/asan/TestCases/Posix/fread_fwrite.cc | 34 ++ test/asan/TestCases/Posix/halt_on_error-torture.cc | 2 +- .../Posix/halt_on_error_suppress_equal_pcs.cc | 4 +- .../asan/TestCases/Posix/stack-use-after-return.cc | 4 +- .../asan/TestCases/Windows/dll_intercept_memchr.cc | 2 +- .../asan/TestCases/Windows/dll_intercept_memcpy.cc | 2 +- .../Windows/dll_intercept_memcpy_indirect.cc | 2 +- .../asan/TestCases/Windows/dll_intercept_memset.cc | 2 +- test/asan/TestCases/Windows/dll_noreturn.cc | 2 +- test/asan/TestCases/Windows/dll_poison_unpoison.cc | 2 +- .../Windows/dll_stack_use_after_return.cc | 2 +- .../Windows/dll_thread_stack_array_left_oob.cc | 2 +- test/asan/TestCases/Windows/intercept_memcpy.cc | 2 +- test/asan/TestCases/Windows/intercept_strlen.cc | 2 +- .../asan/TestCases/Windows/stack_array_left_oob.cc | 2 +- .../TestCases/Windows/stack_array_right_oob.cc | 2 +- .../TestCases/Windows/stack_use_after_return.cc | 2 +- .../TestCases/Windows/wrong_downcast_on_stack.cc | 2 +- .../coverage-caller-callee-total-count.cc | 42 --- test/asan/TestCases/coverage-levels.cc | 3 - test/asan/TestCases/coverage-reset.cc | 63 ---- test/asan/TestCases/coverage-tracing.cc | 51 --- test/asan/TestCases/invalid-pointer-pairs.cc | 6 +- test/asan/TestCases/realloc.cc | 21 ++ .../stack-buffer-overflow-with-position.cc | 24 +- test/asan/TestCases/strcasestr-1.c | 2 +- test/asan/TestCases/strcasestr-2.c | 2 +- test/asan/TestCases/strcspn-1.c | 2 +- test/asan/TestCases/strcspn-2.c | 2 +- test/asan/TestCases/strpbrk-1.c | 2 +- test/asan/TestCases/strpbrk-2.c | 2 +- test/asan/TestCases/strspn-1.c | 2 +- test/asan/TestCases/strspn-2.c | 2 +- test/asan/TestCases/strstr-1.c | 2 +- test/asan/TestCases/strstr-2.c | 2 +- test/asan/TestCases/strtok.c | 17 +- test/asan/TestCases/use-after-scope-inlined.cc | 8 +- test/asan/TestCases/use-after-scope.cc | 4 + test/asan/lit.cfg | 10 +- test/builtins/CMakeLists.txt | 27 ++ test/builtins/Unit/clear_cache_test.c | 21 +- test/builtins/Unit/comparedf2_test.c | 2 - test/builtins/Unit/comparesf2_test.c | 2 - test/builtins/Unit/divdc3_test.c | 2 + test/builtins/Unit/divsc3_test.c | 2 + test/builtins/Unit/divtc3_test.c | 2 + test/builtins/Unit/divxc3_test.c | 2 + test/builtins/Unit/enable_execute_stack_test.c | 32 +- test/builtins/Unit/eqdf2vfp_test.c | 2 - test/builtins/Unit/eqsf2vfp_test.c | 2 - test/builtins/Unit/ffssi2_test.c | 57 ++++ test/builtins/Unit/fixdfsivfp_test.c | 2 - test/builtins/Unit/fixsfsivfp_test.c | 2 - test/builtins/Unit/fixunssfsivfp_test.c | 2 - test/builtins/Unit/gedf2vfp_test.c | 2 - test/builtins/Unit/gesf2vfp_test.c | 2 - test/builtins/Unit/gtdf2vfp_test.c | 2 - test/builtins/Unit/gtsf2vfp_test.c | 2 - test/builtins/Unit/ledf2vfp_test.c | 2 - test/builtins/Unit/lesf2vfp_test.c | 2 - test/builtins/Unit/lit.cfg | 88 ++++++ test/builtins/Unit/lit.site.cfg.in | 12 + test/builtins/Unit/ltdf2vfp_test.c | 2 - test/builtins/Unit/ltsf2vfp_test.c | 2 - test/builtins/Unit/muldc3_test.c | 2 + test/builtins/Unit/mulsc3_test.c | 4 + test/builtins/Unit/mulxc3_test.c | 2 + test/builtins/Unit/nedf2vfp_test.c | 2 - test/builtins/Unit/nesf2vfp_test.c | 2 - test/builtins/Unit/trampoline_setup_test.c | 1 - test/builtins/Unit/truncdfhf2_test.c | 2 - test/builtins/Unit/truncdfsf2_test.c | 2 - test/builtins/Unit/truncsfhf2_test.c | 2 - test/builtins/Unit/unorddf2vfp_test.c | 2 - test/builtins/Unit/unordsf2vfp_test.c | 2 - test/cfi/CMakeLists.txt | 2 +- test/esan/TestCases/workingset-samples.cpp | 1 - test/lit.common.cfg | 15 +- test/lit.common.configured.in | 2 +- .../{ => Linux}/cleanup_in_tsd_destructor.c | 4 +- .../{ => Linux}/disabler_in_tsd_destructor.c | 2 +- test/lsan/TestCases/{ => Linux}/fork.cc | 0 test/lsan/TestCases/{ => Linux}/fork_threaded.cc | 0 test/lsan/TestCases/{ => Linux}/guard-page.c | 0 test/{asan => lsan}/TestCases/Linux/lit.local.cfg | 0 test/lsan/TestCases/{ => Linux}/use_tls_dynamic.cc | 7 +- .../use_tls_pthread_specific_dynamic.cc | 6 +- .../{ => Linux}/use_tls_pthread_specific_static.cc | 6 +- test/lsan/TestCases/{ => Linux}/use_tls_static.cc | 6 +- test/lsan/TestCases/disabler.c | 2 +- test/lsan/TestCases/disabler.cc | 2 +- test/lsan/TestCases/do_leak_check_override.cc | 4 +- test/lsan/TestCases/high_allocator_contention.cc | 2 +- test/lsan/TestCases/ignore_object.c | 2 +- test/lsan/TestCases/ignore_object_errors.cc | 2 +- test/lsan/TestCases/large_allocation_leak.cc | 4 +- test/lsan/TestCases/leak_check_at_exit.cc | 8 +- .../TestCases/leak_check_before_thread_started.cc | 2 +- test/lsan/TestCases/link_turned_off.cc | 4 +- test/lsan/TestCases/pointer_to_self.cc | 2 +- test/lsan/TestCases/print_suppressions.cc | 8 +- test/lsan/TestCases/recoverable_leak_check.cc | 4 +- test/lsan/TestCases/register_root_region.cc | 6 +- test/lsan/TestCases/stale_stack_leak.cc | 4 +- test/lsan/TestCases/suppressions_default.cc | 2 +- test/lsan/TestCases/suppressions_file.cc | 6 +- test/lsan/TestCases/swapcontext.cc | 8 +- test/lsan/TestCases/use_after_return.cc | 6 +- test/lsan/TestCases/use_globals_initialized.cc | 6 +- test/lsan/TestCases/use_globals_uninitialized.cc | 6 +- test/lsan/TestCases/use_poisoned_asan.cc | 4 +- test/lsan/TestCases/use_registers.cc | 11 +- test/lsan/TestCases/use_stacks.cc | 6 +- test/lsan/TestCases/use_stacks_threaded.cc | 6 +- test/lsan/TestCases/use_unaligned.cc | 4 +- test/lsan/lit.common.cfg | 24 +- test/msan/Linux/sendmsg.cc | 31 +- test/msan/fread_fwrite.cc | 34 ++ test/msan/ioctl.cc | 2 +- test/msan/ioctl_custom.cc | 2 +- test/sanitizer_common/TestCases/Linux/iconv_test.c | 28 ++ test/sanitizer_common/lit.common.cfg | 2 +- test/sanitizer_common/print_address.h | 4 +- test/tsan/Darwin/debug_external.cc | 5 + test/tsan/Darwin/gcd-after-null.mm | 23 ++ test/tsan/Darwin/main_tid.mm | 4 +- test/tsan/Darwin/xpc-cancel.mm | 37 +++ test/tsan/custom_mutex.h | 91 ++++++ test/tsan/custom_mutex0.cc | 31 ++ test/tsan/custom_mutex1.cc | 39 +++ test/tsan/custom_mutex2.cc | 34 ++ test/tsan/debug_alloc_stack.cc | 6 +- test/tsan/debugging.cc | 5 +- test/tsan/fd_socket_connect_norace.cc | 45 ++- test/tsan/fd_socket_norace.cc | 45 ++- test/ubsan/TestCases/Integer/summary.cpp | 4 +- test/xray/TestCases/Linux/fdr-mode.cc | 90 ++++++ test/xray/TestCases/Linux/fdr-thread-order.cc | 40 +++ test/xray/lit.cfg | 5 + test/xray/lit.site.cfg.in | 4 + unittests/lit.common.unit.cfg | 12 +- unittests/lit_unittest_cfg_utils.py | 4 + 281 files changed, 3492 insertions(+), 2268 deletions(-) create mode 100644 include/sanitizer/tsan_interface.h copy lib/builtins/{ffsdi2.c => ffssi2.c} (61%) create mode 100644 lib/lsan/lsan_linux.cc create mode 100644 lib/lsan/lsan_malloc_mac.cc delete mode 100644 lib/xray/tests/unit/xray_fdr_log_printer_tool.cc create mode 100644 test/asan/TestCases/Darwin/scribble.cc delete mode 100644 test/asan/TestCases/Posix/coverage-caller-callee.cc create mode 100644 test/asan/TestCases/Posix/fread_fwrite.cc delete mode 100644 test/asan/TestCases/coverage-caller-callee-total-count.cc delete mode 100644 test/asan/TestCases/coverage-reset.cc delete mode 100644 test/asan/TestCases/coverage-tracing.cc create mode 100644 test/asan/TestCases/realloc.cc create mode 100644 test/builtins/Unit/ffssi2_test.c create mode 100644 test/builtins/Unit/lit.cfg create mode 100644 test/builtins/Unit/lit.site.cfg.in rename test/lsan/TestCases/{ => Linux}/cleanup_in_tsd_destructor.c (90%) rename test/lsan/TestCases/{ => Linux}/disabler_in_tsd_destructor.c (95%) rename test/lsan/TestCases/{ => Linux}/fork.cc (100%) rename test/lsan/TestCases/{ => Linux}/fork_threaded.cc (100%) rename test/lsan/TestCases/{ => Linux}/guard-page.c (100%) copy test/{asan => lsan}/TestCases/Linux/lit.local.cfg (100%) rename test/lsan/TestCases/{ => Linux}/use_tls_dynamic.cc (88%) rename test/lsan/TestCases/{ => Linux}/use_tls_pthread_specific_dynamic.cc (86%) rename test/lsan/TestCases/{ => Linux}/use_tls_pthread_specific_static.cc (83%) rename test/lsan/TestCases/{ => Linux}/use_tls_static.cc (76%) create mode 100644 test/msan/fread_fwrite.cc create mode 100644 test/sanitizer_common/TestCases/Linux/iconv_test.c create mode 100644 test/tsan/Darwin/gcd-after-null.mm create mode 100644 test/tsan/Darwin/xpc-cancel.mm create mode 100644 test/tsan/custom_mutex.h create mode 100644 test/tsan/custom_mutex0.cc create mode 100644 test/tsan/custom_mutex1.cc create mode 100644 test/tsan/custom_mutex2.cc create mode 100644 test/xray/TestCases/Linux/fdr-mode.cc create mode 100644 test/xray/TestCases/Linux/fdr-thread-order.cc create mode 100644 unittests/lit_unittest_cfg_utils.py