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 cfbf51a5d Updating branches/google/stable to r302012 adds da99eb266 Speculative fix for WinASan after r301994 adds f5be24d91 Revert my bad winasan coverage test fix and apply one that ac [...] adds 4e8f70074 [tsan] Detect races on modifying accesses in Swift code adds 72830dd7f [asan] print the 'unexpected format specifier in printf inter [...] adds be1906704 [XRay][compiler-rt] Support patching/unpatching specific functions adds c5b0187af [XRay][compiler-rt][NFC] Update comments to doxygen format; g [...] adds 6bae4bb55 [compiler-rt][mips] Add support for quad precision builtins f [...] adds daf4d1dba [ASAN] Add interceptor for __longjmp_chk adds b6657afbf [XRay][compiler-rt] Add function id utilities for XRay adds e498e2e10 [ubsan] Fix error summary message for ObjC BOOL invalid loads adds f8e7a418d [XRay][compiler-rt] Remove dependency on FileCheck from funct [...] adds 4ff00356c [ubsan] Implement __sanitizer_print_stack_trace for standalon [...] adds b5fcaaae0 [powerpc] Mark coverage-sample.cc as XFAIL on powerpc64le adds 5c7827db1 [ubsan]: temporarily disable print_stack_trace.cc test adds 9c7500287 CFI: Add a blacklist entry for std::_Sp_counted_ptr_inplace:: [...] adds acd49d83b [scudo] Add Android support adds 9ae2a099f [sanitizer-coverage] implement -fsanitize-coverage=no-prune,. [...] adds b9bbfab71 [builtins] Fixup emulated TLS for mingw. adds 874321695 [XRay][compiler-rt] XFAIL on ppc adds 9e6ab92e4 [powerpc] Remove XFAIL for sanitizer_coverage_no_prune.cc on [...] adds e12d24d3e Avoid unnecessary calls to vm_region_recurse adds b5a980955 [scudo] CRC32 optimizations adds 5a934669a Allow compiler-rt to find lld and libc++ parallel to LLVM, as [...] adds 91b57908e [compiler-rt][mips] Fix a test for mips. adds 6e815d2ef [SystemZ] Fix failures after D32542 adds aac85b1c9 [SystemZ] Remove XFAIL on sanitizer_coverage_no_prune.cc adds dc29e454d [mips] Remove XFAIL from sanitizer_coverage_no_prune.cc adds 92760a253 [mips] XFAIL dfsan's custom.cc test on mips64. adds 24981c0ce [Safestack] Fix the canary test to catch the libc's message r [...] adds 717ebcab7 [mips] XFAIL getpwnam_r_invalid_user.cc test adds 9fc1f73b6 [msan] Fix getmntent{_r} for empty /etc/fstab adds 45eb470c3 Add dyld to sanitizer procmaps on darwin adds 575a392a3 [cmake] Disable building enable_execute_stack.c for baremetal [...] adds ae4021dc2 Disable static caching of dyld header on Go sanitizers adds 1846d403b [XRay] Fix the test func-id-utils.cc on PPC. adds dedf34d82 [XRay] Fix XRay PPC return value bug. adds d1423875f Revert "Disable static caching of dyld header on Go sanitizers" adds 7ccb9077f Revert "Add dyld to sanitizer procmaps on darwin" adds d41423850 [asan] Recommit of r301904: Add strndup/__strndup interceptors adds 236529c6c mips] XFAIL wcsncpy.cc test. adds 350aee2f9 [MSAN] test failed randomly on ARM when XFAILED for MIPS adds a4934b161 [msan] add a regression test for PR32842 adds 2536fe88a [asan] Test 'strndup_oob_test.cc' added in r302781 fails on c [...] adds e91e7587b Renumber test line number expectations after r302783. adds 39596416f [asan] Test 'strndup_oob_test.cc' added in r302781 fails on t [...] adds a5c91c22f [scudo] Use our own combined allocator adds f9947480f [XRay][compiler-rt] Runtime changes to support custom event logging adds 017000bfe [XRay][compiler-rt] Fix misspeling of XRaySledEntry adds 5f20748c2 [XRay][compiler-rt] Remove unused variable after refactoring adds 7fdfa4b8d [XRay][compiler-rt] Only run custom event logging in x86_64-linux adds 929d2ccbf [msan] Remove a failing test from MemorySanitizer.ICmpRelational adds bb2563f2a Account for stack redzone when computing sp on darwin adds 508f03832 Add dyld to sanitizer procmaps on darwin adds 47c47778c Enable lsan test suite on Darwin x86_64 builds adds 2ea389217 Disable two failing darwin lsan tests adds 088c87e0f [asan/win] Re-enable Win64 asan tests on Win8+ adds ec190012e Disable two failing darwin lsan tests adds d6fba16de [ubsan] Enable debug info in test binaries adds e380523e9 [XRay] Fix build with libc++ (NFC). adds 9d786d9ab [sanitizer] Change SizeClassAllocator32 to accept just one template adds 0479fb714 [ubsan] Don't enable debug info in all tests adds 80a73416a builtins: fix filtering aliased targets adds 96eed06b6 [builtins] Fix a check from __GNU__ to __GNUC__ for disabling [...] adds 4ba403634 [lsan] Report the missing linker only when the linker is actu [...] adds 0bbb55700 Fix executable stack directive on Linux. adds 17a5de7a0 [asan] make asan under sandboxes more robust adds 1f7b0d2bc [tsan] Update tsan test for r303084 adds 5c1b8654b builtins: use reserved spelling (NFC) adds 99e2e66da builtins: expand out the AEABI function stubs adds c74078b0a builtins: add missing includes adds e60a00c0d builtins: one more case of a missing header adds 016b0e306 builtins: fix guard __AEABI__ -> __ARM_EABI__ adds 38cc92468 Implement tls scanning for darwin LSan adds ea3b9d9e8 Revert "Implement tls scanning for darwin LSan" adds 63fe54047 Include setjmp.h unconditionally in asan_test_utils.h adds 065bca6ff Generate ubsan shared libraries. adds 3cd2b8fb9 [Ubsan]Remove unused link libraries. adds e1cd17059 [XRay] Fix __xray_function_address on PPC reguarding local en [...] adds 8fa13187f temporary disable stndup interceptor, due to r302781 being buggy adds db37b96cb Fixup r303324 - temporary disable stndup interceptor, due to [...] adds 17219d802 Revert r302781 and subsequent attempts to disable part of it. adds f658c0403 [compiler-rt][cmake] Build unit tests conditionally with _FIL [...] adds 0d7dff404 [scudo] lower quarantine default sizes adds a0acb1046 [compiler-rt] Replace ifs with switch statement in IsHandledD [...] adds 53f2f17bf Use write instead of read permissions to check for global sec [...] adds c36f54d7d [compiler-rt] Add negative test for boolean flags. adds 6ed02973a [compiler-rt] Switch handle_<signal> flags from bool to enum. adds 4991f9f17 [compiler-rt] Change default of allow_user_segv_handler to true adds 0793ce266 Revert "[compiler-rt] Change default of allow_user_segv_handl [...] adds 06f1c090c [XRay][compiler-rt] Add __xray_remove_customevent_handler(...) adds 25efabe94 Disable flaky ASan tests temporarily on darwin adds 3a807e357 [asan] Remove allow_user_segv_handler on Windows. adds 397099e7e [compiler-rt] Change default of allow_user_segv_handler to true adds b3d9ce6c0 [sanitizer] [SystemZ] Update CVE-2016-2143 check for Ubuntu 16.04 adds 3e7872b74 Allow armv{7,7s,7k,7m,7em} builds adds 03968223b Revert "[compiler-rt] Change default of allow_user_segv_handl [...] adds 303455b44 Fix negate-overflow.cpp test on Windows after r303440 adds 0ee4ae2fe Allow builds to set COMPILER_RT_OS_DIR differently from CMAKE [...] adds 6b09b9e2f [compiler-rt] Change default of allow_user_segv_handler to true adds 370ca3548 [PowerPC] Fix test case sem_init_glibc.cc for powerpc64be adds a568c2949 [powerpc] deactivate flakey test halt_on_error-torture.cc on [...] adds 41e921aae [cmake] Disable building emutls.c for baremetal targets. adds cb4210377 Add generic __bswap[ds]i2 implementations adds ff9d73170 [sanitizer] Pair atomic acquire with release in BlockingMutex [...] adds a6bbfb5d9 [sanitizer] Change the 32-bit Primary AllocateRegion to reduc [...] adds b9bf72bbd [sanitizer] Revert rL303879 as it breaks Windows adds fb4eba778 Disable two more flaky ASan wait* tests temporarily on Darwin adds 5bde87f9d Don't require ThreadState to be contained within tls on all p [...] adds 8c920732a Implement tls scanning for darwin LSan adds 2319b5f3c [compiler-rt] Make print_module_map description consistent wi [...] adds 963904ec1 Fix typo in tls patch adds 881a838f9 [asan] relax sanbox_read_proc_self_maps_test to pass even if [...] adds 718173908 [compiler-rt] Replace allow_user_segv_handler=0 with kHandleS [...] adds 9233cd47d [asan] Enable back some ASan tests disabled on PowerPC. adds 29e1a9ca0 [scudo] Check the return values of the pthread_* functions adds 0338f3e77 [LSAN-ARM] Marking new test unsupported on ARMHF due to bot failures adds f9198fc26 [compiler-rt] Don't reset non-default user handler if allow_u [...] adds 679ac907b [asan] Enable back halt_on_error-torture.cc disabled on PowerPC. adds 97fc005f6 [sanitizer] Add "isapla" to symbolizer's global symbols whitelist. adds e1a8ef981 [sanitizer] Avoid possible deadlock in child process after fork adds e1dfaf677 [sanitizer] Trying to fix MAC buildbots after r304285 adds 9b2c60be6 [sanitizer-coverage] remove stale code (old coverage); compil [...] adds 27c827787 [asan] Add strndup/__strndup interceptors. adds bfeededd7 Bug 33221 [UBSAN] segfault with -fsanitize=undefined adds 0c1676c00 Tighten up test to address bot failure. NFC. adds efd9e1ef2 [ubsan] Runtime support for pointer overflow checking adds cb4adfe6e [sanitizer-coverage] nuke more stale code adds cdad12420 [sanitizer-coverage] nuke more stale code adds c760b2884 [sanitizer-coverage] nuke more stale code adds 66ccf0079 [sanitizer-coverage] nuke more stale code adds 8c2855d23 [asan] fix one more case where stack-use-after-return is not [...] adds b88c71e5c [sanitizer-coverage] test for -fsanitize-coverage=inline-8bit [...] adds e82d511eb [LSan] Detect dynamic loader by its base address. adds 677ecacd2 Adjust sanitizers for FreeBSD 64-bit inode update adds b32da432b Mark sancov test as unsupported on Darwin adds a30542037 Mark the atos-symbolizer test as unsupported on i386-darwin adds 9c790e8ab Revert "[sanitizer-coverage] test for -fsanitize-coverage=inl [...] adds b058fd625 CMake: don't try to use lld if we're not building it. adds 9b257cb61 [asan] Use asan exitcode=0 option to always succeed a test run. adds d20e4ba84 Revert r304285, r304297. adds b36ffc36d [ASan] A speculative attempt to fix a flaky test on ppc64be. adds 35f212efc [tsan]: Fix GNU version of strerror_r interceptor adds 439e42a01 [sanitizer] Fix symbolizer build after r304864. adds 63ddb4b32 Fix tsan test for Darwin. NFCI. adds eb68deea3 Revert "Fix tsan test for Darwin. NFCI." adds 4906f471e Mark the tsan strerror_r test as unsupported on Darwin adds f06499282 [sanitizer-coverage] one more flavor of coverage: -fsanitize- [...] adds 5f551f74f [asan] Fix ASan internal failure in AllocateFromLocalPool adds 09cdb957f Minor clean up of profile rt tests adds a2b9a14ce Mark a sancov test as unsupported on x86_64h-darwin adds 079b76577 [ubsan] Detect invalid unsigned pointer index expression (com [...] adds 247f91454 tsan: fix pedantic warnings adds 81825ab6e tsan: fix reading of mutex flags adds 5cf6036d4 [sanitize] Remove stack size limits from secondary threads. adds 2716b49e6 [ASan] Move rss_limit_is_exceeded_ flag to ASan. adds fccfd4523 [sanitizer] MmapAlignedOrDie changes to reduce fragmentation adds 6cd1865e1 [sanitizer] Reverting D34152 adds 1d3673a97 [asan] Return allow_user_segv_handler=0 to fix compatibility issues. adds 435e37653 [asan] Fix typo in doc string. adds 6f8de12f0 [ubsan] Fix a faulty memory accessibility check adds f6b2a077d [cfi] Enable icall tests with thinlto. adds ca24bb081 Add test for logging the implicit "this" argument for C++ mem [...] adds 03a96b718 [Sanitizers] Secondary allocator respects allocator_may_retur [...] adds f91b4c629 [Sanitizers] Fix allocator OOM test on Windows. adds b0ee5a939 [WinASan] Fix hotpatching new Win 10 build 1703 x64 strnlen prologue adds 802ac1eb4 [Sanitizer] Remove CombinedAllocator::Allocate's 'cleared' parameter adds f0d7258f4 Call cmake_minimum_required at the top of CMakeLists.txt adds 028649d48 [XRay][compiler-rt][NFC] Add a name for argument to __xray_se [...] adds 366176ff1 [XRay][compiler-rt][NFC] Add a test for both arg1 and arg0 ha [...] adds 80ed4944b [scudo] Enabling MIPS support for Scudo adds a3d787dff Add lsan interceptors for libdispatch functions on darwin adds ebb8e45a1 Revert "Add lsan interceptors for libdispatch functions on darwin" adds e9f87b734 Add lsan interceptors for libdispatch functions on darwin adds 9cbbe014c [asan] Fix android setup script to overwrite the symlink. adds 4f2195f82 [ASan] Disable allocator_oom_test.cc on s390 adds c13d2469d [Sanitizers] Move cached allocator_may_return_null flag to sa [...] new 5dc8ce499 Updating branches/google/stable to r305862
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 | 21 +- cmake/base-config-ix.cmake | 4 +- cmake/builtin-config-ix.cmake | 2 +- cmake/config-ix.cmake | 4 +- include/sanitizer/coverage_interface.h | 9 - include/sanitizer/tsan_interface.h | 1 + include/xray/xray_interface.h | 107 ++-- lib/asan/asan_activation.cc | 3 - lib/asan/asan_allocator.cc | 40 +- lib/asan/asan_allocator.h | 15 +- lib/asan/asan_flags.cc | 4 + lib/asan/asan_interceptors.cc | 29 +- lib/asan/asan_interceptors.h | 6 + lib/asan/asan_malloc_linux.cc | 22 +- lib/asan/asan_thread.cc | 12 +- lib/asan/asan_win.cc | 2 +- lib/asan/scripts/asan_device_setup | 11 +- lib/asan/tests/asan_interface_test.cc | 4 - lib/asan/tests/asan_noinst_test.cc | 9 - lib/asan/tests/asan_str_test.cc | 27 + lib/asan/tests/asan_test.cc | 21 +- lib/asan/tests/asan_test_utils.h | 2 +- lib/asan/weak_symbols.txt | 9 + lib/builtins/CMakeLists.txt | 70 ++- lib/builtins/README.txt | 4 +- lib/builtins/adddf3.c | 9 +- lib/builtins/addsf3.c | 9 +- lib/builtins/arm/aeabi_cdcmp.S | 11 + lib/builtins/arm/aeabi_cdcmpeq_check_nan.c | 4 +- lib/builtins/arm/aeabi_cfcmp.S | 11 + lib/builtins/arm/aeabi_cfcmpeq_check_nan.c | 4 +- lib/builtins/arm/aeabi_div0.c | 6 +- lib/builtins/arm/aeabi_drsub.c | 4 +- lib/builtins/arm/aeabi_frsub.c | 4 +- lib/builtins/arm/eqdf2vfp.S | 1 + lib/builtins/arm/eqsf2vfp.S | 1 + lib/builtins/arm/gedf2vfp.S | 1 + lib/builtins/arm/gesf2vfp.S | 1 + lib/builtins/arm/gtdf2vfp.S | 1 + lib/builtins/arm/gtsf2vfp.S | 1 + lib/builtins/arm/ledf2vfp.S | 1 + lib/builtins/arm/lesf2vfp.S | 1 + lib/builtins/arm/ltdf2vfp.S | 1 + lib/builtins/arm/ltsf2vfp.S | 1 + lib/builtins/arm/nedf2vfp.S | 1 + lib/builtins/arm/nesf2vfp.S | 1 + lib/builtins/arm/unorddf2vfp.S | 1 + lib/builtins/arm/unordsf2vfp.S | 1 + lib/builtins/ashldi3.c | 9 +- lib/builtins/ashrdi3.c | 9 +- lib/builtins/assembly.h | 5 +- lib/builtins/bswapdi2.c | 27 + lib/builtins/bswapsi2.c | 23 + lib/builtins/comparedf2.c | 8 +- lib/builtins/comparesf2.c | 9 +- lib/builtins/divdf3.c | 9 +- lib/builtins/divsf3.c | 9 +- lib/builtins/divsi3.c | 9 +- lib/builtins/emutls.c | 2 +- lib/builtins/extendhfsf2.c | 9 +- lib/builtins/extendsfdf2.c | 9 +- lib/builtins/fixdfdi.c | 13 +- lib/builtins/fixdfsi.c | 9 +- lib/builtins/fixsfdi.c | 14 +- lib/builtins/fixsfsi.c | 9 +- lib/builtins/fixunsdfdi.c | 14 +- lib/builtins/fixunsdfsi.c | 9 +- lib/builtins/fixunssfdi.c | 14 +- lib/builtins/fixunssfsi.c | 9 +- lib/builtins/floatdidf.c | 9 +- lib/builtins/floatdisf.c | 9 +- lib/builtins/floatsidf.c | 9 +- lib/builtins/floatsisf.c | 9 +- lib/builtins/floatundidf.c | 9 +- lib/builtins/floatundisf.c | 9 +- lib/builtins/floatunsidf.c | 9 +- lib/builtins/floatunsisf.c | 9 +- lib/builtins/int_lib.h | 7 +- lib/builtins/int_types.h | 4 +- lib/builtins/lshrdi3.c | 9 +- lib/builtins/muldf3.c | 9 +- lib/builtins/muldi3.c | 9 +- lib/builtins/mulsf3.c | 9 +- lib/builtins/negdf2.c | 9 +- lib/builtins/negsf2.c | 9 +- lib/builtins/subdf3.c | 8 +- lib/builtins/subsf3.c | 8 +- lib/builtins/truncdfhf2.c | 9 +- lib/builtins/truncdfsf2.c | 9 +- lib/builtins/truncsfhf2.c | 9 +- lib/builtins/udivsi3.c | 9 +- lib/cfi/cfi_blacklist.txt | 5 + lib/dfsan/done_abilist.txt | 2 - lib/esan/esan_interceptors.cpp | 2 + lib/interception/interception_win.cc | 7 +- lib/interception/tests/interception_win_test.cc | 11 + lib/lsan/CMakeLists.txt | 1 + lib/lsan/lsan.h | 2 + lib/lsan/lsan_allocator.cc | 4 +- lib/lsan/lsan_allocator.h | 16 +- lib/lsan/lsan_common.cc | 28 +- lib/lsan/lsan_common_linux.cc | 6 +- lib/lsan/lsan_common_mac.cc | 18 +- lib/lsan/lsan_flags.inc | 2 +- lib/lsan/lsan_mac.cc | 192 ++++++ lib/lsan/lsan_thread.cc | 4 +- lib/lsan/lsan_thread.h | 2 +- lib/msan/msan_allocator.cc | 44 +- lib/msan/msan_interceptors.cc | 36 +- lib/msan/tests/msan_test.cc | 67 ++- lib/sanitizer_common/CMakeLists.txt | 2 - lib/sanitizer_common/sanitizer_allocator.cc | 51 +- lib/sanitizer_common/sanitizer_allocator.h | 26 +- .../sanitizer_allocator_combined.h | 68 +-- .../sanitizer_allocator_internal.h | 25 +- .../sanitizer_allocator_primary32.h | 29 +- .../sanitizer_allocator_secondary.h | 38 +- lib/sanitizer_common/sanitizer_atomic_clang.h | 22 +- .../sanitizer_atomic_clang_other.h | 65 ++ lib/sanitizer_common/sanitizer_common.cc | 4 +- lib/sanitizer_common/sanitizer_common.h | 19 +- .../sanitizer_common_interceptors.inc | 47 +- .../sanitizer_common_interceptors_format.inc | 12 +- .../sanitizer_coverage_interface.inc | 6 - lib/sanitizer_common/sanitizer_coverage_libcdep.cc | 662 --------------------- .../sanitizer_coverage_libcdep_new.cc | 29 +- .../sanitizer_coverage_mapping_libcdep.cc | 122 ---- lib/sanitizer_common/sanitizer_flag_parser.h | 29 +- lib/sanitizer_common/sanitizer_flags.h | 6 + lib/sanitizer_common/sanitizer_flags.inc | 48 +- lib/sanitizer_common/sanitizer_linux.cc | 45 +- lib/sanitizer_common/sanitizer_linux_libcdep.cc | 5 +- lib/sanitizer_common/sanitizer_linux_s390.cc | 7 + lib/sanitizer_common/sanitizer_mac.cc | 60 +- .../sanitizer_platform_interceptors.h | 14 + .../sanitizer_platform_limits_posix.h | 8 + lib/sanitizer_common/sanitizer_posix.cc | 16 + lib/sanitizer_common/sanitizer_posix_libcdep.cc | 26 +- lib/sanitizer_common/sanitizer_procmaps.h | 1 + lib/sanitizer_common/sanitizer_procmaps_common.cc | 2 +- lib/sanitizer_common/sanitizer_procmaps_linux.cc | 4 +- lib/sanitizer_common/sanitizer_procmaps_mac.cc | 89 ++- lib/sanitizer_common/sanitizer_stoptheworld_mac.cc | 4 + .../sanitizer_symbolizer_posix_libcdep.cc | 2 +- lib/sanitizer_common/sanitizer_win.cc | 19 +- lib/sanitizer_common/scripts/check_lint.sh | 2 +- lib/sanitizer_common/scripts/sancov.py | 2 +- .../symbolizer/scripts/build_symbolizer.sh | 3 +- .../symbolizer/scripts/global_symbols.txt | 1 + lib/sanitizer_common/tests/CMakeLists.txt | 9 + .../tests/sanitizer_allocator_test.cc | 59 +- lib/sanitizer_common/tests/sanitizer_flags_test.cc | 38 +- lib/sanitizer_common/tests/sanitizer_test_utils.h | 6 + lib/scudo/CMakeLists.txt | 1 + lib/scudo/scudo_allocator.cpp | 152 ++--- lib/scudo/scudo_allocator.h | 31 +- lib/scudo/scudo_allocator_combined.h | 70 +++ lib/scudo/scudo_allocator_secondary.h | 109 +--- lib/scudo/scudo_crc32.cpp | 19 +- lib/scudo/{scudo_utils.h => scudo_crc32.h} | 64 +- lib/scudo/scudo_flags.cpp | 4 +- lib/scudo/scudo_tls.h | 15 +- lib/scudo/scudo_tls_android.cpp | 95 +++ lib/scudo/scudo_tls_android.inc | 44 ++ lib/scudo/scudo_tls_context_android.inc | 54 ++ lib/scudo/scudo_tls_context_linux.inc | 29 + lib/scudo/scudo_tls_linux.cpp | 26 +- .../{scudo_tls_linux.h => scudo_tls_linux.inc} | 16 +- lib/scudo/scudo_utils.h | 59 -- lib/tsan/check_analyze.sh | 2 +- lib/tsan/rtl/tsan_defs.h | 9 + lib/tsan/rtl/tsan_external.cc | 47 +- lib/tsan/rtl/tsan_interface.h | 2 + lib/tsan/rtl/tsan_mman.cc | 9 +- lib/tsan/rtl/tsan_platform.h | 1 + lib/tsan/rtl/tsan_platform_linux.cc | 14 + lib/tsan/rtl/tsan_platform_mac.cc | 41 +- lib/tsan/rtl/tsan_report.cc | 23 +- lib/tsan/rtl/tsan_report.h | 1 + lib/tsan/rtl/tsan_rtl.h | 28 +- lib/tsan/rtl/tsan_rtl_report.cc | 17 +- lib/tsan/rtl/tsan_rtl_thread.cc | 15 +- lib/tsan/rtl/tsan_sync.h | 2 +- lib/ubsan/CMakeLists.txt | 26 + lib/ubsan/ubsan_checks.inc | 1 + lib/ubsan/ubsan_diag_standalone.cc | 37 ++ lib/ubsan/ubsan_handlers.cc | 40 +- lib/ubsan/ubsan_handlers.h | 7 + lib/ubsan/ubsan_interface.inc | 2 + lib/ubsan/ubsan_type_hash_itanium.cc | 4 +- lib/xray/xray_AArch64.cc | 13 +- lib/xray/xray_arm.cc | 12 +- lib/xray/xray_fdr_log_records.h | 1 + lib/xray/xray_fdr_logging.cc | 150 +++-- lib/xray/xray_fdr_logging_impl.h | 237 +++++--- lib/xray/xray_init.cc | 4 + lib/xray/xray_interface.cc | 178 ++++-- lib/xray/xray_interface_internal.h | 9 + lib/xray/xray_mips.cc | 9 +- lib/xray/xray_mips64.cc | 8 +- lib/xray/xray_powerpc64.cc | 6 + lib/xray/xray_trampoline_powerpc64_asm.S | 90 ++- lib/xray/xray_trampoline_x86_64.S | 46 +- lib/xray/xray_x86_64.cc | 36 ++ test/asan/CMakeLists.txt | 17 +- test/asan/TestCases/Android/coverage-android.cc | 147 ----- test/asan/TestCases/Darwin/atos-symbolizer.cc | 2 +- test/asan/TestCases/Linux/allocator_oom_test.cc | 85 +++ test/asan/TestCases/Linux/asan_preload_test-3.cc | 33 + test/asan/TestCases/Linux/coverage-missing.cc | 6 +- test/asan/TestCases/Linux/longjmp_chk.c | 51 ++ test/asan/TestCases/Linux/preinstalled_signal.cc | 105 ++++ .../Linux/sanbox_read_proc_self_maps_test.cc | 28 + test/asan/TestCases/Linux/uar_signals.cc | 33 +- test/asan/TestCases/Posix/allow_user_segv.cc | 61 +- test/asan/TestCases/Posix/asan-sigbus.cpp | 2 +- test/asan/TestCases/Posix/coverage-fork.cc | 10 +- .../TestCases/Posix/coverage-maybe-open-file.cc | 34 -- .../TestCases/Posix/coverage-module-unloaded.cc | 20 +- test/asan/TestCases/Posix/coverage-sandboxing.cc | 87 --- test/asan/TestCases/Posix/coverage.cc | 19 +- .../TestCases/Posix/current_allocated_bytes.cc | 3 - test/asan/TestCases/Posix/halt_on_error-torture.cc | 6 +- .../strndup_oob_test.cc} | 20 +- test/asan/TestCases/Posix/strndup_oob_test2.cc | 22 + test/asan/TestCases/Posix/wait.cc | 1 + test/asan/TestCases/Posix/wait3.cc | 2 +- test/asan/TestCases/Posix/wait4.cc | 1 + test/asan/TestCases/Posix/waitid.cc | 2 + test/asan/TestCases/Windows/coverage-dll-stdio.cc | 4 +- test/asan/TestCases/Windows/oom.cc | 2 +- test/asan/TestCases/coverage-and-lsan.cc | 4 +- test/asan/TestCases/coverage-order-pcs.cc | 57 -- test/asan/lit.cfg | 9 +- test/builtins/Unit/bswapdi2_test.c | 37 +- test/builtins/Unit/bswapsi2_test.c | 37 +- test/builtins/Unit/divxc3_test.c | 1 + test/builtins/Unit/fixunstfti_test.c | 2 + test/builtins/Unit/fixunsxfti_test.c | 2 + test/builtins/Unit/fixxfti_test.c | 2 + test/builtins/Unit/floattixf_test.c | 2 + test/builtins/Unit/floatuntixf_test.c | 2 + test/builtins/Unit/mulxc3_test.c | 1 + test/cfi/cross-dso/icall/lit.local.cfg | 3 - test/cfi/cross-dso/stats.cpp | 1 - test/cfi/icall/lit.local.cfg | 3 - test/cfi/icall/wrong-signature-mixed-lto.c | 41 ++ test/dfsan/custom.cc | 2 +- test/lsan/TestCases/Darwin/dispatch.mm | 59 ++ test/{asan => lsan}/TestCases/Darwin/lit.local.cfg | 0 test/lsan/TestCases/link_turned_off.cc | 2 + test/lsan/TestCases/many_tls_keys.cc | 97 +++ test/lsan/TestCases/recoverable_leak_check.cc | 2 + test/lsan/lit.common.cfg | 7 +- test/msan/Linux/strerror_r.cc | 18 + test/msan/chained_origin_memcpy.cc | 2 +- test/msan/pr32842.c | 22 + test/msan/strndup.cc | 28 + test/msan/wcsncpy.cc | 8 +- test/profile/Linux/instrprof-alloc.test | 4 +- test/profile/Linux/instrprof-value-prof-warn.test | 2 +- test/safestack/canary.c | 3 +- .../TestCases/Linux/getpwnam_r_invalid_user.cc | 2 + .../TestCases/Linux/sem_init_glibc.cc | 6 +- .../TestCases/Linux/signal_segv_handler.cc | 2 +- .../Linux/unexpected_format_specifier_test.cc | 12 + .../sanitizer_coverage_inline8bit_counter.cc | 23 + .../TestCases/sanitizer_coverage_no_prune.cc | 15 + .../TestCases/sanitizer_coverage_symbolize.cc | 2 +- .../sanitizer_coverage_trace_pc_guard-dso.cc | 6 +- .../TestCases/sanitizer_coverage_trace_pc_guard.cc | 2 +- test/scudo/random_shuffle.cpp | 2 +- test/tsan/Darwin/external-dups.cc | 4 +- test/tsan/Darwin/external-swift.cc | 92 +++ test/tsan/Darwin/external.cc | 14 +- test/tsan/custom_mutex.h | 6 +- test/tsan/custom_mutex0.cc | 2 +- test/tsan/custom_mutex1.cc | 2 +- test/tsan/custom_mutex2.cc | 2 +- test/tsan/custom_mutex3.cc | 46 ++ test/tsan/strerror_r.cc | 29 + test/ubsan/TestCases/Integer/negate-overflow.cpp | 6 +- .../TestCases/Misc/Linux/print_stack_trace.cc | 23 + test/ubsan/TestCases/Misc/{bool.cpp => bool.m} | 9 +- test/ubsan/TestCases/Misc/missing_return.cpp | 2 +- test/ubsan/TestCases/Pointer/index-overflow.cpp | 19 + .../Pointer/unsigned-index-expression.cpp | 13 + test/ubsan/TestCases/TypeCheck/Linux/PR33221.cpp | 50 ++ .../TestCases/TypeCheck}/Linux/lit.local.cfg | 0 test/ubsan/TestCases/TypeCheck/PR33221.cpp | 28 + test/ubsan/TestCases/TypeCheck/misaligned.cpp | 6 +- test/ubsan/lit.common.cfg | 4 + test/xray/TestCases/Linux/arg1-arg0-logging.cc | 39 ++ .../TestCases/Linux/arg1-logging-implicit-this.cc | 31 + test/xray/TestCases/Linux/coverage-sample.cc | 88 +++ test/xray/TestCases/Linux/custom-event-logging.cc | 40 ++ test/xray/TestCases/Linux/func-id-utils.cc | 42 ++ 297 files changed, 4492 insertions(+), 2467 deletions(-) create mode 100644 lib/builtins/bswapdi2.c create mode 100644 lib/builtins/bswapsi2.c create mode 100644 lib/lsan/lsan_mac.cc delete mode 100644 lib/sanitizer_common/sanitizer_coverage_libcdep.cc delete mode 100644 lib/sanitizer_common/sanitizer_coverage_mapping_libcdep.cc create mode 100644 lib/scudo/scudo_allocator_combined.h copy lib/scudo/{scudo_utils.h => scudo_crc32.h} (79%) create mode 100644 lib/scudo/scudo_tls_android.cpp create mode 100644 lib/scudo/scudo_tls_android.inc create mode 100644 lib/scudo/scudo_tls_context_android.inc create mode 100644 lib/scudo/scudo_tls_context_linux.inc rename lib/scudo/{scudo_tls_linux.h => scudo_tls_linux.inc} (70%) create mode 100644 lib/ubsan/ubsan_diag_standalone.cc delete mode 100644 test/asan/TestCases/Android/coverage-android.cc create mode 100644 test/asan/TestCases/Linux/allocator_oom_test.cc create mode 100644 test/asan/TestCases/Linux/asan_preload_test-3.cc create mode 100644 test/asan/TestCases/Linux/longjmp_chk.c create mode 100644 test/asan/TestCases/Linux/preinstalled_signal.cc create mode 100644 test/asan/TestCases/Linux/sanbox_read_proc_self_maps_test.cc delete mode 100644 test/asan/TestCases/Posix/coverage-maybe-open-file.cc delete mode 100644 test/asan/TestCases/Posix/coverage-sandboxing.cc copy test/asan/TestCases/{strdup_oob_test.cc => Posix/strndup_oob_test.cc} (56%) create mode 100644 test/asan/TestCases/Posix/strndup_oob_test2.cc delete mode 100644 test/asan/TestCases/coverage-order-pcs.cc create mode 100644 test/cfi/icall/wrong-signature-mixed-lto.c create mode 100644 test/lsan/TestCases/Darwin/dispatch.mm copy test/{asan => lsan}/TestCases/Darwin/lit.local.cfg (100%) create mode 100644 test/lsan/TestCases/many_tls_keys.cc create mode 100644 test/msan/Linux/strerror_r.cc create mode 100644 test/msan/pr32842.c create mode 100644 test/msan/strndup.cc create mode 100644 test/sanitizer_common/TestCases/Linux/unexpected_format_specifi [...] create mode 100644 test/sanitizer_common/TestCases/sanitizer_coverage_inline8bit_c [...] create mode 100644 test/sanitizer_common/TestCases/sanitizer_coverage_no_prune.cc create mode 100644 test/tsan/Darwin/external-swift.cc create mode 100644 test/tsan/custom_mutex3.cc create mode 100644 test/tsan/strerror_r.cc create mode 100644 test/ubsan/TestCases/Misc/Linux/print_stack_trace.cc copy test/ubsan/TestCases/Misc/{bool.cpp => bool.m} (57%) create mode 100644 test/ubsan/TestCases/Pointer/index-overflow.cpp create mode 100644 test/ubsan/TestCases/Pointer/unsigned-index-expression.cpp create mode 100644 test/ubsan/TestCases/TypeCheck/Linux/PR33221.cpp copy test/{asan/TestCases => ubsan/TestCases/TypeCheck}/Linux/lit.local.cfg (100%) create mode 100644 test/ubsan/TestCases/TypeCheck/PR33221.cpp create mode 100644 test/xray/TestCases/Linux/arg1-arg0-logging.cc create mode 100644 test/xray/TestCases/Linux/arg1-logging-implicit-this.cc create mode 100644 test/xray/TestCases/Linux/coverage-sample.cc create mode 100644 test/xray/TestCases/Linux/custom-event-logging.cc create mode 100644 test/xray/TestCases/Linux/func-id-utils.cc