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 5dc8ce499 Updating branches/google/stable to r305862 adds f7b4c29b5 [asan] Fix android compiler wrapper lost in r301617. adds 5866aaba9 Revert "[compiler-rt] Don't reset non-default user handler if [...] adds d75d4f58e [mips][compiler-rt] Fix build breakage. adds a7d94d30c [sanitizer] Add a function to gather random bytes adds ef55de50c [sanitizer-coverage] Stop marking this test as unsupported on Darwin adds 712a9e568 [Sanitizers] 32 bit allocator respects allocator_may_return_n [...] adds d23b5ace1 [ubsan] Improve diagnostics for return value checks (compiler-rt) adds 37a2e2e98 [asan] Add support for Android debug message. adds bc311bbb0 [asan] Regression test for PR33372 adds 0f531abec [PGO] Implementate profile counter regiser promotion (test case) adds 9461bb47a [esan] Disable flaky tests for PR33590 adds f3180f887 [asan] Flag 'asan_gen_prefixes.cc' as unsupported on iOS. The [...] adds 9d35abce5 [Sanitizers] 64 bit allocator respects allocator_may_return_n [...] adds aa207c168 [tsan] Add missing include directory for test unittests adds 1c6a7b075 Only test sanitizers that are built when COMPILER_RT_SANITIZE [...] adds f2a5e92a6 Revert "Only test sanitizers that are built when COMPILER_RT_ [...] adds ad281e0a3 [PGO] Refactor file/buffer writer callback interfaces /NFC adds 4b54038e0 Only test sanitizers that are built when COMPILER_RT_SANITIZE [...] adds 2dcc25721 Loop directly over sanitizers to build in cmake adds 1a427fa56 Don't double-include cfi tests on linux adds b24f89116 Don't build tsan/dd when COMPILER_RT_HAS_TSAN is false adds a8a922c4f [Profile] Remove redundant call adds 054ff981e [msan] Intercept wcscat, wcsncat. adds 30e44dc92 [asan] Fix windows build. adds 659b039b4 [XRay][compiler-rt][NFC] Add example always/never instrument files. adds 0371dabce Re-enable wait.cc, wait4.cc, waitid.cc tests on Darwin. They [...] adds 7ed3d6d5a [XRay][compiler-rt] Only run test in x86_64 linux. adds 4cd87c537 [XRay][compiler-rt][NFC] Move test case into correct directory. adds 8ec8c48d6 Revert r306504: Re-enable wait.cc, wait4.cc, waitid.cc tests [...] adds 59b78d964 [PGO] Reduce IO in profile dumping with merging adds 7ea9c79f1 [Sanitizers] Operator new() interceptors always die on alloca [...] adds e8dc22926 [asan] This test now passes adds aaa18ba4d [asan] Disable tests which do no work on Android adds 628643aeb [asan] Fix try to fix test on Android adds 81300751e [LSan] Make LSan allocator allocator_may_return_null compliant adds 02c4d3f8b [asan] Control location of symbolizer on device using ANDROID [...] adds 90d0de4a6 Revert "[asan] Control location of symbolizer on device using [...] adds a05e4630f Revert "[LSan] Make LSan allocator allocator_may_return_null [...] adds 5d77c239d [scudo] Change aligned alloc functions to be more compliant & [...] adds 5349b6c7c Fix WinASan after moving wcslen interceptor to sanitizer_common adds ac3a01da8 Export the nothrow overload of operator new adds 9bf4394e7 [profile] Move __llvm_profile_filename into a separate object adds db318dfe3 Merge adds 2cd50a16a [Sanitizers] Rename CallocShouldReturnNullDueToOverflow to Ch [...] adds 28b9d0a32 Merge adds cf40d9536 fix trivial typos, NFC adds 63de5fcd7 [sanitizer] Small tweaks and fixes to allocator related functions adds f0fdf665b [objc] Don't require null-check and don't emit memset when re [...] adds 598fa11c9 [LSan] Make LSan allocator allocator_may_return_null compliant adds dfa9d55ab [asan] Disable test which fails on Android x86 adds 5849df7a0 [asan] Fix test on Android i686/fugu adds 457fbcb4a [asan] This Android lit workaround should not be needed as bu [...] adds 6ee59ff2a fix trivial typo; NFC adds 391940858 fix trivial typos in comments; NFC adds b69423cad fix trivial typos in comments; NFC adds f339952e6 [asan] Remove check for stack size adds f863c64e6 [tsan] Use pthread_sigmask instead of sigprocmask to block si [...] adds ff641b946 [Sanitizers] Consolidate internal errno definitions. adds 10c0350fb [sanitizer] Split GetMaxVirtualAddress into separate Linux ve [...] adds e0fbf555f Fixup for r307281: Also move GetKernelAreaSize into sanitize [...] adds b3b4445f1 More fixup for r307281: Move the #includes to sanitizer_linux.cc adds 501c0c704 [sanitizer] Use TASK_VM_INFO to get the maximum VM address on [...] adds 10bdcb2d1 Fix whitespace lint issue (introduced in r307307). adds 656a9d2e2 [asan] Fix -Winvalid-paste error with clang-cl adds 4761fa543 [cmake] Add an option to prefer public SDK in find_darwin_sdk_dir adds 55b271fd8 [asan] Add end-to-end tests for overflows of byval arguments. adds 32840b904 [cmake] Cache results of find_darwin_sdk_dir adds 9e2c69ffc Revert r307342, r307343. adds 922a96fd9 Fix-up for r307307: vm_info.max_address is the first non-addr [...] adds 0a9913ccd Update buildgo.sh to pass -isysroot on Darwin. adds 671ef704c Make sure SANITIZER_MIN_OSX_VERSION is defined before using it. adds 199c0c91d [tsan] Add support for running TSan tests on iOS simulator an [...] adds da8e13360 Fixup whitespace. adds 9a72e30d6 Reverting an accidentally landed change. adds 7b20e2670 [tsan] Add a max VM address check for Darwin/AArch64 adds 56ead5227 [tsan] Port setjmp/longjmp assembly to Darwin/AArch64 adds 7a63eabdf [tsan] Add a mapping for Darwin/AArch64 adds 2f2503a26 [tsan] Add comments for the bool argument of ThreadIgnoreBegi [...] adds 07c6462c7 Fix-up for r307540. adds 6dc96e1bb [lsan] Add _os_trace into LSan's suppression list adds 0973c5bae Fix a build failure due to r307541 (tsan_rtl_aarch64.S:54: Er [...] adds a4df49d1f Fix-up for r307537: We need to #include stdint.h to get int32_t. adds 78dfe1f88 [X86] Resync cpu_model.c with llvm's Host.cpp in preparation [...] adds bd3d53bd6 [X86] Sync a few more things from llvm's Host.cpp to cpu_model. adds b8c00bd80 Add an #if SANITIZER_MAC and a comment to lsan_common's suppr [...] adds de932deda Do not crash with missing symbolication when running in DEDUP mode adds 5b62d82e7 Remove duplicate assignments in stat64/kernel_stat_to_stat functions adds 093a9f1fc [asan] Fix asan_device_setup --use-su mode on Android 7.x. adds 26482612a Refactor MemoryMappingLayout::Next to use a single struct ins [...] adds 0b770c1e3 Inline function to get mac segment address range adds b0d9af0a5 Use internal_strncpy to copy filename in linux procmaps adds eb2931a54 [tsan] Update test to r307338 adds 9cd8edacd tsan: add test for __tsan_java_find adds 38ecb5de3 tsan: add another test for clock growth adds 5de8108ff tsan: don't create sync objects on acquire-load adds bc135c12c tsan: give debug names to dense allocators adds 25473b0d4 tsan: s/-1/kInvalidTid/ adds 6e32365b3 tsan: prepare clock for future changes adds 14a186f06 tsan: refactor SyncClock code adds d16bb5ca2 tsan: remove some clock-related stats adds e637b93bd [scudo] PRNG makeover adds 241fc0728 Fix the declaration of DARWIN_PREFER_PUBLIC_SDK cmake variabl [...] adds 880288aa6 On Darwin, start building the TSan dylib for the iOS simulator. adds 739a23efa [builtins] Better Fuchsia support adds b6742fdee On Darwin, start building the TSan iOS dylib by default. adds 835fb5484 Add explicit CMake targets for ASan/TSan iOS Simulator testin [...] adds 1832be2ba [PGO] Add a test for 2-deep loop nest adds b40ba7db5 [asan] For iOS/AArch64, if the dynamic shadow doesn't fit, re [...] adds 39ef995be [asan] Avoid recompilation of the same code in the test adds c071d1bfb Fix broken test adds 5ebaa70bf [compiler-rt][X86] Match the detection of cpu's for __cpu_mod [...] adds 4b50dbfc2 For Darwin's GetTaskInfoMaxAddress, define the real structure [...] adds e985282fd [ubsan] Teach the pointer overflow check that "p - <unsigned> [...] adds 4b8b9fa35 [scudo] Do not grab a cache for secondary allocation & per re [...] adds 8a5e425a6 Fix sanitizer build against latest glibc new 7a683713e Updating branches/google/stable to r308006
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 | 2 +- cmake/Modules/CompilerRTDarwinUtils.cmake | 26 +- cmake/config-ix.cmake | 5 +- lib/CMakeLists.txt | 26 +- lib/asan/asan_allocator.cc | 13 +- lib/asan/asan_errors.cc | 7 +- lib/asan/asan_interceptors.cc | 12 - lib/asan/asan_internal.h | 1 + lib/asan/asan_linux.cc | 11 +- lib/asan/asan_mac.cc | 23 + lib/asan/asan_new_delete.cc | 73 +-- lib/asan/asan_posix.cc | 2 +- lib/asan/asan_report.cc | 8 + lib/asan/asan_rtl.cc | 10 +- lib/asan/asan_thread.cc | 1 - lib/asan/asan_win.cc | 12 + lib/asan/asan_win_dll_thunk.cc | 1 + lib/asan/scripts/asan_device_setup | 2 +- lib/builtins/CMakeLists.txt | 13 +- lib/builtins/cpu_model.c | 523 +++++++-------------- lib/builtins/int_util.c | 10 + lib/esan/working_set.cpp | 19 +- lib/lsan/lsan_allocator.cc | 6 +- lib/lsan/lsan_common.cc | 16 +- lib/lsan/lsan_common.h | 2 +- lib/lsan/lsan_common_mac.cc | 2 +- lib/lsan/lsan_interceptors.cc | 67 ++- lib/msan/msan_allocator.cc | 2 +- lib/msan/msan_interceptors.cc | 93 ++-- lib/msan/msan_new_delete.cc | 20 +- lib/msan/tests/msan_test.cc | 42 ++ lib/profile/CMakeLists.txt | 1 + lib/profile/InstrProfiling.c | 2 - lib/profile/InstrProfilingBuffer.c | 17 +- lib/profile/InstrProfilingFile.c | 50 +- lib/profile/InstrProfilingInternal.h | 33 +- lib/profile/InstrProfilingNameVar.c | 18 + lib/profile/InstrProfilingWriter.c | 71 +-- lib/sanitizer_common/CMakeLists.txt | 4 + lib/sanitizer_common/sanitizer_allocator.cc | 8 +- lib/sanitizer_common/sanitizer_allocator.h | 10 +- .../sanitizer_allocator_local_cache.h | 29 +- .../sanitizer_allocator_primary32.h | 26 +- .../sanitizer_allocator_primary64.h | 191 +++++--- lib/sanitizer_common/sanitizer_atomic_clang.h | 3 +- .../sanitizer_atomic_clang_other.h | 3 +- lib/sanitizer_common/sanitizer_common.h | 17 +- .../sanitizer_common_interceptors.inc | 74 ++- lib/sanitizer_common/sanitizer_errno.cc | 35 ++ lib/sanitizer_common/sanitizer_errno.h | 35 ++ lib/sanitizer_common/sanitizer_errno_codes.h | 34 ++ lib/sanitizer_common/sanitizer_linux.cc | 108 ++++- lib/sanitizer_common/sanitizer_linux.h | 4 +- lib/sanitizer_common/sanitizer_linux_libcdep.cc | 26 +- lib/sanitizer_common/sanitizer_mac.cc | 84 +++- lib/sanitizer_common/sanitizer_mac.h | 2 + lib/sanitizer_common/sanitizer_mac_libcdep.cc | 30 ++ .../sanitizer_platform_interceptors.h | 1 + .../sanitizer_platform_limits_posix.cc | 9 - .../sanitizer_platform_limits_posix.h | 3 - lib/sanitizer_common/sanitizer_posix.cc | 158 ++----- lib/sanitizer_common/sanitizer_posix_libcdep.cc | 20 +- lib/sanitizer_common/sanitizer_procmaps.h | 41 +- lib/sanitizer_common/sanitizer_procmaps_common.cc | 14 +- lib/sanitizer_common/sanitizer_procmaps_freebsd.cc | 33 +- lib/sanitizer_common/sanitizer_procmaps_linux.cc | 43 +- lib/sanitizer_common/sanitizer_procmaps_mac.cc | 191 ++++---- .../sanitizer_stacktrace_libcdep.cc | 3 +- .../sanitizer_stoptheworld_linux_libcdep.cc | 2 +- lib/sanitizer_common/sanitizer_win.cc | 45 +- .../tests/sanitizer_allocator_test.cc | 34 +- .../tests/sanitizer_common_test.cc | 21 +- lib/scudo/scudo_allocator.cpp | 162 ++++--- lib/scudo/scudo_allocator.h | 5 + lib/scudo/scudo_allocator_combined.h | 36 +- lib/scudo/scudo_new_delete.cpp | 9 +- lib/scudo/scudo_tls.h | 2 +- lib/scudo/scudo_tls_android.cpp | 2 +- lib/scudo/scudo_utils.cpp | 36 -- lib/scudo/scudo_utils.h | 57 ++- lib/tsan/CMakeLists.txt | 2 +- lib/tsan/check_analyze.sh | 4 +- lib/tsan/dd/dd_interceptors.cc | 19 +- lib/tsan/go/buildgo.sh | 2 +- lib/tsan/rtl/tsan_clock.cc | 119 +++-- lib/tsan/rtl/tsan_clock.h | 4 +- lib/tsan/rtl/tsan_dense_alloc.h | 11 +- lib/tsan/rtl/tsan_interceptors.cc | 29 +- lib/tsan/rtl/tsan_interceptors_mac.cc | 7 + lib/tsan/rtl/tsan_interface_ann.cc | 16 +- lib/tsan/rtl/tsan_interface_atomic.cc | 16 +- lib/tsan/rtl/tsan_mman.cc | 4 +- lib/tsan/rtl/tsan_new_delete.cc | 13 +- lib/tsan/rtl/tsan_platform.h | 49 +- lib/tsan/rtl/tsan_platform_linux.cc | 19 +- lib/tsan/rtl/tsan_platform_mac.cc | 8 + lib/tsan/rtl/tsan_platform_posix.cc | 27 +- lib/tsan/rtl/tsan_rtl.cc | 3 +- lib/tsan/rtl/tsan_rtl_aarch64.S | 127 ++++- lib/tsan/rtl/tsan_rtl_amd64.S | 6 + lib/tsan/rtl/tsan_rtl_mutex.cc | 12 +- lib/tsan/rtl/tsan_rtl_report.cc | 2 +- lib/tsan/rtl/tsan_rtl_thread.cc | 4 + lib/tsan/rtl/tsan_stat.cc | 5 +- lib/tsan/rtl/tsan_stat.h | 5 +- lib/tsan/rtl/tsan_sync.cc | 4 +- lib/tsan/tests/CMakeLists.txt | 2 + lib/tsan/tests/unit/tsan_clock_test.cc | 62 ++- lib/ubsan/ubsan_handlers.cc | 44 +- lib/ubsan/ubsan_handlers.h | 5 +- lib/ubsan/ubsan_interface.inc | 8 +- lib/xray/xray_always_instrument.txt | 6 + lib/xray/xray_never_instrument.txt | 6 + test/CMakeLists.txt | 67 +-- test/asan/CMakeLists.txt | 17 +- test/asan/TestCases/Darwin/asan_gen_prefixes.cc | 2 + test/asan/TestCases/Darwin/nil-return-struct.mm | 31 ++ test/asan/TestCases/Linux/allocator_oom_test.cc | 3 +- test/asan/TestCases/Linux/asan_preload_test-3.cc | 3 + test/asan/TestCases/Linux/init_fini_sections.cc | 16 +- test/asan/TestCases/Linux/preinstalled_signal.cc | 44 +- test/asan/TestCases/Linux/textdomain.c | 3 + test/asan/TestCases/Posix/allow_user_segv.cc | 25 +- test/asan/TestCases/Posix/asan-sigbus.cpp | 8 +- test/asan/TestCases/allocator_returns_null.cc | 107 +++-- test/asan/TestCases/malloc-no-intercept.c | 3 + test/asan/TestCases/pr33372.cc | 39 ++ test/asan/TestCases/throw_call_test.cc | 3 - test/asan/android_commands/android_common.py | 5 +- test/asan/lit.cfg | 1 + test/builtins/Unit/fp_test.h | 8 +- test/cfi/sibling.cpp | 2 +- test/esan/TestCases/workingset-midreport.cpp | 3 + test/esan/TestCases/workingset-samples.cpp | 3 + test/esan/TestCases/workingset-simple.cpp | 3 + test/lsan/TestCases/allocator_returns_null.cc | 123 +++++ test/msan/allocator_returns_null.cc | 115 +++-- test/profile/Linux/counter_promo_for.c | 59 +++ test/profile/Linux/counter_promo_nest.c | 48 ++ test/profile/Linux/counter_promo_while.c | 55 +++ test/profile/instrprof-override-filename.c | 22 +- .../sanitizer_coverage_inline8bit_counter.cc | 2 +- test/sanitizer_common/ios_commands/iossim_run.py | 5 +- test/scudo/memalign.cpp | 24 +- test/scudo/sizes.cpp | 45 +- test/tsan/CMakeLists.txt | 54 +++ test/tsan/Darwin/dlopen.cc | 2 + test/tsan/Darwin/ignore-noninstrumented.mm | 2 +- test/tsan/Darwin/ignored-interceptors.mm | 2 +- test/tsan/Darwin/osspinlock-norace.cc | 6 +- test/tsan/Darwin/signals-blocked.cc | 75 +++ test/tsan/Darwin/xpc-cancel.mm | 2 +- test/tsan/Darwin/xpc-race.mm | 2 +- test/tsan/Darwin/xpc.mm | 2 +- test/tsan/allocator_returns_null.cc | 116 +++-- test/tsan/deep_stack1.cc | 9 +- test/tsan/ignore_lib0.cc | 2 + test/tsan/java_find.cc | 69 +++ test/tsan/lit.cfg | 2 +- test/tsan/lit.site.cfg.in | 3 + test/ubsan/TestCases/Misc/nonnull.cpp | 37 +- test/ubsan/TestCases/Misc/nullability.c | 2 +- .../Pointer/unsigned-index-expression.cpp | 15 +- .../TestCases/Linux/always-never-instrument.cc | 23 + 164 files changed, 3129 insertions(+), 1732 deletions(-) create mode 100644 lib/profile/InstrProfilingNameVar.c create mode 100644 lib/sanitizer_common/sanitizer_errno.cc create mode 100644 lib/sanitizer_common/sanitizer_errno.h create mode 100644 lib/sanitizer_common/sanitizer_errno_codes.h create mode 100644 lib/sanitizer_common/sanitizer_mac_libcdep.cc create mode 100644 lib/xray/xray_always_instrument.txt create mode 100644 lib/xray/xray_never_instrument.txt create mode 100644 test/asan/TestCases/Darwin/nil-return-struct.mm create mode 100644 test/asan/TestCases/pr33372.cc create mode 100644 test/lsan/TestCases/allocator_returns_null.cc create mode 100644 test/profile/Linux/counter_promo_for.c create mode 100644 test/profile/Linux/counter_promo_nest.c create mode 100644 test/profile/Linux/counter_promo_while.c create mode 100644 test/tsan/Darwin/signals-blocked.cc create mode 100644 test/tsan/java_find.cc create mode 100644 test/xray/TestCases/Linux/always-never-instrument.cc