• Home
  • History
  • Annotate
  • only in /external/compiler-rt/lib/
History log of /external/compiler-rt/lib/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
5d71de26cedae3dafc17449fe0182045c0bd20e8 21-Jul-2014 Stephen Hines <srhines@google.com> Update compiler-rt for rebase to r212749.

Includes a cherry-pick of:
r213309 - fixes umodsi3

Change-Id: Ic7367e3586b6af7ef74bee6a8cf437d5f28d975a
san/Android.mk
san/CMakeLists.txt
san/README.txt
san/asan_allocator2.cc
san/asan_asm_instrumentation.S
san/asan_dll_thunk.cc
san/asan_globals.cc
san/asan_init_version.h
san/asan_interceptors.cc
san/asan_interceptors.h
san/asan_interface_internal.h
san/asan_internal.h
san/asan_linux.cc
san/asan_mac.cc
san/asan_malloc_linux.cc
san/asan_mapping.h
san/asan_report.cc
san/asan_report.h
san/asan_rtl.cc
san/asan_stats.cc
san/asan_thread.cc
san/scripts/asan_device_setup
san/scripts/gen_asm_instrumentation.sh
san/tests/CMakeLists.txt
san/tests/asan_asm_test.cc
san/tests/asan_interface_test.cc
san/tests/asan_noinst_test.cc
uiltins/Makefile.mk
uiltins/README.txt
uiltins/arm/bswapdi2.S
uiltins/arm/bswapsi2.S
uiltins/arm/clzdi2.S
uiltins/arm/clzsi2.S
uiltins/arm/divmodsi4.S
uiltins/arm/divsi3.S
uiltins/arm/modsi3.S
uiltins/arm/udivmodsi4.S
uiltins/arm/udivsi3.S
uiltins/arm/umodsi3.S
uiltins/armv6m/Makefile.mk
uiltins/assembly.h
uiltins/divtf3.c
uiltins/extenddftf2.c
uiltins/extendsfdf2.c
uiltins/extendsftf2.c
uiltins/fp_extend.h
uiltins/fp_extend_impl.inc
uiltins/fp_lib.h
uiltins/fp_trunc.h
uiltins/fp_trunc_impl.inc
uiltins/truncdfsf2.c
uiltins/trunctfdf2.c
uiltins/trunctfsf2.c
uiltins/x86_64/floatundidf.S
uiltins/x86_64/floatundisf.S
uiltins/x86_64/floatundixf.S
fsan/dfsan.h
nterception/interception.h
nterception/interception_win.cc
san/CMakeLists.txt
san/lsan_common.cc
san/lsan_interceptors.cc
san/msan.cc
san/msan.h
san/msan_allocator.cc
san/msan_chained_origin_depot.cc
san/msan_flags.h
san/msan_interceptors.cc
san/msan_interface_internal.h
san/msan_linux.cc
san/msan_origin.h
san/msan_report.cc
san/msan_thread.cc
san/tests/msan_test.cc
rofile/InstrProfilingFile.c
anitizer_common/CMakeLists.txt
anitizer_common/sanitizer_allocator.h
anitizer_common/sanitizer_allocator_interface.h
anitizer_common/sanitizer_atomic_msvc.h
anitizer_common/sanitizer_common.cc
anitizer_common/sanitizer_common.h
anitizer_common/sanitizer_common_interceptors.inc
anitizer_common/sanitizer_common_interceptors_ioctl.inc
anitizer_common/sanitizer_common_syscalls.inc
anitizer_common/sanitizer_coverage_libcdep.cc
anitizer_common/sanitizer_coverage_mapping_libcdep.cc
anitizer_common/sanitizer_deadlock_detector2.cc
anitizer_common/sanitizer_flags.cc
anitizer_common/sanitizer_flags.h
anitizer_common/sanitizer_freebsd.h
anitizer_common/sanitizer_internal_defs.h
anitizer_common/sanitizer_linux.cc
anitizer_common/sanitizer_linux_libcdep.cc
anitizer_common/sanitizer_platform_interceptors.h
anitizer_common/sanitizer_platform_limits_linux.cc
anitizer_common/sanitizer_platform_limits_posix.cc
anitizer_common/sanitizer_platform_limits_posix.h
anitizer_common/sanitizer_procmaps_linux.cc
anitizer_common/sanitizer_procmaps_mac.cc
anitizer_common/sanitizer_report_decorator.h
anitizer_common/sanitizer_stackdepot.cc
anitizer_common/sanitizer_stackdepotbase.h
anitizer_common/sanitizer_stacktrace.cc
anitizer_common/sanitizer_stacktrace.h
anitizer_common/sanitizer_tls_get_addr.cc
anitizer_common/sanitizer_tls_get_addr.h
anitizer_common/sanitizer_win.cc
anitizer_common/scripts/check_lint.sh
anitizer_common/scripts/sancov.py
anitizer_common/tests/CMakeLists.txt
anitizer_common/tests/sanitizer_deadlock_detector_test.cc
anitizer_common/tests/sanitizer_flags_test.cc
anitizer_common/tests/sanitizer_ioctl_test.cc
san/CMakeLists.txt
san/check_analyze.sh
san/check_memcpy.sh
san/dd/CMakeLists.txt
san/go/build.bat
san/go/buildgo.sh
san/go/tsan_go.cc
san/rtl/Makefile.old
san/rtl/tsan_clock.cc
san/rtl/tsan_clock.h
san/rtl/tsan_defs.h
san/rtl/tsan_dense_alloc.h
san/rtl/tsan_fd.cc
san/rtl/tsan_flags.cc
san/rtl/tsan_interceptors.cc
san/rtl/tsan_interface_ann.cc
san/rtl/tsan_interface_atomic.cc
san/rtl/tsan_interface_java.cc
san/rtl/tsan_interface_java.h
san/rtl/tsan_mman.cc
san/rtl/tsan_mman.h
san/rtl/tsan_mutex.cc
san/rtl/tsan_mutex.h
san/rtl/tsan_platform.h
san/rtl/tsan_platform_linux.cc
san/rtl/tsan_platform_mac.cc
san/rtl/tsan_platform_windows.cc
san/rtl/tsan_report.cc
san/rtl/tsan_report.h
san/rtl/tsan_rtl.cc
san/rtl/tsan_rtl.h
san/rtl/tsan_rtl_mutex.cc
san/rtl/tsan_rtl_report.cc
san/rtl/tsan_rtl_thread.cc
san/rtl/tsan_stack_trace.cc
san/rtl/tsan_stack_trace.h
san/rtl/tsan_stat.cc
san/rtl/tsan_stat.h
san/rtl/tsan_suppressions.cc
san/rtl/tsan_sync.cc
san/rtl/tsan_sync.h
san/rtl/tsan_trace.h
san/rtl/tsan_update_shadow_word_inl.h
san/rtl/tsan_vector.h
san/tests/unit/tsan_dense_alloc_test.cc
san/tests/unit/tsan_mman_test.cc
san/tests/unit/tsan_sync_test.cc
bsan/ubsan_diag.cc
122ed0201e9031bb08c31a74c8cdf46293f98a5a 20-Jun-2014 Dan Albert <danalbert@google.com> am 65e7b1d5: Merge "Refactor muldf3 and mulsf3."

* commit '65e7b1d5aa3878e95eab8772d7c299660b8e7d0c':
Refactor muldf3 and mulsf3.
8d33553caec68b16ae957afcc7290e9560d5a50c 20-Jun-2014 Dan Albert <danalbert@google.com> am fb37fb71: Merge "Provide mul for IEEE quad. From GuanHong Liu."

* commit 'fb37fb71a74a95de416eba4c33f275c037436d49':
Provide mul for IEEE quad. From GuanHong Liu.
5ea7e931fd42bc96397a10ffe0d11b9c2cbb041a 20-Jun-2014 Dan Albert <danalbert@google.com> am 5535e1fb: Merge "Provide add and sub for IEEE quad. From GuanHong Liu."

* commit '5535e1fbd49fcce5a02c0b4f78642cfcee394588':
Provide add and sub for IEEE quad. From GuanHong Liu.
743edbf52981c22fbe06414c012bd873cde88384 20-Jun-2014 Dan Albert <danalbert@google.com> am f302a1a7: Merge "Refactor addsf3.c and adddf3.c."

* commit 'f302a1a74c171a3a05fd780b65e0859921393f95':
Refactor addsf3.c and adddf3.c.
493844deb81978ef7fbcc09dd52dd7dca6858a98 28-May-2014 Joerg Sonnenberger <joerg@bec.de> Refactor muldf3 and mulsf3.

Patch from: GuanHong Liu
Differential Revision: http://reviews.llvm.org/D3886

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@209741 91177308-0d34-0410-b5e6-96231b3b80d8
uiltins/fp_mul_impl.inc
uiltins/muldf3.c
uiltins/mulsf3.c
a47385774e7c5a4387a37c5605c58f8e8f10207e 19-Jun-2014 Joerg Sonnenberger <joerg@bec.de> Provide mul for IEEE quad. From GuanHong Liu.

Differential Revision: http://reviews.llvm.org/D2799

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@211313 91177308-0d34-0410-b5e6-96231b3b80d8
uiltins/CMakeLists.txt
uiltins/multf3.c
5a869d4603ce41572b6f2f9b5b2f305a16596e63 19-Jun-2014 Joerg Sonnenberger <joerg@bec.de> Provide add and sub for IEEE quad. From GuanHong Liu.

Differential Revision: http://reviews.llvm.org/D2798

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@211312 91177308-0d34-0410-b5e6-96231b3b80d8
uiltins/CMakeLists.txt
uiltins/addtf3.c
uiltins/subtf3.c
a9769988556ce9ea87a866666053b155984e9f2c 28-May-2014 Joerg Sonnenberger <joerg@bec.de> Refactor addsf3.c and adddf3.c.

Differential Revision: http://reviews.llvm.org/D3885

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@209740 91177308-0d34-0410-b5e6-96231b3b80d8
uiltins/adddf3.c
uiltins/addsf3.c
uiltins/fp_add_impl.inc
b9c04cf53fc3023b9eacbb40810860ff487efe10 16-Jun-2014 Stephen Hines <srhines@google.com> am 547c7c6e: Merge "Swap getdtablesize() for sysconf(_SC_OPEN_MAX)."

* commit '547c7c6e2e0fcbee5fed7ba1bf83c0d424a30b1c':
Swap getdtablesize() for sysconf(_SC_OPEN_MAX).
904a109377c26cf6fba76662ae9d42fc45735c72 16-Jun-2014 Dan Albert <danalbert@google.com> Swap getdtablesize() for sysconf(_SC_OPEN_MAX).

Bionic is no removing this as it was removed from POSIX 2004.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@211027 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_symbolizer_posix_libcdep.cc
e1e37e8a1e995183df920beca0d4496cc4f3e4d3 14-Jun-2014 Dan Albert <danalbert@google.com> am 5afa96ce: Merge "Exclude Android from the tests for valloc/pvalloc."

* commit '5afa96cef8990f1937faec63182b80bbf58ee986':
Exclude Android from the tests for valloc/pvalloc.
31a5cd83406be83bcdb91df03e16816e3af8c615 14-Jun-2014 Dan Albert <danalbert@google.com> Exclude Android from the tests for valloc/pvalloc.

These functions are being removed from Android because they were removed
from POSIX 2004.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@210962 91177308-0d34-0410-b5e6-96231b3b80d8
san/tests/asan_test.cc
anitizer_common/tests/sanitizer_test_utils.h
f0fa5c23aac1a635f8523bc6849f33e8a3ef494c 05-Jun-2014 Stephen Hines <srhines@google.com> am 201df20a: Merge "Remove\'s uses of sys/timeb.h for Android."

* commit '201df20a2299d5b4e055337f6c600bf8ba532f5e':
Remove's uses of sys/timeb.h for Android.
373c7a87ef89fd44ee7eb96bb060b4ceaecc948d 05-Jun-2014 Stephen Hines <srhines@google.com> am 706625d6: Merge "Revert "Bionic is getting rid of sys/timeb.h""

* commit '706625d653c90b26036767b549e04aedfc54b08c':
Revert "Bionic is getting rid of sys/timeb.h"
92f36fefebbf65930d49375c4c84aff6df313d29 05-Jun-2014 Dan Albert <danalbert@google.com> Remove's uses of sys/timeb.h for Android.

Android is removing sys/timeb.h because it was removed in POSIX 2008.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@210235 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_platform_limits_posix.cc
a797a50b31655503c19d8bf053a44eaabf2a882a 05-Jun-2014 Stephen Hines <srhines@google.com> Revert "Bionic is getting rid of sys/timeb.h"

This reverts commit f39cd2e44634e4839f8961966cdd7565b6801dbc.
anitizer_common/sanitizer_platform_limits_posix.cc
4d95370ef91dce05de74eac0c4a63141b5f7c131 05-Jun-2014 Dan Albert <danalbert@google.com> am 83779084: Merge "Bionic is getting rid of sys/timeb.h"

* commit '83779084e3dd383ff0dc84d4ffec4a5393461243':
Bionic is getting rid of sys/timeb.h
f39cd2e44634e4839f8961966cdd7565b6801dbc 05-Jun-2014 Dan Albert <danalbert@google.com> Bionic is getting rid of sys/timeb.h

This file has been removed from POSIX.

Change-Id: I5dd31147143b23a090a3b75b846dc5354e599121
anitizer_common/sanitizer_platform_limits_posix.cc
c9811bc56f3c7624deec240b22511b6fb0fee5a9 31-May-2014 Stephen Hines <srhines@google.com> am ce888323: am ef4e7891: Merge "Update compiler-rt aosp/master for 3.5 (r209699) rebase."

* commit 'ce888323c994d45668828fd4720617becef7a881':
Update compiler-rt aosp/master for 3.5 (r209699) rebase.
2d1fdb26e458c4ddc04155c1d421bced3ba90cd0 29-May-2014 Stephen Hines <srhines@google.com> Update compiler-rt aosp/master for 3.5 (r209699) rebase.

Change-Id: I158a30186f0faea2e2400e9dfdd878db2eb40e90
locksRuntime/Block.h
locksRuntime/Block_private.h
locksRuntime/data.c
locksRuntime/runtime.c
MakeLists.txt
akefile.mk
bsvdi2.c
bsvsi2.c
bsvti2.c
dddf3.c
ddsf3.c
ddvdi3.c
ddvsi3.c
ddvti3.c
pple_versioning.c
rm/Makefile.mk
rm/adddf3vfp.S
rm/addsf3vfp.S
rm/aeabi_dcmp.S
rm/aeabi_fcmp.S
rm/aeabi_idivmod.S
rm/aeabi_ldivmod.S
rm/aeabi_memcmp.S
rm/aeabi_memcpy.S
rm/aeabi_memmove.S
rm/aeabi_memset.S
rm/aeabi_uidivmod.S
rm/aeabi_uldivmod.S
rm/bswapdi2.S
rm/bswapsi2.S
rm/comparesf2.S
rm/divdf3vfp.S
rm/divmodsi4.S
rm/divsf3vfp.S
rm/divsi3.S
rm/eqdf2vfp.S
rm/eqsf2vfp.S
rm/extendsfdf2vfp.S
rm/fixdfsivfp.S
rm/fixsfsivfp.S
rm/fixunsdfsivfp.S
rm/fixunssfsivfp.S
rm/floatsidfvfp.S
rm/floatsisfvfp.S
rm/floatunssidfvfp.S
rm/floatunssisfvfp.S
rm/gedf2vfp.S
rm/gesf2vfp.S
rm/gtdf2vfp.S
rm/gtsf2vfp.S
rm/ledf2vfp.S
rm/lesf2vfp.S
rm/ltdf2vfp.S
rm/ltsf2vfp.S
rm/modsi3.S
rm/muldf3vfp.S
rm/mulsf3vfp.S
rm/nedf2vfp.S
rm/negdf2vfp.S
rm/negsf2vfp.S
rm/nesf2vfp.S
rm/restore_vfp_d8_d15_regs.S
rm/save_vfp_d8_d15_regs.S
rm/softfloat-alias.list
rm/subdf3vfp.S
rm/subsf3vfp.S
rm/switch16.S
rm/switch32.S
rm/switch8.S
rm/switchu8.S
rm/sync_synchronize.S
rm/truncdfsf2vfp.S
rm/udivmodsi4.S
rm/udivsi3.S
rm/umodsi3.S
rm/unorddf2vfp.S
rm/unordsf2vfp.S
rm/vfp_alias.S
san/Android.mk
san/CMakeLists.txt
san/Makefile.mk
san/asan_activation.cc
san/asan_activation.h
san/asan_allocator.h
san/asan_allocator2.cc
san/asan_asm_instrumentation.S
san/asan_blacklist.txt
san/asan_dll_thunk.cc
san/asan_fake_stack.cc
san/asan_fake_stack.h
san/asan_flags.h
san/asan_globals.cc
san/asan_intercepted_functions.h
san/asan_interceptors.cc
san/asan_interceptors.h
san/asan_interface_internal.h
san/asan_internal.h
san/asan_linux.cc
san/asan_mac.cc
san/asan_mac.h
san/asan_malloc_linux.cc
san/asan_malloc_mac.cc
san/asan_malloc_win.cc
san/asan_mapping.h
san/asan_new_delete.cc
san/asan_poisoning.cc
san/asan_poisoning.h
san/asan_posix.cc
san/asan_report.cc
san/asan_report.h
san/asan_rtl.cc
san/asan_stack.cc
san/asan_stack.h
san/asan_stats.cc
san/asan_stats.h
san/asan_thread.cc
san/asan_thread.h
san/asan_win.cc
san/lit_tests/32bitConfig/lit.site.cfg.in
san/lit_tests/64bitConfig/lit.site.cfg.in
san/lit_tests/CMakeLists.txt
san/lit_tests/TestCases/Darwin/interface_symbols_darwin.c
san/lit_tests/TestCases/Darwin/lit.local.cfg
san/lit_tests/TestCases/Darwin/malloc_set_zone_name-mprotect.cc
san/lit_tests/TestCases/Darwin/malloc_zone-protected.cc
san/lit_tests/TestCases/Darwin/reexec-insert-libraries-env.cc
san/lit_tests/TestCases/Darwin/unset-insert-libraries-on-exec.cc
san/lit_tests/TestCases/Helpers/blacklist-extra.cc
san/lit_tests/TestCases/Helpers/echo-env.cc
san/lit_tests/TestCases/Helpers/init-order-atexit-extra.cc
san/lit_tests/TestCases/Helpers/init-order-pthread-create-extra.cc
san/lit_tests/TestCases/Helpers/initialization-blacklist-extra.cc
san/lit_tests/TestCases/Helpers/initialization-blacklist-extra2.cc
san/lit_tests/TestCases/Helpers/initialization-blacklist.txt
san/lit_tests/TestCases/Helpers/initialization-bug-extra.cc
san/lit_tests/TestCases/Helpers/initialization-bug-extra2.cc
san/lit_tests/TestCases/Helpers/initialization-constexpr-extra.cc
san/lit_tests/TestCases/Helpers/initialization-nobug-extra.cc
san/lit_tests/TestCases/Helpers/lit.local.cfg
san/lit_tests/TestCases/Linux/asan_prelink_test.cc
san/lit_tests/TestCases/Linux/clone_test.cc
san/lit_tests/TestCases/Linux/coverage.cc
san/lit_tests/TestCases/Linux/glob.cc
san/lit_tests/TestCases/Linux/glob_test_root/aa
san/lit_tests/TestCases/Linux/glob_test_root/ab
san/lit_tests/TestCases/Linux/glob_test_root/ba
san/lit_tests/TestCases/Linux/heap-overflow-large.cc
san/lit_tests/TestCases/Linux/heavy_uar_test.cc
san/lit_tests/TestCases/Linux/initialization-bug-any-order.cc
san/lit_tests/TestCases/Linux/interception_failure_test.cc
san/lit_tests/TestCases/Linux/interception_malloc_test.cc
san/lit_tests/TestCases/Linux/interception_readdir_r_test.cc
san/lit_tests/TestCases/Linux/interception_test.cc
san/lit_tests/TestCases/Linux/interface_symbols_linux.c
san/lit_tests/TestCases/Linux/lit.local.cfg
san/lit_tests/TestCases/Linux/malloc-in-qsort.cc
san/lit_tests/TestCases/Linux/malloc_delete_mismatch.cc
san/lit_tests/TestCases/Linux/overflow-in-qsort.cc
san/lit_tests/TestCases/Linux/preinit_test.cc
san/lit_tests/TestCases/Linux/ptrace.cc
san/lit_tests/TestCases/Linux/rlimit_mmap_test.cc
san/lit_tests/TestCases/Linux/swapcontext_test.cc
san/lit_tests/TestCases/Linux/syscalls.cc
san/lit_tests/TestCases/Linux/time_null_regtest.cc
san/lit_tests/TestCases/Linux/tsd_dtor_leak.cc
san/lit_tests/TestCases/Linux/uar_signals.cc
san/lit_tests/TestCases/Linux/unpoison_tls.cc
san/lit_tests/TestCases/Linux/zero-base-shadow32.cc
san/lit_tests/TestCases/Linux/zero-base-shadow64.cc
san/lit_tests/TestCases/SharedLibs/darwin-dummy-shared-lib-so.cc
san/lit_tests/TestCases/SharedLibs/dlclose-test-so.cc
san/lit_tests/TestCases/SharedLibs/init-order-dlopen-so.cc
san/lit_tests/TestCases/SharedLibs/lit.local.cfg
san/lit_tests/TestCases/SharedLibs/shared-lib-test-so.cc
san/lit_tests/TestCases/allocator_returns_null.cc
san/lit_tests/TestCases/allow_user_segv.cc
san/lit_tests/TestCases/asan-symbolize-sanity-test.cc
san/lit_tests/TestCases/assign_large_valloc_to_global.cc
san/lit_tests/TestCases/atexit_stats.cc
san/lit_tests/TestCases/blacklist.cc
san/lit_tests/TestCases/contiguous_container.cc
san/lit_tests/TestCases/current_allocated_bytes.cc
san/lit_tests/TestCases/deep_call_stack.cc
san/lit_tests/TestCases/deep_stack_uaf.cc
san/lit_tests/TestCases/deep_tail_call.cc
san/lit_tests/TestCases/deep_thread_stack.cc
san/lit_tests/TestCases/default_blacklist.cc
san/lit_tests/TestCases/default_options.cc
san/lit_tests/TestCases/dlclose-test.cc
san/lit_tests/TestCases/double-free.cc
san/lit_tests/TestCases/force_inline_opt0.cc
san/lit_tests/TestCases/free_hook_realloc.cc
san/lit_tests/TestCases/global-demangle.cc
san/lit_tests/TestCases/global-overflow.cc
san/lit_tests/TestCases/heap-overflow.cc
san/lit_tests/TestCases/huge_negative_hea_oob.cc
san/lit_tests/TestCases/init-order-atexit.cc
san/lit_tests/TestCases/init-order-dlopen.cc
san/lit_tests/TestCases/init-order-pthread-create.cc
san/lit_tests/TestCases/initialization-blacklist.cc
san/lit_tests/TestCases/initialization-bug.cc
san/lit_tests/TestCases/initialization-constexpr.cc
san/lit_tests/TestCases/initialization-nobug.cc
san/lit_tests/TestCases/inline.cc
san/lit_tests/TestCases/interface_test.cc
san/lit_tests/TestCases/invalid-free.cc
san/lit_tests/TestCases/ioctl.cc
san/lit_tests/TestCases/large_func_test.cc
san/lit_tests/TestCases/log-path_test.cc
san/lit_tests/TestCases/log_path_fork_test.cc.disabled
san/lit_tests/TestCases/lsan_annotations.cc
san/lit_tests/TestCases/malloc_context_size.cc
san/lit_tests/TestCases/malloc_fill.cc
san/lit_tests/TestCases/malloc_hook.cc
san/lit_tests/TestCases/memcmp_strict_test.cc
san/lit_tests/TestCases/memcmp_test.cc
san/lit_tests/TestCases/null_deref.cc
san/lit_tests/TestCases/on_error_callback.cc
san/lit_tests/TestCases/partial_right.cc
san/lit_tests/TestCases/poison_partial.cc
san/lit_tests/TestCases/print_summary.cc
san/lit_tests/TestCases/readv.cc
san/lit_tests/TestCases/sanity_check_pure_c.c
san/lit_tests/TestCases/shared-lib-test.cc
san/lit_tests/TestCases/sleep_before_dying.c
san/lit_tests/TestCases/stack-buffer-overflow-with-position.cc
san/lit_tests/TestCases/stack-frame-demangle.cc
san/lit_tests/TestCases/stack-oob-frames.cc
san/lit_tests/TestCases/stack-overflow.cc
san/lit_tests/TestCases/stack-use-after-return.cc
san/lit_tests/TestCases/strdup_oob_test.cc
san/lit_tests/TestCases/strerror_r_test.cc
san/lit_tests/TestCases/strip_path_prefix.c
san/lit_tests/TestCases/strncpy-overflow.cc
san/lit_tests/TestCases/symbolize_callback.cc
san/lit_tests/TestCases/throw_call_test.cc
san/lit_tests/TestCases/throw_invoke_test.cc
san/lit_tests/TestCases/time_interceptor.cc
san/lit_tests/TestCases/uar_and_exceptions.cc
san/lit_tests/TestCases/unaligned_loads_and_stores.cc
san/lit_tests/TestCases/use-after-free-right.cc
san/lit_tests/TestCases/use-after-free.cc
san/lit_tests/TestCases/use-after-poison.cc
san/lit_tests/TestCases/use-after-scope-dtor-order.cc
san/lit_tests/TestCases/use-after-scope-inlined.cc
san/lit_tests/TestCases/use-after-scope-nobug.cc
san/lit_tests/TestCases/use-after-scope-temp.cc
san/lit_tests/TestCases/use-after-scope.cc
san/lit_tests/TestCases/wait.cc
san/lit_tests/Unit/lit.site.cfg.in
san/lit_tests/lit.cfg
san/scripts/CMakeLists.txt
san/scripts/asan_device_setup
san/scripts/asan_symbolize.py
san/scripts/gen_asm_instrumentation.sh
san/tests/CMakeLists.txt
san/tests/asan_asm_test.cc
san/tests/asan_fake_stack_test.cc
san/tests/asan_interface_test.cc
san/tests/asan_mem_test.cc
san/tests/asan_noinst_test.cc
san/tests/asan_oob_test.cc
san/tests/asan_racy_double_free_test.cc
san/tests/asan_str_test.cc
san/tests/asan_test.cc
san/tests/asan_test_config.h
san/tests/asan_test_utils.h
shldi3.c
shlti3.c
shrdi3.c
shrti3.c
ssembly.h
tomic.c
uiltins/CMakeLists.txt
uiltins/Makefile.mk
uiltins/absvdi2.c
uiltins/absvsi2.c
uiltins/absvti2.c
uiltins/adddf3.c
uiltins/addsf3.c
uiltins/addvdi3.c
uiltins/addvsi3.c
uiltins/addvti3.c
uiltins/apple_versioning.c
uiltins/arm/Makefile.mk
uiltins/arm/adddf3vfp.S
uiltins/arm/addsf3vfp.S
uiltins/arm/aeabi_dcmp.S
uiltins/arm/aeabi_fcmp.S
uiltins/arm/aeabi_idivmod.S
uiltins/arm/aeabi_ldivmod.S
uiltins/arm/aeabi_memcmp.S
uiltins/arm/aeabi_memcpy.S
uiltins/arm/aeabi_memmove.S
uiltins/arm/aeabi_memset.S
uiltins/arm/aeabi_uidivmod.S
uiltins/arm/aeabi_uldivmod.S
uiltins/arm/bswapdi2.S
uiltins/arm/bswapsi2.S
uiltins/arm/clzdi2.S
uiltins/arm/clzsi2.S
uiltins/arm/comparesf2.S
uiltins/arm/divdf3vfp.S
uiltins/arm/divmodsi4.S
uiltins/arm/divsf3vfp.S
uiltins/arm/divsi3.S
uiltins/arm/eqdf2vfp.S
uiltins/arm/eqsf2vfp.S
uiltins/arm/extendsfdf2vfp.S
uiltins/arm/fixdfsivfp.S
uiltins/arm/fixsfsivfp.S
uiltins/arm/fixunsdfsivfp.S
uiltins/arm/fixunssfsivfp.S
uiltins/arm/floatsidfvfp.S
uiltins/arm/floatsisfvfp.S
uiltins/arm/floatunssidfvfp.S
uiltins/arm/floatunssisfvfp.S
uiltins/arm/gedf2vfp.S
uiltins/arm/gesf2vfp.S
uiltins/arm/gtdf2vfp.S
uiltins/arm/gtsf2vfp.S
uiltins/arm/ledf2vfp.S
uiltins/arm/lesf2vfp.S
uiltins/arm/ltdf2vfp.S
uiltins/arm/ltsf2vfp.S
uiltins/arm/modsi3.S
uiltins/arm/muldf3vfp.S
uiltins/arm/mulsf3vfp.S
uiltins/arm/nedf2vfp.S
uiltins/arm/negdf2vfp.S
uiltins/arm/negsf2vfp.S
uiltins/arm/nesf2vfp.S
uiltins/arm/restore_vfp_d8_d15_regs.S
uiltins/arm/save_vfp_d8_d15_regs.S
uiltins/arm/softfloat-alias.list
uiltins/arm/subdf3vfp.S
uiltins/arm/subsf3vfp.S
uiltins/arm/switch16.S
uiltins/arm/switch32.S
uiltins/arm/switch8.S
uiltins/arm/switchu8.S
uiltins/arm/sync-ops.h
uiltins/arm/sync_fetch_and_add_4.S
uiltins/arm/sync_fetch_and_add_8.S
uiltins/arm/sync_fetch_and_and_4.S
uiltins/arm/sync_fetch_and_and_8.S
uiltins/arm/sync_fetch_and_max_4.S
uiltins/arm/sync_fetch_and_max_8.S
uiltins/arm/sync_fetch_and_min_4.S
uiltins/arm/sync_fetch_and_min_8.S
uiltins/arm/sync_fetch_and_nand_4.S
uiltins/arm/sync_fetch_and_nand_8.S
uiltins/arm/sync_fetch_and_or_4.S
uiltins/arm/sync_fetch_and_or_8.S
uiltins/arm/sync_fetch_and_sub_4.S
uiltins/arm/sync_fetch_and_sub_8.S
uiltins/arm/sync_fetch_and_umax_4.S
uiltins/arm/sync_fetch_and_umax_8.S
uiltins/arm/sync_fetch_and_umin_4.S
uiltins/arm/sync_fetch_and_umin_8.S
uiltins/arm/sync_fetch_and_xor_4.S
uiltins/arm/sync_fetch_and_xor_8.S
uiltins/arm/sync_synchronize.S
uiltins/arm/truncdfsf2vfp.S
uiltins/arm/udivmodsi4.S
uiltins/arm/udivsi3.S
uiltins/arm/umodsi3.S
uiltins/arm/unorddf2vfp.S
uiltins/arm/unordsf2vfp.S
uiltins/arm/vfp_alias.S
uiltins/ashldi3.c
uiltins/ashlti3.c
uiltins/ashrdi3.c
uiltins/ashrti3.c
uiltins/assembly.h
uiltins/atomic.c
uiltins/clear_cache.c
uiltins/clzdi2.c
uiltins/clzsi2.c
uiltins/clzti2.c
uiltins/cmpdi2.c
uiltins/cmpti2.c
uiltins/comparedf2.c
uiltins/comparesf2.c
uiltins/comparetf2.c
uiltins/ctzdi2.c
uiltins/ctzsi2.c
uiltins/ctzti2.c
uiltins/divdc3.c
uiltins/divdf3.c
uiltins/divdi3.c
uiltins/divmoddi4.c
uiltins/divmodsi4.c
uiltins/divsc3.c
uiltins/divsf3.c
uiltins/divsi3.c
uiltins/divti3.c
uiltins/divxc3.c
uiltins/enable_execute_stack.c
uiltins/eprintf.c
uiltins/extendsfdf2.c
uiltins/ffsdi2.c
uiltins/ffsti2.c
uiltins/fixdfdi.c
uiltins/fixdfsi.c
uiltins/fixdfti.c
uiltins/fixsfdi.c
uiltins/fixsfsi.c
uiltins/fixsfti.c
uiltins/fixunsdfdi.c
uiltins/fixunsdfsi.c
uiltins/fixunsdfti.c
uiltins/fixunssfdi.c
uiltins/fixunssfsi.c
uiltins/fixunssfti.c
uiltins/fixunsxfdi.c
uiltins/fixunsxfsi.c
uiltins/fixunsxfti.c
uiltins/fixxfdi.c
uiltins/fixxfti.c
uiltins/floatdidf.c
uiltins/floatdisf.c
uiltins/floatdixf.c
uiltins/floatsidf.c
uiltins/floatsisf.c
uiltins/floattidf.c
uiltins/floattisf.c
uiltins/floattixf.c
uiltins/floatundidf.c
uiltins/floatundisf.c
uiltins/floatundixf.c
uiltins/floatunsidf.c
uiltins/floatunsisf.c
uiltins/floatuntidf.c
uiltins/floatuntisf.c
uiltins/floatuntixf.c
uiltins/fp_lib.h
uiltins/gcc_personality_v0.c
uiltins/i386/Makefile.mk
uiltins/i386/ashldi3.S
uiltins/i386/ashrdi3.S
uiltins/i386/divdi3.S
uiltins/i386/floatdidf.S
uiltins/i386/floatdisf.S
uiltins/i386/floatdixf.S
uiltins/i386/floatundidf.S
uiltins/i386/floatundisf.S
uiltins/i386/floatundixf.S
uiltins/i386/lshrdi3.S
uiltins/i386/moddi3.S
uiltins/i386/muldi3.S
uiltins/i386/udivdi3.S
uiltins/i386/umoddi3.S
uiltins/int_endianness.h
uiltins/int_lib.h
uiltins/int_math.h
uiltins/int_types.h
uiltins/int_util.c
uiltins/int_util.h
uiltins/lshrdi3.c
uiltins/lshrti3.c
uiltins/moddi3.c
uiltins/modsi3.c
uiltins/modti3.c
uiltins/muldc3.c
uiltins/muldf3.c
uiltins/muldi3.c
uiltins/mulodi4.c
uiltins/mulosi4.c
uiltins/muloti4.c
uiltins/mulsc3.c
uiltins/mulsf3.c
uiltins/multi3.c
uiltins/mulvdi3.c
uiltins/mulvsi3.c
uiltins/mulvti3.c
uiltins/mulxc3.c
uiltins/negdf2.c
uiltins/negdi2.c
uiltins/negsf2.c
uiltins/negti2.c
uiltins/negvdi2.c
uiltins/negvsi2.c
uiltins/negvti2.c
uiltins/paritydi2.c
uiltins/paritysi2.c
uiltins/parityti2.c
uiltins/popcountdi2.c
uiltins/popcountsi2.c
uiltins/popcountti2.c
uiltins/powidf2.c
uiltins/powisf2.c
uiltins/powitf2.c
uiltins/powixf2.c
uiltins/ppc/DD.h
uiltins/ppc/Makefile.mk
uiltins/ppc/divtc3.c
uiltins/ppc/fixtfdi.c
uiltins/ppc/fixunstfdi.c
uiltins/ppc/floatditf.c
uiltins/ppc/floatunditf.c
uiltins/ppc/gcc_qadd.c
uiltins/ppc/gcc_qdiv.c
uiltins/ppc/gcc_qmul.c
uiltins/ppc/gcc_qsub.c
uiltins/ppc/multc3.c
uiltins/ppc/restFP.S
uiltins/ppc/saveFP.S
uiltins/subdf3.c
uiltins/subsf3.c
uiltins/subvdi3.c
uiltins/subvsi3.c
uiltins/subvti3.c
uiltins/trampoline_setup.c
uiltins/truncdfsf2.c
uiltins/ucmpdi2.c
uiltins/ucmpti2.c
uiltins/udivdi3.c
uiltins/udivmoddi4.c
uiltins/udivmodsi4.c
uiltins/udivmodti4.c
uiltins/udivsi3.c
uiltins/udivti3.c
uiltins/umoddi3.c
uiltins/umodsi3.c
uiltins/umodti3.c
uiltins/x86_64/Makefile.mk
uiltins/x86_64/floatdidf.c
uiltins/x86_64/floatdisf.c
uiltins/x86_64/floatdixf.c
uiltins/x86_64/floatundidf.S
uiltins/x86_64/floatundisf.S
uiltins/x86_64/floatundixf.S
lear_cache.c
lzdi2.c
lzsi2.c
lzti2.c
mpdi2.c
mpti2.c
omparedf2.c
omparesf2.c
tzdi2.c
tzsi2.c
tzti2.c
fsan/CMakeLists.txt
fsan/dfsan.cc
fsan/dfsan.h
fsan/dfsan_custom.cc
fsan/done_abilist.txt
fsan/lit_tests/CMakeLists.txt
fsan/lit_tests/Inputs/flags_abilist.txt
fsan/lit_tests/basic.c
fsan/lit_tests/custom.c
fsan/lit_tests/flags.c
fsan/lit_tests/fncall.c
fsan/lit_tests/lit.cfg
fsan/lit_tests/lit.site.cfg.in
fsan/lit_tests/propagate.c
fsan/scripts/build-libc-list.py
fsan/scripts/check_custom_wrappers.sh
ivdc3.c
ivdf3.c
ivdi3.c
ivmoddi4.c
ivmodsi4.c
ivsc3.c
ivsf3.c
ivsi3.c
ivti3.c
ivxc3.c
nable_execute_stack.c
printf.c
xtendsfdf2.c
fsdi2.c
fsti2.c
ixdfdi.c
ixdfsi.c
ixdfti.c
ixsfdi.c
ixsfsi.c
ixsfti.c
ixunsdfdi.c
ixunsdfsi.c
ixunsdfti.c
ixunssfdi.c
ixunssfsi.c
ixunssfti.c
ixunsxfdi.c
ixunsxfsi.c
ixunsxfti.c
ixxfdi.c
ixxfti.c
loatdidf.c
loatdisf.c
loatdixf.c
loatsidf.c
loatsisf.c
loattidf.c
loattisf.c
loattixf.c
loatundidf.c
loatundisf.c
loatundixf.c
loatunsidf.c
loatunsisf.c
loatuntidf.c
loatuntisf.c
loatuntixf.c
p_lib.h
cc_personality_v0.c
386/Makefile.mk
386/ashldi3.S
386/ashrdi3.S
386/divdi3.S
386/floatdidf.S
386/floatdisf.S
386/floatdixf.S
386/floatundidf.S
386/floatundisf.S
386/floatundixf.S
386/lshrdi3.S
386/moddi3.S
386/muldi3.S
386/udivdi3.S
386/umoddi3.S
nt_endianness.h
nt_lib.h
nt_math.h
nt_types.h
nt_util.c
nt_util.h
nterception/CMakeLists.txt
nterception/interception.h
nterception/interception_linux.cc
nterception/interception_linux.h
nterception/interception_type_test.cc
nterception/interception_win.cc
it.common.cfg
it.common.configured.in
it.common.unit.cfg
it.common.unit.configured.in
san/CMakeLists.txt
san/lit_tests/AsanConfig/lit.cfg
san/lit_tests/AsanConfig/lit.site.cfg.in
san/lit_tests/CMakeLists.txt
san/lit_tests/LsanConfig/lit.cfg
san/lit_tests/LsanConfig/lit.site.cfg.in
san/lit_tests/TestCases/SharedLibs/huge_tls_lib_so.cc
san/lit_tests/TestCases/SharedLibs/lit.local.cfg
san/lit_tests/TestCases/cleanup_in_tsd_destructor.cc
san/lit_tests/TestCases/disabler.cc
san/lit_tests/TestCases/disabler_in_tsd_destructor.cc
san/lit_tests/TestCases/do_leak_check_override.cc
san/lit_tests/TestCases/fork.cc
san/lit_tests/TestCases/fork_threaded.cc
san/lit_tests/TestCases/high_allocator_contention.cc
san/lit_tests/TestCases/ignore_object.cc
san/lit_tests/TestCases/ignore_object_errors.cc
san/lit_tests/TestCases/large_allocation_leak.cc
san/lit_tests/TestCases/leak_check_at_exit.cc
san/lit_tests/TestCases/link_turned_off.cc
san/lit_tests/TestCases/pointer_to_self.cc
san/lit_tests/TestCases/sanity_check_pure_c.c
san/lit_tests/TestCases/stale_stack_leak.cc
san/lit_tests/TestCases/suppressions_default.cc
san/lit_tests/TestCases/suppressions_file.cc
san/lit_tests/TestCases/suppressions_file.cc.supp
san/lit_tests/TestCases/swapcontext.cc
san/lit_tests/TestCases/use_after_return.cc
san/lit_tests/TestCases/use_globals_initialized.cc
san/lit_tests/TestCases/use_globals_uninitialized.cc
san/lit_tests/TestCases/use_registers.cc
san/lit_tests/TestCases/use_stacks.cc
san/lit_tests/TestCases/use_stacks_threaded.cc
san/lit_tests/TestCases/use_tls_dynamic.cc
san/lit_tests/TestCases/use_tls_pthread_specific_dynamic.cc
san/lit_tests/TestCases/use_tls_pthread_specific_static.cc
san/lit_tests/TestCases/use_tls_static.cc
san/lit_tests/TestCases/use_unaligned.cc
san/lit_tests/Unit/lit.site.cfg.in
san/lit_tests/lit.common.cfg
san/lsan.cc
san/lsan_allocator.cc
san/lsan_common.cc
san/lsan_common.h
san/lsan_common_linux.cc
san/lsan_interceptors.cc
san/tests/CMakeLists.txt
san/tests/lsan_dummy_unittest.cc
san/tests/lsan_testlib.cc
shrdi3.c
shrti3.c
oddi3.c
odsi3.c
odti3.c
san/CMakeLists.txt
san/lit_tests/CMakeLists.txt
san/lit_tests/Linux/glob.cc
san/lit_tests/Linux/glob_altdirfunc.cc
san/lit_tests/Linux/glob_nomatch.cc
san/lit_tests/Linux/glob_test_root/aa
san/lit_tests/Linux/glob_test_root/ab
san/lit_tests/Linux/glob_test_root/ba
san/lit_tests/Linux/lit.local.cfg
san/lit_tests/Linux/syscalls.cc
san/lit_tests/Linux/tcgetattr.cc
san/lit_tests/SharedLibs/dso-origin-so.cc
san/lit_tests/SharedLibs/dso-origin.h
san/lit_tests/SharedLibs/lit.local.cfg
san/lit_tests/Unit/lit.site.cfg.in
san/lit_tests/allocator_returns_null.cc
san/lit_tests/backtrace.cc
san/lit_tests/c-strdup.c
san/lit_tests/cxa_atexit.cc
san/lit_tests/default_blacklist.cc
san/lit_tests/dlerror.cc
san/lit_tests/dso-origin.cc
san/lit_tests/errno.cc
san/lit_tests/getaddrinfo-positive.cc
san/lit_tests/getaddrinfo.cc
san/lit_tests/getline.cc
san/lit_tests/getline_test_data
san/lit_tests/heap-origin.cc
san/lit_tests/initgroups.cc
san/lit_tests/inline.cc
san/lit_tests/insertvalue_origin.cc
san/lit_tests/ioctl.cc
san/lit_tests/ioctl_custom.cc
san/lit_tests/keep-going-dso.cc
san/lit_tests/keep-going.cc
san/lit_tests/lit.cfg
san/lit_tests/lit.site.cfg.in
san/lit_tests/malloc_hook.cc
san/lit_tests/no_sanitize_memory.cc
san/lit_tests/no_sanitize_memory_prop.cc
san/lit_tests/poison_in_free.cc
san/lit_tests/ptrace.cc
san/lit_tests/readdir64.cc
san/lit_tests/scandir.cc
san/lit_tests/scandir_null.cc
san/lit_tests/scandir_test_root/aaa
san/lit_tests/scandir_test_root/aab
san/lit_tests/scandir_test_root/bbb
san/lit_tests/select.cc
san/lit_tests/setlocale.cc
san/lit_tests/signal_stress_test.cc
san/lit_tests/sigwait.cc
san/lit_tests/sigwaitinfo.cc
san/lit_tests/stack-origin.cc
san/lit_tests/sync_lock_set_and_test.cc
san/lit_tests/tzset.cc
san/lit_tests/unaligned_read_origin.cc
san/lit_tests/use-after-free.cc
san/lit_tests/vector_cvt.cc
san/lit_tests/vector_select.cc
san/lit_tests/wrap_indirect_calls.cc
san/lit_tests/wrap_indirect_calls/caller.cc
san/lit_tests/wrap_indirect_calls/lit.local.cfg
san/lit_tests/wrap_indirect_calls/one.cc
san/lit_tests/wrap_indirect_calls/two.cc
san/lit_tests/wrap_indirect_calls/wrapper.cc
san/msan.cc
san/msan.h
san/msan_allocator.cc
san/msan_allocator.h
san/msan_chained_origin_depot.cc
san/msan_chained_origin_depot.h
san/msan_flags.h
san/msan_interceptors.cc
san/msan_interface_internal.h
san/msan_linux.cc
san/msan_new_delete.cc
san/msan_origin.h
san/msan_report.cc
san/msan_thread.cc
san/msan_thread.h
san/tests/CMakeLists.txt
san/tests/msan_test.cc
sandr/msandr.cc
uldc3.c
uldf3.c
uldi3.c
ulodi4.c
ulosi4.c
uloti4.c
ulsc3.c
ulsf3.c
ulti3.c
ulvdi3.c
ulvsi3.c
ulvti3.c
ulxc3.c
egdf2.c
egdi2.c
egsf2.c
egti2.c
egvdi2.c
egvsi2.c
egvti2.c
aritydi2.c
aritysi2.c
arityti2.c
opcountdi2.c
opcountsi2.c
opcountti2.c
owidf2.c
owisf2.c
owitf2.c
owixf2.c
pc/DD.h
pc/Makefile.mk
pc/divtc3.c
pc/fixtfdi.c
pc/fixunstfdi.c
pc/floatditf.c
pc/floatunditf.c
pc/gcc_qadd.c
pc/gcc_qdiv.c
pc/gcc_qmul.c
pc/gcc_qsub.c
pc/multc3.c
pc/restFP.S
pc/saveFP.S
rofile/CMakeLists.txt
rofile/GCDAProfiling.c
rofile/InstrProfiling.c
rofile/InstrProfiling.h
rofile/InstrProfilingBuffer.c
rofile/InstrProfilingFile.c
rofile/InstrProfilingPlatformDarwin.c
rofile/InstrProfilingPlatformOther.c
rofile/InstrProfilingRuntime.cc
rofile/Makefile.mk
anitizer_common/CMakeLists.txt
anitizer_common/sanitizer_addrhashmap.h
anitizer_common/sanitizer_allocator.cc
anitizer_common/sanitizer_allocator.h
anitizer_common/sanitizer_allocator_internal.h
anitizer_common/sanitizer_asm.h
anitizer_common/sanitizer_atomic.h
anitizer_common/sanitizer_atomic_clang.h
anitizer_common/sanitizer_atomic_clang_other.h
anitizer_common/sanitizer_atomic_clang_x86.h
anitizer_common/sanitizer_atomic_msvc.h
anitizer_common/sanitizer_bitvector.h
anitizer_common/sanitizer_bvgraph.h
anitizer_common/sanitizer_common.cc
anitizer_common/sanitizer_common.h
anitizer_common/sanitizer_common_interceptors.inc
anitizer_common/sanitizer_common_interceptors_format.inc
anitizer_common/sanitizer_common_interceptors_ioctl.inc
anitizer_common/sanitizer_common_interceptors_scanf.inc
anitizer_common/sanitizer_common_libcdep.cc
anitizer_common/sanitizer_common_syscalls.inc
anitizer_common/sanitizer_coverage.cc
anitizer_common/sanitizer_coverage_libcdep.cc
anitizer_common/sanitizer_coverage_mapping_libcdep.cc
anitizer_common/sanitizer_deadlock_detector.h
anitizer_common/sanitizer_deadlock_detector1.cc
anitizer_common/sanitizer_deadlock_detector2.cc
anitizer_common/sanitizer_deadlock_detector_interface.h
anitizer_common/sanitizer_flags.cc
anitizer_common/sanitizer_flags.h
anitizer_common/sanitizer_interception.h
anitizer_common/sanitizer_internal_defs.h
anitizer_common/sanitizer_libc.cc
anitizer_common/sanitizer_libc.h
anitizer_common/sanitizer_libignore.cc
anitizer_common/sanitizer_linux.cc
anitizer_common/sanitizer_linux.h
anitizer_common/sanitizer_linux_libcdep.cc
anitizer_common/sanitizer_list.h
anitizer_common/sanitizer_mac.cc
anitizer_common/sanitizer_mac.h
anitizer_common/sanitizer_mutex.h
anitizer_common/sanitizer_persistent_allocator.cc
anitizer_common/sanitizer_persistent_allocator.h
anitizer_common/sanitizer_platform.h
anitizer_common/sanitizer_platform_interceptors.h
anitizer_common/sanitizer_platform_limits_linux.cc
anitizer_common/sanitizer_platform_limits_posix.cc
anitizer_common/sanitizer_platform_limits_posix.h
anitizer_common/sanitizer_posix.cc
anitizer_common/sanitizer_posix_libcdep.cc
anitizer_common/sanitizer_printf.cc
anitizer_common/sanitizer_procmaps.h
anitizer_common/sanitizer_procmaps_linux.cc
anitizer_common/sanitizer_procmaps_mac.cc
anitizer_common/sanitizer_report_decorator.h
anitizer_common/sanitizer_stackdepot.cc
anitizer_common/sanitizer_stackdepot.h
anitizer_common/sanitizer_stackdepotbase.h
anitizer_common/sanitizer_stacktrace.cc
anitizer_common/sanitizer_stacktrace.h
anitizer_common/sanitizer_stacktrace_libcdep.cc
anitizer_common/sanitizer_stoptheworld_linux_libcdep.cc
anitizer_common/sanitizer_suppressions.cc
anitizer_common/sanitizer_suppressions.h
anitizer_common/sanitizer_symbolizer.h
anitizer_common/sanitizer_symbolizer_libbacktrace.cc
anitizer_common/sanitizer_symbolizer_libbacktrace.h
anitizer_common/sanitizer_symbolizer_posix_libcdep.cc
anitizer_common/sanitizer_symbolizer_win.cc
anitizer_common/sanitizer_syscall_generic.inc
anitizer_common/sanitizer_syscall_linux_x86_64.inc
anitizer_common/sanitizer_thread_registry.cc
anitizer_common/sanitizer_thread_registry.h
anitizer_common/sanitizer_tls_get_addr.cc
anitizer_common/sanitizer_tls_get_addr.h
anitizer_common/sanitizer_win.cc
anitizer_common/scripts/check_lint.sh
anitizer_common/scripts/cpplint.py
anitizer_common/scripts/gen_dynamic_list.py
anitizer_common/scripts/litlint.py
anitizer_common/scripts/litlint_test.py
anitizer_common/scripts/sancov.py
anitizer_common/tests/CMakeLists.txt
anitizer_common/tests/lit.site.cfg.in
anitizer_common/tests/sanitizer_allocator_test.cc
anitizer_common/tests/sanitizer_allocator_testlib.cc
anitizer_common/tests/sanitizer_atomic_test.cc
anitizer_common/tests/sanitizer_bitvector_test.cc
anitizer_common/tests/sanitizer_bvgraph_test.cc
anitizer_common/tests/sanitizer_common_test.cc
anitizer_common/tests/sanitizer_deadlock_detector_test.cc
anitizer_common/tests/sanitizer_flags_test.cc
anitizer_common/tests/sanitizer_format_interceptor_test.cc
anitizer_common/tests/sanitizer_ioctl_test.cc
anitizer_common/tests/sanitizer_libc_test.cc
anitizer_common/tests/sanitizer_mutex_test.cc
anitizer_common/tests/sanitizer_printf_test.cc
anitizer_common/tests/sanitizer_procmaps_test.cc
anitizer_common/tests/sanitizer_pthread_wrappers.h
anitizer_common/tests/sanitizer_scanf_interceptor_test.cc
anitizer_common/tests/sanitizer_stacktrace_test.cc
anitizer_common/tests/sanitizer_suppressions_test.cc
anitizer_common/tests/sanitizer_test_config.h
anitizer_common/tests/sanitizer_test_utils.h
anitizer_common/tests/sanitizer_thread_registry_test.cc
ubdf3.c
ubsf3.c
ubvdi3.c
ubvsi3.c
ubvti3.c
rampoline_setup.c
runcdfsf2.c
san/CMakeLists.txt
san/Makefile.old
san/check_memcpy.sh
san/dd/CMakeLists.txt
san/dd/dd_interceptors.cc
san/dd/dd_rtl.cc
san/dd/dd_rtl.h
san/go/build.bat
san/go/buildgo.sh
san/go/test.c
san/go/tsan_go.cc
san/lit_tests/CMakeLists.txt
san/lit_tests/Helpers/blacklist.txt
san/lit_tests/Helpers/lit.local.cfg
san/lit_tests/SharedLibs/lit.local.cfg
san/lit_tests/SharedLibs/load_shared_lib-so.cc
san/lit_tests/Unit/lit.cfg
san/lit_tests/Unit/lit.site.cfg.in
san/lit_tests/aligned_vs_unaligned_race.cc
san/lit_tests/allocator_returns_null.cc
san/lit_tests/atomic_free.cc
san/lit_tests/atomic_free2.cc
san/lit_tests/atomic_norace.cc
san/lit_tests/atomic_race.cc
san/lit_tests/atomic_stack.cc
san/lit_tests/benign_race.cc
san/lit_tests/blacklist.cc
san/lit_tests/cond.c
san/lit_tests/cond_race.cc
san/lit_tests/cond_version.c
san/lit_tests/deep_stack1.cc
san/lit_tests/default_options.cc
san/lit_tests/fd_close_norace.cc
san/lit_tests/fd_close_norace2.cc
san/lit_tests/fd_dup_norace.cc
san/lit_tests/fd_location.cc
san/lit_tests/fd_pipe_norace.cc
san/lit_tests/fd_pipe_race.cc
san/lit_tests/fd_socket_connect_norace.cc
san/lit_tests/fd_socket_norace.cc
san/lit_tests/fd_socketpair_norace.cc
san/lit_tests/fd_stdout_race.cc
san/lit_tests/free_race.c
san/lit_tests/free_race.c.supp
san/lit_tests/free_race2.c
san/lit_tests/global_race.cc
san/lit_tests/halt_on_error.cc
san/lit_tests/heap_race.cc
san/lit_tests/ignore_free.cc
san/lit_tests/ignore_lib0.cc
san/lit_tests/ignore_lib0.cc.supp
san/lit_tests/ignore_lib1.cc
san/lit_tests/ignore_lib1.cc.supp
san/lit_tests/ignore_lib2.cc
san/lit_tests/ignore_lib2.cc.supp
san/lit_tests/ignore_lib3.cc
san/lit_tests/ignore_lib3.cc.supp
san/lit_tests/ignore_lib_lib.h
san/lit_tests/ignore_malloc.cc
san/lit_tests/ignore_race.cc
san/lit_tests/ignore_sync.cc
san/lit_tests/inlined_memcpy_race.cc
san/lit_tests/java.h
san/lit_tests/java_alloc.cc
san/lit_tests/java_lock.cc
san/lit_tests/java_lock_move.cc
san/lit_tests/java_lock_rec.cc
san/lit_tests/java_lock_rec_race.cc
san/lit_tests/java_race.cc
san/lit_tests/java_race_move.cc
san/lit_tests/java_rwlock.cc
san/lit_tests/lit.cfg
san/lit_tests/lit.site.cfg.in
san/lit_tests/load_shared_lib.cc
san/lit_tests/longjmp.cc
san/lit_tests/longjmp2.cc
san/lit_tests/longjmp3.cc
san/lit_tests/longjmp4.cc
san/lit_tests/malloc_overflow.cc
san/lit_tests/malloc_stack.cc
san/lit_tests/memcpy_race.cc
san/lit_tests/mop_with_offset.cc
san/lit_tests/mop_with_offset2.cc
san/lit_tests/mutex_destroy_locked.cc
san/lit_tests/mutex_robust.cc
san/lit_tests/mutex_robust2.cc
san/lit_tests/mutexset1.cc
san/lit_tests/mutexset2.cc
san/lit_tests/mutexset3.cc
san/lit_tests/mutexset4.cc
san/lit_tests/mutexset5.cc
san/lit_tests/mutexset6.cc
san/lit_tests/mutexset7.cc
san/lit_tests/mutexset8.cc
san/lit_tests/oob_race.cc
san/lit_tests/race_on_barrier.c
san/lit_tests/race_on_barrier2.c
san/lit_tests/race_on_heap.cc
san/lit_tests/race_on_mutex.c
san/lit_tests/race_on_mutex2.c
san/lit_tests/race_on_read.cc
san/lit_tests/race_on_write.cc
san/lit_tests/race_with_finished_thread.cc
san/lit_tests/signal_errno.cc
san/lit_tests/signal_malloc.cc
san/lit_tests/sigsuspend.cc
san/lit_tests/simple_race.c
san/lit_tests/simple_race.cc
san/lit_tests/simple_stack.c
san/lit_tests/simple_stack2.cc
san/lit_tests/sleep_sync.cc
san/lit_tests/sleep_sync2.cc
san/lit_tests/stack_race.cc
san/lit_tests/stack_race2.cc
san/lit_tests/static_init1.cc
san/lit_tests/static_init2.cc
san/lit_tests/static_init3.cc
san/lit_tests/static_init4.cc
san/lit_tests/static_init5.cc
san/lit_tests/static_init6.cc
san/lit_tests/suppress_same_address.cc
san/lit_tests/suppress_same_stacks.cc
san/lit_tests/suppressions_global.cc
san/lit_tests/suppressions_global.cc.supp
san/lit_tests/suppressions_race.cc
san/lit_tests/suppressions_race.cc.supp
san/lit_tests/suppressions_race2.cc
san/lit_tests/suppressions_race2.cc.supp
san/lit_tests/test_output.sh
san/lit_tests/thread_end_with_ignore.cc
san/lit_tests/thread_end_with_ignore2.cc
san/lit_tests/thread_leak.c
san/lit_tests/thread_leak2.c
san/lit_tests/thread_leak3.c
san/lit_tests/thread_leak4.c
san/lit_tests/thread_leak5.c
san/lit_tests/thread_name.cc
san/lit_tests/thread_name2.cc
san/lit_tests/tiny_race.c
san/lit_tests/tls_race.cc
san/lit_tests/tls_race2.cc
san/lit_tests/tsan-vs-gvn.cc
san/lit_tests/unaligned_norace.cc
san/lit_tests/unaligned_race.cc
san/lit_tests/user_fopen.cc
san/lit_tests/user_malloc.cc
san/lit_tests/virtual_inheritance_compile_bug.cc
san/lit_tests/vptr_benign_race.cc
san/lit_tests/vptr_harmful_race.cc
san/lit_tests/vptr_harmful_race2.cc
san/lit_tests/write_in_reader_lock.cc
san/rtl/Makefile.old
san/rtl/tsan_clock.cc
san/rtl/tsan_clock.h
san/rtl/tsan_defs.h
san/rtl/tsan_fd.cc
san/rtl/tsan_fd.h
san/rtl/tsan_flags.cc
san/rtl/tsan_flags.h
san/rtl/tsan_ignoreset.cc
san/rtl/tsan_ignoreset.h
san/rtl/tsan_interceptors.cc
san/rtl/tsan_interface_ann.cc
san/rtl/tsan_interface_atomic.cc
san/rtl/tsan_interface_atomic.h
san/rtl/tsan_interface_java.cc
san/rtl/tsan_mman.cc
san/rtl/tsan_mutex.cc
san/rtl/tsan_mutex.h
san/rtl/tsan_mutexset.h
san/rtl/tsan_platform.h
san/rtl/tsan_platform_linux.cc
san/rtl/tsan_platform_mac.cc
san/rtl/tsan_platform_windows.cc
san/rtl/tsan_report.cc
san/rtl/tsan_report.h
san/rtl/tsan_rtl.cc
san/rtl/tsan_rtl.h
san/rtl/tsan_rtl_amd64.S
san/rtl/tsan_rtl_mutex.cc
san/rtl/tsan_rtl_report.cc
san/rtl/tsan_rtl_thread.cc
san/rtl/tsan_stat.cc
san/rtl/tsan_stat.h
san/rtl/tsan_suppressions.cc
san/rtl/tsan_symbolize.cc
san/rtl/tsan_symbolize.h
san/rtl/tsan_symbolize_addr2line_linux.cc
san/rtl/tsan_sync.cc
san/rtl/tsan_sync.h
san/rtl/tsan_vector.h
san/tests/CMakeLists.txt
san/tests/rtl/tsan_test.cc
san/tests/rtl/tsan_test_util.h
san/tests/unit/tsan_clock_test.cc
san/tests/unit/tsan_flags_test.cc
san/tests/unit/tsan_mman_test.cc
san/tests/unit/tsan_stack_test.cc
san/tests/unit/tsan_sync_test.cc
san/tests/unit/tsan_vector_test.cc
bsan/CMakeLists.txt
bsan/lit_tests/AsanConfig/lit.cfg
bsan/lit_tests/AsanConfig/lit.site.cfg.in
bsan/lit_tests/CMakeLists.txt
bsan/lit_tests/TestCases/Float/cast-overflow.cpp
bsan/lit_tests/TestCases/Integer/add-overflow.cpp
bsan/lit_tests/TestCases/Integer/div-overflow.cpp
bsan/lit_tests/TestCases/Integer/div-zero.cpp
bsan/lit_tests/TestCases/Integer/incdec-overflow.cpp
bsan/lit_tests/TestCases/Integer/mul-overflow.cpp
bsan/lit_tests/TestCases/Integer/negate-overflow.cpp
bsan/lit_tests/TestCases/Integer/no-recover.cpp
bsan/lit_tests/TestCases/Integer/shift.cpp
bsan/lit_tests/TestCases/Integer/sub-overflow.cpp
bsan/lit_tests/TestCases/Integer/uadd-overflow.cpp
bsan/lit_tests/TestCases/Integer/uincdec-overflow.cpp
bsan/lit_tests/TestCases/Integer/umul-overflow.cpp
bsan/lit_tests/TestCases/Integer/usub-overflow.cpp
bsan/lit_tests/TestCases/Misc/bool.cpp
bsan/lit_tests/TestCases/Misc/bounds.cpp
bsan/lit_tests/TestCases/Misc/deduplication.cpp
bsan/lit_tests/TestCases/Misc/enum.cpp
bsan/lit_tests/TestCases/Misc/missing_return.cpp
bsan/lit_tests/TestCases/Misc/unreachable.cpp
bsan/lit_tests/TestCases/Misc/vla.c
bsan/lit_tests/TestCases/TypeCheck/Function/function.cpp
bsan/lit_tests/TestCases/TypeCheck/Function/lit.local.cfg
bsan/lit_tests/TestCases/TypeCheck/misaligned.cpp
bsan/lit_tests/TestCases/TypeCheck/null.cpp
bsan/lit_tests/TestCases/TypeCheck/vptr.cpp
bsan/lit_tests/UbsanConfig/lit.cfg
bsan/lit_tests/UbsanConfig/lit.site.cfg.in
bsan/lit_tests/lit.common.cfg
bsan/ubsan_diag.cc
bsan/ubsan_value.cc
bsan/ubsan_value.h
cmpdi2.c
cmpti2.c
divdi3.c
divmoddi4.c
divmodsi4.c
divmodti4.c
divsi3.c
divti3.c
moddi3.c
modsi3.c
modti3.c
86_64/Makefile.mk
86_64/floatdidf.c
86_64/floatdisf.c
86_64/floatdixf.c
86_64/floatundidf.S
86_64/floatundisf.S
86_64/floatundixf.S
e6ce8f93d1891817f3707440f18e54bcef7653dc 21-Feb-2014 Evgeniy Stepanov <eugenis@google.com> Change ASan runtime library name to keep in sync with upstream.

Change-Id: I617132d5b40f6d2e7a7e5ae2c1bf5890f1544093
san/Android.mk
423cdd62aca2826d0654f4cf529d15860b5f1827 12-Mar-2014 Daniel Sanders <daniel.sanders@imgtec.com> Implement Android versions of __clear_cache for arm32 & mips.

The MIPS version was reviewed by myself. The ARM version was reviewed by JF
Bastien.

Patch by Narayan Kamath <narayan@google.com>.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@203674 91177308-0d34-0410-b5e6-96231b3b80d8
lear_cache.c
4845f5dfb767264a797d763e9504116379a15129 28-Jan-2014 Joerg Sonnenberger <joerg@bec.de> Cache invalidation for AARCH64. Disabled for Apple for now as requested
by Tim Northover. Written by Matt Thomas.

Differential Revision: http://llvm-reviews.chandlerc.com/D2631

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@200317 91177308-0d34-0410-b5e6-96231b3b80d8

Conflicts:
lib/clear_cache.c

Change-Id: I08417a541c413205382a1abea36d941bb30727b6
lear_cache.c
fd43df62a16dd1640aa14f1ffe650c147045f690 10-Feb-2014 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Disable 3 more syscall hooks on Android.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201070 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_common_syscalls.inc
25ecb75efb30f8a8f80cc89c3a1cb83508e7bacf 10-Feb-2014 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] struct ustat and a bunch of other definitions are missing on Android.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201068 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_common_syscalls.inc
anitizer_common/sanitizer_platform_limits_posix.cc
anitizer_common/sanitizer_platform_limits_posix.h
21b5c4df776d34aaa4d1b793b7667aa8353492dd 09-Feb-2014 Stephen Hines <srhines@google.com> Update compiler-rt for merge to 3.4.

Adjust Android.mk for added/removed files:

+ sanitizer_coverage.cc
+ sanitizer_libignore.cc
+ sanitizer_platform_limits_linux.cc
+ sanitizer_platform_limits_posix.cc
- sanitizer_platform_limits_posix.cc
- sanitizer_symbolizer_itanium.cc
+ sanitizer_stacktrace_libcdep.cc
+ sanitizer_stoptheworld_linux_libcdep.cc
+ sanitizer_suppressions.cc
+ sanitizer_symbolizer.cc
- sanitizer_symbolizer_linux.cc
- sanitizer_symbolizer_linux_libcdep.cc
- sanitizer_symbolizer_mac.cc

Change-Id: Ib5cf33dfc36be70f87bca5ec62ee70e29ee2b1ce
san/Android.mk
0a7c7f9f98cdaf562627fac735f115c5b9c872a3 12-Feb-2014 Stephen Hines <srhines@google.com> Merge remote-tracking branch 'upstream/release_34' into merge-20140211
654a5af4d0aef2311d7442cc937c7d4b4f4717dc 16-Dec-2013 Sylvestre Ledru <sylvestre@debian.org> Remove a duplicate declaration which broke the compiler-rt build

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/branches/release_34@197381 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_stacktrace.cc
7f790caa37ec1c9807c877297d30e040e83ed215 16-Dec-2013 Bill Wendling <isanbard@gmail.com> Merging r-196802:
------------------------------------------------------------------------
r196802 | chandlerc | 2013-12-09 11:25:51 -0800 (Mon, 09 Dec 2013) | 11 lines

Revert three patches which were committed without explicit contribution
by their authors.

This may break builds where others added code relying on these patches,
but please *do not* revert this commit. Instead, we will prepare patches
which fix the failures.

Reverts the following commits:
r168306: "[asan] support x32 mode in the fast stack unwinder. Patch by H.J. Lu"
r168356: "[asan] more support for powerpc, patch by Peter Bergner"
r196489: "[sanitizer] fix the ppc32 build (patch by Jakub Jelinek)"
------------------------------------------------------------------------


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/branches/release_34@197360 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_linux.cc
san/asan_mapping.h
anitizer_common/sanitizer_common.h
anitizer_common/sanitizer_internal_defs.h
anitizer_common/sanitizer_platform_limits_posix.h
anitizer_common/sanitizer_stacktrace.cc
388e818799d1fc47fd287d59bf22100f5244f74c 15-Dec-2013 Bill Wendling <isanbard@gmail.com> Merging r196779:
------------------------------------------------------------------------
r196779 | samsonov | 2013-12-09 05:21:43 -0800 (Mon, 09 Dec 2013) | 11 lines

PR17977: don't assume EOWNERDEAD is always defined

Summary: See details in http://llvm.org/bugs/show_bug.cgi?id=17977

Reviewers: dvyukov

Reviewed By: dvyukov

CC: glider, llvm-commits

Differential Revision: http://llvm-reviews.chandlerc.com/D2340
------------------------------------------------------------------------


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/branches/release_34@197353 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_platform_limits_posix.cc
4b206b33f2ed4e5a06694c9eb388aca6a0c81b58 11-Dec-2013 Bill Wendling <isanbard@gmail.com> Readd the prototype.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/branches/release_34@197012 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_stacktrace.h
24861607cb3c606ad46e724456eb851558c85330 11-Dec-2013 Bill Wendling <isanbard@gmail.com> Merging r196802:
------------------------------------------------------------------------
r196802 | chandlerc | 2013-12-09 11:25:51 -0800 (Mon, 09 Dec 2013) | 11 lines

Revert three patches which were committed without explicit contribution
by their authors.

This may break builds where others added code relying on these patches,
but please *do not* revert this commit. Instead, we will prepare patches
which fix the failures.

Reverts the following commits:
r168306: "[asan] support x32 mode in the fast stack unwinder. Patch by H.J. Lu"
r168356: "[asan] more support for powerpc, patch by Peter Bergner"
r196489: "[sanitizer] fix the ppc32 build (patch by Jakub Jelinek)"
------------------------------------------------------------------------


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/branches/release_34@197011 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_linux.cc
san/asan_mapping.h
anitizer_common/sanitizer_common.h
anitizer_common/sanitizer_internal_defs.h
anitizer_common/sanitizer_stacktrace.cc
anitizer_common/sanitizer_stacktrace.h
2bbe0d1429a46cb93aafc055de6a8f1b5433e454 11-Dec-2013 Bill Wendling <isanbard@gmail.com> Merging r196809:
------------------------------------------------------------------------
r196809 | rsmith | 2013-12-09 11:52:39 -0800 (Mon, 09 Dec 2013) | 2 lines

Unbreak build by adding an implementation of PopStackFrames function.

------------------------------------------------------------------------


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/branches/release_34@197010 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_stacktrace.cc
e1a6a9aa854641f118369f478ad2b1d30c456ec8 10-Dec-2013 Bill Wendling <isanbard@gmail.com> Merging r196799:
------------------------------------------------------------------------
r196799 | wdietz2 | 2013-12-09 11:04:33 -0800 (Mon, 09 Dec 2013) | 1 line

ubsan: Fix typo in 'TypeCheck/vptr.cpp' test to resolve 32bit failure.
------------------------------------------------------------------------


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/branches/release_34@196871 91177308-0d34-0410-b5e6-96231b3b80d8
bsan/lit_tests/TestCases/TypeCheck/vptr.cpp
48d6b10c74138db9298a2eda28d5c7f5ae72ea42 10-Dec-2013 Bill Wendling <isanbard@gmail.com> Merging r196612:
------------------------------------------------------------------------
r196612 | wdietz2 | 2013-12-06 13:49:18 -0800 (Fri, 06 Dec 2013) | 1 line

Fix integer tests on platforms where uint64_t is 'unsigned long long'.
------------------------------------------------------------------------


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/branches/release_34@196870 91177308-0d34-0410-b5e6-96231b3b80d8
bsan/lit_tests/TestCases/Integer/no-recover.cpp
bsan/lit_tests/TestCases/Integer/uadd-overflow.cpp
bsan/lit_tests/TestCases/Integer/usub-overflow.cpp
a320b596bedf15789acfd8e57754df4aa479826e 05-Dec-2013 Alexey Samsonov <samsonov@google.com> Merging r196501:
------------------------------------------------------------------------
r196501 | samsonov | 2013-12-05 16:53:36 +0400 (Thu, 05 Dec 2013) | 1 line

Run TSan/MSan lit tests only on 64-bit platforms
------------------------------------------------------------------------


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/branches/release_34@196502 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/CMakeLists.txt
san/lit_tests/lit.cfg
san/lit_tests/CMakeLists.txt
san/lit_tests/lit.cfg
b37127085cbcc79f5f859bfab8e7204201c18287 05-Dec-2013 Kostya Serebryany <kcc@google.com> [asan] port r196375 to 3.4

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/branches/release_34@196478 91177308-0d34-0410-b5e6-96231b3b80d8
san/tests/asan_test.cc
san/tests/asan_test_utils.h
28e41fed078ce7a457a1ab8de1b07407266695fb 25-Nov-2013 Sergey Matveev <earthdok@google.com> Merging r195652:
------------------------------------------------------------------------
r195652 | smatveev | 2013-11-25 19:54:31 +0400 (Mon, 25 Nov 2013) | 3 lines

[lsan] Unbreak lsan_testlib.cc.

Also, add missing logging output.
------------------------------------------------------------------------


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/branches/release_34@195668 91177308-0d34-0410-b5e6-96231b3b80d8
san/lsan_common.cc
san/lsan_preinit.cc
san/tests/lsan_testlib.cc
cf2469dc14ad84374d59f286a41cc1c9b190c0e4 25-Nov-2013 Sergey Matveev <earthdok@google.com> Merging r195643:
------------------------------------------------------------------------
r195643 | smatveev | 2013-11-25 18:30:37 +0400 (Mon, 25 Nov 2013) | 1 line

[lsan] Add a missing file.
------------------------------------------------------------------------


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/branches/release_34@195667 91177308-0d34-0410-b5e6-96231b3b80d8
san/lsan_preinit.cc
74c88796a4024922144660ed1ade519af5008fe2 25-Nov-2013 Sergey Matveev <earthdok@google.com> Merging r195642:
------------------------------------------------------------------------
r195642 | smatveev | 2013-11-25 18:25:36 +0400 (Mon, 25 Nov 2013) | 5 lines

[lsan] Unbreak standalone LSan's initialization by making it more like ASan's.

No longer allow interceptors to be called during initialization, use the preinit
array (instead of initializing at the first call to an intercepted function) and
adopt the calloc() hack from ASan.
------------------------------------------------------------------------


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/branches/release_34@195666 91177308-0d34-0410-b5e6-96231b3b80d8
san/CMakeLists.txt
san/lsan.cc
san/lsan.h
san/lsan_interceptors.cc
12f610efe6f48efb2d03b985b3b2a36d4556fca7 25-Nov-2013 Sergey Matveev <earthdok@google.com> Merging r195570:
------------------------------------------------------------------------
r195570 | smatveev | 2013-11-24 18:28:18 +0400 (Sun, 24 Nov 2013) | 4 lines

[lsan] Use real memset to clear memory in standalone LSan.

Performance improvement. Also, the allocator was using CompactSizeClassMap for
no good reason, so I switched it to DefaultSizeClassMap.
------------------------------------------------------------------------


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/branches/release_34@195665 91177308-0d34-0410-b5e6-96231b3b80d8
san/lsan_allocator.cc
0d2a93500c4b071977a9ee89dbc24586fe54bca5 22-Nov-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> Merging r195442:
------------------------------------------------------------------------
r195442 | eugenis | 2013-11-22 15:01:43 +0400 (Fri, 22 Nov 2013) | 2 lines

[sanitizer] Fix kernel headers compatibility on powerpc64.

------------------------------------------------------------------------


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/branches/release_34@195464 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_platform_limits_linux.cc
anitizer_common/sanitizer_platform_limits_posix.h
f17dd743288942a36f82e09706f18477b27f603d 22-Nov-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> Merging r195436:
------------------------------------------------------------------------
r195436 | eugenis | 2013-11-22 14:09:34 +0400 (Fri, 22 Nov 2013) | 2 lines

[sanitizer] Add kernel_stat definitions for arm.

------------------------------------------------------------------------


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/branches/release_34@195463 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_platform_limits_posix.h
d7041c6617b10302be6849b55a88dc928fd7f6b8 22-Nov-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> Merging r195434:
------------------------------------------------------------------------
r195434 | eugenis | 2013-11-22 13:32:39 +0400 (Fri, 22 Nov 2013) | 4 lines

[sanitizer] Restore perf_event_attr handling.

This time in a forward/backward compatible way.

------------------------------------------------------------------------


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/branches/release_34@195462 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_common_syscalls.inc
anitizer_common/sanitizer_platform_limits_linux.cc
anitizer_common/sanitizer_platform_limits_posix.h
43e7e4ec3743b46a1d2e8f268d02c976c9e8e5a6 22-Nov-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> Merging r195433:
------------------------------------------------------------------------
r195433 | eugenis | 2013-11-22 13:26:10 +0400 (Fri, 22 Nov 2013) | 2 lines

[sanitizer] Fix build.

------------------------------------------------------------------------


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/branches/release_34@195461 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_common_syscalls.inc
anitizer_common/sanitizer_platform_limits_linux.cc
anitizer_common/sanitizer_platform_limits_posix.h
e1e68833ddbebf4827690218763c0be5b91104e7 22-Nov-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> Merging r195427:
------------------------------------------------------------------------
r195427 | eugenis | 2013-11-22 13:01:50 +0400 (Fri, 22 Nov 2013) | 10 lines

[sanitizer] Change the way we use certain linux kernel headers.

Some linux headers are broken on older kernels.
Instead of depending on the constants and types from such headers directly,
we provide our own definitions and then verify them with compile-time
assertions. This makes the dependency on the headers test-only and would allow
switching to some other way of testing on older kernels, or even disable the
tests as the last resort (after all, kernel interfaces are supposed to be
stable).

------------------------------------------------------------------------


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/branches/release_34@195460 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_platform_limits_linux.cc
anitizer_common/sanitizer_platform_limits_posix.cc
anitizer_common/sanitizer_platform_limits_posix.h
91dee59b95624ce67c17377ed8b25c575d5ad685 18-Nov-2013 Alexey Samsonov <samsonov@google.com> [ASan] Run one of UAS tests in UAR mode as well

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@195015 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/TestCases/use-after-scope.cc
7214553322c51db3753c8fba0de394b519b7802c 18-Nov-2013 Kostya Serebryany <kcc@google.com> [asan] fix Windows build

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@195012 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_poisoning.cc
2991200255098ac0739952351b2eb2b487819eec 18-Nov-2013 Kostya Serebryany <kcc@google.com> [asan] introduce __sanitizer_annotate_contiguous_container

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@195011 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_poisoning.cc
san/lit_tests/TestCases/contiguous_container.cc
anitizer_common/sanitizer_internal_defs.h
8b0c8a8b6fd2817b0697c255297ca9d48076fcbf 18-Nov-2013 Kostya Serebryany <kcc@google.com> [asan] support __hppa__ (by John David Anglin)

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@194995 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_linux.cc
ce64270a78fac8b4e388756402903757d5ed9103 17-Nov-2013 Alexey Samsonov <samsonov@google.com> [ASan] Build ASan on Windows only if MSVC is used

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@194963 91177308-0d34-0410-b5e6-96231b3b80d8
MakeLists.txt
3125de9e3048bc505344053d3518cccab7ee6897 17-Nov-2013 Alexey Samsonov <samsonov@google.com> CMake: don't build sanitizer runtimes on 64-bit Windows (it's unsupported for now)

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@194958 91177308-0d34-0410-b5e6-96231b3b80d8
MakeLists.txt
san/CMakeLists.txt
c85d6274d127d988539ed6a35242d3f82c4eb5bf 17-Nov-2013 Alexey Samsonov <samsonov@google.com> [DFSan] Don't include public headers in dfsan runtime code

Summary:
Definitions we use in public sanitizer headers may
slightly conflict with the ones we use in private sanitizer runtimes.
Moreover, we generally forbid to include any system headers (like <stdint.h>)
in sanitizer runtime headers. This leads to inevitable duplication of selected
interface function declarations, but we decided to live with it.

Reviewers: pcc

Reviewed By: pcc

CC: kcc, llvm-commits

Differential Revision: http://llvm-reviews.chandlerc.com/D2179

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@194955 91177308-0d34-0410-b5e6-96231b3b80d8
fsan/dfsan.cc
fsan/dfsan.h
fsan/dfsan_custom.cc
fsan/dfsan_interceptors.cc
868082b4f9eb6fd7f2f9c9cc36002afbfdf17802 16-Nov-2013 Tim Northover <tnorthover@apple.com> Add clang_darwin_embedded platform for embedded projects

This should build a separate set of embedded runtime libraries, supporting the
option product:

{PIC, static} x { Hard-float, soft-float }

The emphasis is on ARM platforms (Cortex-M4F, Cortex-M3, Cortex-M0) but X86
variants are also built where possible.

rdar://problem/10817205

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@194873 91177308-0d34-0410-b5e6-96231b3b80d8
rm/Makefile.mk
nt_util.c
efb0226d4bc5a61e26851271e1aec2dd0e1f6781 15-Nov-2013 Bob Wilson <bob.wilson@apple.com> Remove #include of net/ip_mroute.h for SANITIZER_MAC.

This header has not been supported at all for the last 2 major OS X releases.
Removed its include and the capture of related symbols.

<rdar://problem/15303348>

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@194841 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_common_interceptors_ioctl.inc
anitizer_common/sanitizer_platform_limits_posix.cc
anitizer_common/sanitizer_platform_limits_posix.h
11f5309ec1bf13430c8a3a16f177d9e8e1190e38 15-Nov-2013 Dmitry Vyukov <dvyukov@google.com> tsan: add support for robust mutexes



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@194823 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_common_interceptors.inc
anitizer_common/sanitizer_platform_limits_posix.cc
anitizer_common/sanitizer_platform_limits_posix.h
san/lit_tests/mutex_robust.cc
san/lit_tests/mutex_robust2.cc
san/rtl/tsan_interceptors.cc
san/rtl/tsan_rtl.h
san/rtl/tsan_rtl_mutex.cc
106cb08a2457444e2d66404917ed3bd31b3c0726 15-Nov-2013 Kostya Serebryany <kcc@google.com> [asan] helper script to dump/merge coverage data

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@194809 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/scripts/sancov.py
6a58b0078a94195f963fede873068d7a0982c509 15-Nov-2013 Alexey Samsonov <samsonov@google.com> [Sanitizer] Make slow unwinder on Linux more robust

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@194805 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/TestCases/double-free.cc
anitizer_common/sanitizer_linux_libcdep.cc
anitizer_common/sanitizer_stacktrace.cc
anitizer_common/sanitizer_stacktrace.h
5b2d43008240767872d0fe4913b3e5b784954e43 15-Nov-2013 Dmitry Vyukov <dvyukov@google.com> tsan: add proper cfi directives to assembly code
this allows gdb to unwind through our hacky call



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@194803 91177308-0d34-0410-b5e6-96231b3b80d8
san/rtl/tsan_rtl.h
af1a7141afb058e044d4d3c2746abf491771e45b 15-Nov-2013 Alexey Samsonov <samsonov@google.com> Don't build unsupported compiler-rt pieces on Windows

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@194796 91177308-0d34-0410-b5e6-96231b3b80d8
MakeLists.txt
dbd69cc9ccda50efd0305cd0ce9bad50defe4b42 15-Nov-2013 Bob Wilson <bob.wilson@apple.com> Reapply asan coverage changes 194702-194704.

I still don't know what is causing our bootstrapped LTO buildbots to fail,
but llvm r194701 seems to be OK and I can't imagine that these changes could
cause the problem.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@194790 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_flags.h
san/asan_rtl.cc
san/lit_tests/TestCases/Linux/coverage.cc
anitizer_common/CMakeLists.txt
anitizer_common/sanitizer_common.cc
anitizer_common/sanitizer_common.h
anitizer_common/sanitizer_coverage.cc
anitizer_common/sanitizer_internal_defs.h
san/rtl/tsan_symbolize.cc
ae51c273d55fa172908cf940c238eacec0f73223 15-Nov-2013 Bob Wilson <bob.wilson@apple.com> Speculatively revert asan coverage changes 194702-194704.

Apple's bootstrapped LTO builds have been failing, and these changes (along
with llvm 194701) are the only things on the blamelist. I will either reapply
these changes or help debug the problem, depending on whether this fixes the
buildbots.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@194779 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_flags.h
san/asan_rtl.cc
san/lit_tests/TestCases/Linux/coverage.cc
anitizer_common/CMakeLists.txt
anitizer_common/sanitizer_common.cc
anitizer_common/sanitizer_common.h
anitizer_common/sanitizer_coverage.cc
anitizer_common/sanitizer_internal_defs.h
san/rtl/tsan_symbolize.cc
e767e350b1a6461bc29cfea28af75f908d7da56e 14-Nov-2013 Dmitry Vyukov <dvyukov@google.com> asan: disable pthread_setname_np interceptor
it does not work anyway and can cause significant slowdown





git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@194711 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_interceptors.cc
1170865d797f338b71d8b9d20297f3d9015144be 14-Nov-2013 Kostya Serebryany <kcc@google.com> [asan] unbreak dfsan, which includes sanitizer/common_interface_defs.h into internal sources (although it shoudn't)

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@194704 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_coverage.cc
anitizer_common/sanitizer_internal_defs.h
9ae2ca693a89c4f5c7e67788038ea84c328b8b1b 14-Nov-2013 Kostya Serebryany <kcc@google.com> [asan] disable CovDump on Windows for now (fails to compile)

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@194703 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_coverage.cc
68e16eb59c7f654cdb98a2811b3a42612b58a735 14-Nov-2013 Kostya Serebryany <kcc@google.com> [asan] Poor man's coverage that works with ASan (compiler-rt part)

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@194702 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_flags.h
san/asan_rtl.cc
san/lit_tests/TestCases/Linux/coverage.cc
anitizer_common/CMakeLists.txt
anitizer_common/sanitizer_common.cc
anitizer_common/sanitizer_common.h
anitizer_common/sanitizer_coverage.cc
anitizer_common/sanitizer_internal_defs.h
san/rtl/tsan_symbolize.cc
b9ac7162892b283f05b70b6d79eb92119712ff0d 14-Nov-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [msan] A test for r194697.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@194699 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/wrap_indirect_calls.cc
san/lit_tests/wrap_indirect_calls/caller.cc
san/lit_tests/wrap_indirect_calls/lit.local.cfg
san/lit_tests/wrap_indirect_calls/one.cc
san/lit_tests/wrap_indirect_calls/two.cc
san/lit_tests/wrap_indirect_calls/wrapper.cc
5e43cfa5e7f6d344f4b0a6a9f7a4b2811d5b8bab 14-Nov-2013 Alexey Samsonov <samsonov@google.com> [UBSan] Make sure ASan and UBSan interact properly by running each test from UBSan test suite with and without ASan

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@194698 91177308-0d34-0410-b5e6-96231b3b80d8
bsan/lit_tests/AsanConfig/lit.cfg
bsan/lit_tests/AsanConfig/lit.site.cfg.in
bsan/lit_tests/CMakeLists.txt
bsan/lit_tests/Float/cast-overflow.cpp
bsan/lit_tests/Integer/add-overflow.cpp
bsan/lit_tests/Integer/div-overflow.cpp
bsan/lit_tests/Integer/div-zero.cpp
bsan/lit_tests/Integer/incdec-overflow.cpp
bsan/lit_tests/Integer/mul-overflow.cpp
bsan/lit_tests/Integer/negate-overflow.cpp
bsan/lit_tests/Integer/no-recover.cpp
bsan/lit_tests/Integer/shift.cpp
bsan/lit_tests/Integer/sub-overflow.cpp
bsan/lit_tests/Integer/uadd-overflow.cpp
bsan/lit_tests/Integer/uincdec-overflow.cpp
bsan/lit_tests/Integer/umul-overflow.cpp
bsan/lit_tests/Integer/usub-overflow.cpp
bsan/lit_tests/Misc/bool.cpp
bsan/lit_tests/Misc/bounds.cpp
bsan/lit_tests/Misc/deduplication.cpp
bsan/lit_tests/Misc/enum.cpp
bsan/lit_tests/Misc/missing_return.cpp
bsan/lit_tests/Misc/unreachable.cpp
bsan/lit_tests/Misc/vla.c
bsan/lit_tests/TestCases/Float/cast-overflow.cpp
bsan/lit_tests/TestCases/Integer/add-overflow.cpp
bsan/lit_tests/TestCases/Integer/div-overflow.cpp
bsan/lit_tests/TestCases/Integer/div-zero.cpp
bsan/lit_tests/TestCases/Integer/incdec-overflow.cpp
bsan/lit_tests/TestCases/Integer/mul-overflow.cpp
bsan/lit_tests/TestCases/Integer/negate-overflow.cpp
bsan/lit_tests/TestCases/Integer/no-recover.cpp
bsan/lit_tests/TestCases/Integer/shift.cpp
bsan/lit_tests/TestCases/Integer/sub-overflow.cpp
bsan/lit_tests/TestCases/Integer/uadd-overflow.cpp
bsan/lit_tests/TestCases/Integer/uincdec-overflow.cpp
bsan/lit_tests/TestCases/Integer/umul-overflow.cpp
bsan/lit_tests/TestCases/Integer/usub-overflow.cpp
bsan/lit_tests/TestCases/Misc/bool.cpp
bsan/lit_tests/TestCases/Misc/bounds.cpp
bsan/lit_tests/TestCases/Misc/deduplication.cpp
bsan/lit_tests/TestCases/Misc/enum.cpp
bsan/lit_tests/TestCases/Misc/missing_return.cpp
bsan/lit_tests/TestCases/Misc/unreachable.cpp
bsan/lit_tests/TestCases/Misc/vla.c
bsan/lit_tests/TestCases/TypeCheck/Function/function.cpp
bsan/lit_tests/TestCases/TypeCheck/Function/lit.local.cfg
bsan/lit_tests/TestCases/TypeCheck/misaligned.cpp
bsan/lit_tests/TestCases/TypeCheck/null.cpp
bsan/lit_tests/TestCases/TypeCheck/vptr.cpp
bsan/lit_tests/TypeCheck/Function/function.cpp
bsan/lit_tests/TypeCheck/Function/lit.local.cfg
bsan/lit_tests/TypeCheck/misaligned.cpp
bsan/lit_tests/TypeCheck/null.cpp
bsan/lit_tests/TypeCheck/vptr.cpp
bsan/lit_tests/UbsanConfig/lit.cfg
bsan/lit_tests/UbsanConfig/lit.site.cfg.in
bsan/lit_tests/lit.cfg
bsan/lit_tests/lit.common.cfg
bsan/lit_tests/lit.site.cfg.in
8c6e4855ac47415f1f2863690860f24213638cb5 14-Nov-2013 Alexey Samsonov <samsonov@google.com> [ASan] Introduce a top-level target to collect all ASan runtimes and deps

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@194696 91177308-0d34-0410-b5e6-96231b3b80d8
san/CMakeLists.txt
san/lit_tests/CMakeLists.txt
san/tests/CMakeLists.txt
aed8584ec902e6fe67c03f1102feee6a3f1bdd14 14-Nov-2013 Alexey Samsonov <samsonov@google.com> [UBSan] Update UBSan location rendering to match r194686

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@194687 91177308-0d34-0410-b5e6-96231b3b80d8
bsan/ubsan_diag.cc
bb4697fe8cbe79c517e6f85713f2de6bd804209d 14-Nov-2013 Alexey Samsonov <samsonov@google.com> [Sanitizer] Print symbolized stack frame using a single Printf() call.

This reduces the number of "write" syscalls performed to print a single
stack frame description, and makes sanitizer output less intermixed with
program output. Also, add a number of unit tests.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@194686 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_common.cc
anitizer_common/sanitizer_common.h
anitizer_common/sanitizer_printf.cc
anitizer_common/sanitizer_stacktrace.cc
anitizer_common/tests/sanitizer_common_test.cc
694d85636b148dfcac37e5c23639baa8fe9abce9 14-Nov-2013 Alexey Samsonov <samsonov@google.com> [Sanitizer] Add print_summary runtime flag to disable error summaries (UBSan doesn't need them)

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@194685 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/TestCases/print_summary.cc
anitizer_common/sanitizer_common.cc
anitizer_common/sanitizer_flags.cc
anitizer_common/sanitizer_flags.h
d2e32e323cca83b666ecd124ebfd1720232d0928 13-Nov-2013 Alexander Potapenko <glider@google.com> [ASan] Remove the stale dependency on the Foundation framework from the dynamic ASan runtime.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@194583 91177308-0d34-0410-b5e6-96231b3b80d8
san/CMakeLists.txt
24d775e42b87f6d7464582eb8e5c2eed347224c5 13-Nov-2013 Alexey Samsonov <samsonov@google.com> [Sanitizer] Use same PC threshold in slow unwinder on all platforms

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@194580 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_linux_libcdep.cc
anitizer_common/sanitizer_stacktrace.cc
anitizer_common/sanitizer_stacktrace.h
1b17f5b79d58c5aff291dde05727ad0b215b81c6 13-Nov-2013 Alexey Samsonov <samsonov@google.com> [ASan] Do not rely on malloc context in allocator reports.

Invoke a fatal stack trace unwinder when ASan prints allocator-relevant
error reports (double-free, alloc-dealloc-mismatch, invalid-free).
Thus we'll be able to print complete stack trace even if allocation/free
stacks are not stored (malloc_context_size=0).

Based on the patch by Yuri Gribov!


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@194579 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_allocator.h
san/asan_allocator2.cc
san/asan_malloc_linux.cc
san/asan_malloc_win.cc
san/asan_report.cc
san/asan_report.h
san/lit_tests/TestCases/Linux/malloc_delete_mismatch.cc
san/lit_tests/TestCases/double-free.cc
san/lit_tests/TestCases/invalid-free.cc
san/tests/asan_noinst_test.cc
anitizer_common/sanitizer_stacktrace.h
anitizer_common/sanitizer_stacktrace_libcdep.cc
anitizer_common/tests/sanitizer_stacktrace_test.cc
348aac42b606dd2d4cec9d68a85bf0144bd7c2f3 13-Nov-2013 Alexey Samsonov <samsonov@google.com> [ASan] Use new feature of FileCheck: provide multiple --check-prefix args

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@194578 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/TestCases/heap-overflow.cc
san/lit_tests/TestCases/large_func_test.cc
san/lit_tests/TestCases/null_deref.cc
san/lit_tests/TestCases/strncpy-overflow.cc
san/lit_tests/TestCases/use-after-free-right.cc
san/lit_tests/TestCases/use-after-free.cc
b527f7de80001569542e3f0ef4c7f4b0cb15cb67 13-Nov-2013 Alexander Potapenko <glider@google.com> [ASan] Don't call __asan_init() from certain interceptors on Darwin.

Fixes http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58994, which hadn't
manifested in LLVM because libclang_rt.asan_osx_dynamic.dylib used to depend on
the Foundation framework.
Without that dependency some interceptors may be called from the system
libraries before libSystem_initializer() is called, which lead to assertion
failures in sanitizer_mac.cc (_NSGetEnviron() returns NULL).

To fix the problem we fall back to the original functions in the common
libsanitizer interceptors and the __cxa_atexit() interceptor on Darwin.

This patch also prints a better error message in the case _NSGetEnviron()
returns NULL.



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@194573 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_interceptors.cc
anitizer_common/sanitizer_mac.cc
ae914e2fc00c60d0f8f8b9b06bcc8b0b2d470181 13-Nov-2013 Kostya Serebryany <kcc@google.com> [asan] fix a leak in tds (https://code.google.com/p/address-sanitizer/issues/detail?id=233)

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@194572 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_thread.cc
san/lit_tests/TestCases/Linux/tsd_dtor_leak.cc
7bb5d49a6402c5a1d20911e6992ebb7e9e4468c4 12-Nov-2013 Yuchen Wu <yuchenericwu@hotmail.com> Added summary info to GCDAProfiling.

This function will be called by GCOVProfiling to write and update object
and program summaries to be read in by llvm-cov.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@194499 91177308-0d34-0410-b5e6-96231b3b80d8
rofile/GCDAProfiling.c
55c7947a742aa72530eef52d902e60e5571ac3cf 12-Nov-2013 Alexey Samsonov <samsonov@google.com> [Sanitizer] Specify a default value for each common runtime flag

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@194479 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_rtl.cc
san/lsan.cc
san/msan.cc
anitizer_common/sanitizer_flags.cc
anitizer_common/sanitizer_flags.h
san/rtl/tsan_flags.cc
0797ff48ae6a585382b6ff8bda98dfa72874e4d0 12-Nov-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Avoid needless use of stringification (#symver) in INTERCEPT_FUNCTION_VER.

This is a workaround for clang-format bug (PR17874).


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@194468 91177308-0d34-0410-b5e6-96231b3b80d8
nterception/interception_linux.h
anitizer_common/sanitizer_common_interceptors.inc
san/rtl/tsan_interceptors.cc
abd768d337ffc997392323a70c8c53e459173d9b 11-Nov-2013 Tim Northover <tnorthover@apple.com> ARM: make assembly files compile Thumb2 with nop IT block.

ARM's UAL syntax allows the same assembly file to be compiled in both ARM and
Thumb mode. Conditional execution is handled by requiring the Thumb IT blocks,
but essentially ignoring them when compiling for ARM.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@194429 91177308-0d34-0410-b5e6-96231b3b80d8
rm/comparesf2.S
rm/switch16.S
rm/switch32.S
rm/switch8.S
rm/switchu8.S
rm/udivmodsi4.S
rm/udivsi3.S
rm/umodsi3.S
6f94d718a4edee9ca6718cb09bf913cbabaa2422 11-Nov-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [msan] One more test for r194374.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@194375 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/insertvalue_origin.cc
a537ea99d3dcc4b2dc0033aee7ad5cb1b378efc7 11-Nov-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Warn if interception fails.

This includes a clang-format pass over common interceptors.



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@194372 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_interceptors.cc
san/msan.cc
san/msan_interceptors.cc
anitizer_common/sanitizer_common_interceptors.inc
san/rtl/tsan_interceptors.cc
62355e98e83906e99a792441a72362005c740d4d 11-Nov-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [msan] Sanity check for non-PIE.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@194370 91177308-0d34-0410-b5e6-96231b3b80d8
san/msan_linux.cc
bb6bc9a0ae534ada3c0c2c226462c351c078d761 11-Nov-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [asan] Bypass pthread_attr_getdetachstate interceptor in compiler_rt code.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@194369 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_interceptors.cc
3366c5a79b2b5565602991d09b2bc4277e16ee84 09-Nov-2013 Timur Iskhodzhanov <timurrrr@google.com> Remove a FIXME now that I can't reproduce the problem

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@194331 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_win.cc
7177d2bbb5850fb499d3e8910b2e05f5c6b025b0 09-Nov-2013 Timur Iskhodzhanov <timurrrr@google.com> [Sanitizers] Share some stack walking code between Windows and Linux

Reviewed at http://llvm-reviews.chandlerc.com/D2126

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@194326 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_linux_libcdep.cc
anitizer_common/sanitizer_stacktrace.cc
anitizer_common/sanitizer_stacktrace.h
anitizer_common/sanitizer_win.cc
49496747758bf44163768ce3e07e40c8f95ccba9 07-Nov-2013 Alexander Potapenko <glider@google.com> [ASan] Add CMake configs for libclang_rt.asan_iossim_dynamic.dylib

CMake changes to build the ASan runtime for the iOS simulator. This is a universal library targeting the same architectures as the OSX ASan runtime does, thus the iossim version can't live in the same universal libclang_rt.asan_osx_dynamic.dylib

The difference between the OSX and iossim builds is in the -mios-simulator-version-min and -ios_simulator_version_min flags that tell Clang to compile and link iossim code.

The iossim runtime can only be built on a machine with both Xcode and the iOS Simulator SDK installed. If xcodebuild -version -sdk iphonesimulator Path returns a nonempty path, it is used when compiling and linking the iossim runtime.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@194199 91177308-0d34-0410-b5e6-96231b3b80d8
san/CMakeLists.txt
nterception/CMakeLists.txt
san/CMakeLists.txt
anitizer_common/CMakeLists.txt
f16dc4234098a22a9d0d56f0198d87905481e7fd 07-Nov-2013 Alexey Samsonov <samsonov@google.com> [Sanitizer] Make StackTrace::Unwind the only public way to unwind a stack trace.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@194196 91177308-0d34-0410-b5e6-96231b3b80d8
san/msan.cc
san/msan.h
anitizer_common/sanitizer_stacktrace.h
anitizer_common/sanitizer_stacktrace_libcdep.cc
anitizer_common/tests/sanitizer_stacktrace_test.cc
san/rtl/tsan_rtl_report.cc
cca3cc0fc367d221b41135b13cdbca810639b0cd 07-Nov-2013 Alexey Samsonov <samsonov@google.com> [Sanitizer] Presumable fix stack trace unwinding on Windows

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@194195 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_win.cc
e74968cbb29c80073e4ff440555e35f3fbed2f20 07-Nov-2013 Alexey Samsonov <samsonov@google.com> [Sanitizer] Call Windows unwinder 'slow' and share StackTrace::Unwind across all platforms. No functionality change.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@194193 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/CMakeLists.txt
anitizer_common/sanitizer_posix_libcdep.cc
anitizer_common/sanitizer_stacktrace.h
anitizer_common/sanitizer_stacktrace_libcdep.cc
anitizer_common/sanitizer_win.cc
e041c6024b3ebf1365c0f99732fc69c607577571 06-Nov-2013 Kostya Serebryany <kcc@google.com> [asan] attempting to fix x32 build (see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59018)

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@194155 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_linux.cc
anitizer_common/sanitizer_platform_limits_linux.cc
anitizer_common/sanitizer_platform_limits_posix.cc
anitizer_common/sanitizer_platform_limits_posix.h
7d4a9553bd3bc43a310e1d13dd699b79f814d77b 06-Nov-2013 Alexander Potapenko <glider@google.com> [ASan] Use OS-specific matches in the malloc_context_size.cc lit test.

The top stack frames for operator new and operator delete are different on Linux and Darwin.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@194150 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/TestCases/malloc_context_size.cc
e9e2b7f964413dccf4c724eb9ca39d2686cc29d4 06-Nov-2013 Alexey Samsonov <samsonov@google.com> [ASan] Disable back init-order checker. Make strict_init_order imply check_initialization_order

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@194125 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_rtl.cc
san/lit_tests/TestCases/Linux/initialization-bug-any-order.cc
san/lit_tests/TestCases/init-order-atexit.cc
san/lit_tests/TestCases/init-order-dlopen.cc
san/lit_tests/TestCases/init-order-pthread-create.cc
4b9f050c2acab536356342ab96e6cc76c281ac24 06-Nov-2013 Alexey Samsonov <samsonov@google.com> [ASan] Make sure slow stack unwinder doesn't return empty stacks.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@194107 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/TestCases/malloc_context_size.cc
anitizer_common/sanitizer_linux_libcdep.cc
4197fa23ada9682343a15b68dde08c0249db172a 05-Nov-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [msan] Fix a very unfortunate typo in origin copying.

It was causing randomly missing origins.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@194036 91177308-0d34-0410-b5e6-96231b3b80d8
san/msan_interceptors.cc
san/tests/msan_test.cc
f7e6f383d9c661ccbcd986fc1478336f57f4ce7c 03-Nov-2013 Bob Wilson <bob.wilson@apple.com> Push back various changes for building Apple's compiler-rt dylib.

These changes had accumulated internally at Apple for no good reason.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193944 91177308-0d34-0410-b5e6-96231b3b80d8
pple_versioning.c
e4f9f8a1296768a7a6b6646a3b241a379f4a5e15 02-Nov-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Intercept strptime.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193903 91177308-0d34-0410-b5e6-96231b3b80d8
san/msan_interceptors.cc
san/tests/msan_test.cc
anitizer_common/sanitizer_common_interceptors.inc
anitizer_common/sanitizer_platform_interceptors.h
san/rtl/tsan_stat.cc
san/rtl/tsan_stat.h
5492ff9a1730b6b7a6d7ab70a14e60be1f44b0c9 02-Nov-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [msan] Intercept memccpy.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193897 91177308-0d34-0410-b5e6-96231b3b80d8
san/msan_interceptors.cc
san/tests/msan_test.cc
8aa3d18712dec51d771523867305133ee41e006d 01-Nov-2013 Dmitry Vyukov <dvyukov@google.com> tsna: do not call user code from within runtime (from fflush)



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193880 91177308-0d34-0410-b5e6-96231b3b80d8
san/rtl/tsan_interceptors.cc
50cdc5a0d78f400183bd9dc7c23a2ed6e733e48b 01-Nov-2013 Alexey Samsonov <samsonov@google.com> [Sanitizer] Fix Go build

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193873 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_common.cc
c50f7962c823506109b6307209411b36e0d46abd 01-Nov-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Switch to an older version of struct iocb that is found in the latest Android NDK.

They are binary compatible, and we don't use any of the new fields anyway.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193870 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_platform_limits_linux.cc
anitizer_common/sanitizer_platform_limits_posix.h
7f80655d8283dbdf77bfee4a849eed4d59e95c7a 01-Nov-2013 Alexey Samsonov <samsonov@google.com> [ASan] Kill use_stack_depot runtime flag and stack trace compression routines.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193868 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_allocator2.cc
san/asan_flags.h
san/asan_rtl.cc
san/tests/asan_noinst_test.cc
anitizer_common/sanitizer_stacktrace.cc
anitizer_common/sanitizer_stacktrace.h
2fb08720b11b4c339e191b90d85477c6a2dd74db 01-Nov-2013 Alexey Samsonov <samsonov@google.com> [Sanitizer] Unify summary reporting across all sanitizers.

This change unifies the summary printing across sanitizers:
now each tool uses specific version of ReportErrorSummary() method,
which deals with symbolization of the top frame and formatting a
summary message. This change modifies the summary line for ASan+LSan mode:
now the summary mentions "AddressSanitizer" instead of "LeakSanitizer".


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193864 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_report.cc
san/lit_tests/TestCases/disabler.cc
san/lit_tests/TestCases/do_leak_check_override.cc
san/lit_tests/TestCases/ignore_object.cc
san/lit_tests/TestCases/large_allocation_leak.cc
san/lit_tests/TestCases/leak_check_at_exit.cc
san/lit_tests/TestCases/link_turned_off.cc
san/lit_tests/TestCases/pointer_to_self.cc
san/lit_tests/TestCases/stale_stack_leak.cc
san/lit_tests/TestCases/suppressions_default.cc
san/lit_tests/TestCases/suppressions_file.cc
san/lit_tests/TestCases/swapcontext.cc
san/lit_tests/TestCases/use_after_return.cc
san/lit_tests/TestCases/use_globals_initialized.cc
san/lit_tests/TestCases/use_globals_uninitialized.cc
san/lit_tests/TestCases/use_registers.cc
san/lit_tests/TestCases/use_stacks.cc
san/lit_tests/TestCases/use_stacks_threaded.cc
san/lit_tests/TestCases/use_tls_dynamic.cc
san/lit_tests/TestCases/use_tls_pthread_specific_dynamic.cc
san/lit_tests/TestCases/use_tls_pthread_specific_static.cc
san/lit_tests/TestCases/use_tls_static.cc
san/lit_tests/TestCases/use_unaligned.cc
san/lsan_common.cc
san/msan_report.cc
anitizer_common/sanitizer_common.cc
anitizer_common/sanitizer_common.h
21bf90dcf562bd05df20eb55b8d0559017574ffb 01-Nov-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [msan] Check that address is an app region before printing shadow.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193863 91177308-0d34-0410-b5e6-96231b3b80d8
san/msan.cc
bd65956821ebe3f4e1fb0b57892a5a443ad50c6f 01-Nov-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Enhance io_submti syscall handler.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193848 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/Linux/syscalls.cc
anitizer_common/sanitizer_common_syscalls.inc
anitizer_common/sanitizer_platform_limits_linux.cc
anitizer_common/sanitizer_platform_limits_posix.cc
anitizer_common/sanitizer_platform_limits_posix.h
a96c4dc70efa6e45b27640cdd9812e0817c9a75d 01-Nov-2013 Alexey Samsonov <samsonov@google.com> Consistently use StackTrace::PrintStack in ASan, LSan and MSan

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193834 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_stack.cc
san/lsan_common.cc
san/msan_report.cc
anitizer_common/sanitizer_stacktrace.cc
anitizer_common/sanitizer_stacktrace.h
66d91e3356a0c4d7aff3beaaaff3e87bbaec805c 31-Oct-2013 Alexey Samsonov <samsonov@google.com> [Sanitizer] Add Symbolizer::AddHooks() and use it in TSan and MSan.

Summary:
TSan and MSan need to know if interceptor was called by the
user code or by the symbolizer and use pre- and post-symbolization hooks
for that. Make Symbolizer class responsible for calling these hooks instead.
This would ensure the hooks are only called when necessary (during
in-process symbolization, they are not needed for out-of-process) and
save specific sanitizers from tracing all places in the code where symbolization
will be performed.

Reviewers: eugenis, dvyukov

Reviewed By: eugenis

CC: llvm-commits

Differential Revision: http://llvm-reviews.chandlerc.com/D2067

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193807 91177308-0d34-0410-b5e6-96231b3b80d8
san/msan.cc
san/msan_report.cc
anitizer_common/sanitizer_symbolizer.cc
anitizer_common/sanitizer_symbolizer.h
anitizer_common/sanitizer_symbolizer_posix_libcdep.cc
san/rtl/tsan_rtl.cc
san/rtl/tsan_symbolize.cc
san/rtl/tsan_symbolize.h
b8a141f3783d796eabf45fabff82f3e08244e338 31-Oct-2013 Alexander Potapenko <glider@google.com> [libsanitizer] Define SANITIZER_IOS when building for iOS or iOS simulator.
Do not use struct stat64 and struct statfs64 when building for iOS, where __DARWIN_ONLY_64_BIT_INO_T is set to 1.




git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193775 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_platform.h
anitizer_common/sanitizer_platform_interceptors.h
anitizer_common/sanitizer_platform_limits_posix.cc
anitizer_common/sanitizer_platform_limits_posix.h
ae7db43b4e8341c0f1c3166ffcf2b7c2aa7391f7 31-Oct-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [msan] Intercept dlerror.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193760 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/dlerror.cc
san/msan_interceptors.cc
2bcd3b547e8de0d152aa41366defb83f3fe766b8 31-Oct-2013 Alexander Potapenko <glider@google.com> [ASan] Make asan_symbolize.py fall back to ASAN_SYMBOLIZER_PATH (which is used when ASAN_OPTIONS=symbolize=1) if LLVM_SYMBOLIZER_PATH is empty.



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193758 91177308-0d34-0410-b5e6-96231b3b80d8
san/scripts/asan_symbolize.py
548559d8f5a889d98f50e06bc7c736182a53ec39 31-Oct-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [msan] Disable mlock/mlockall to work around a linux kernel bug.

The same logic is present in ASan and TSan.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193755 91177308-0d34-0410-b5e6-96231b3b80d8
san/msan_interceptors.cc
san/tests/msan_test.cc
26fe5d396c5c99ddcd89b3f8722cea1d4940b9e9 31-Oct-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Intercept getline, getdelim.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193730 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/getline.cc
san/lit_tests/getline_test_data
anitizer_common/sanitizer_common_interceptors.inc
anitizer_common/sanitizer_platform_interceptors.h
san/rtl/tsan_stat.cc
san/rtl/tsan_stat.h
6f5427b0ebc5ced4497f8ef00bd19fc0bd6c33b7 31-Oct-2013 Alexey Samsonov <samsonov@google.com> [ASan] Turn on (non-strict) initialization order checker by default for all ASan users

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193729 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_rtl.cc
9afa4528e02c1531885ccaad903acd28dda54556 30-Oct-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [msandr] Add check-before-write optimization.

Replace blind store with check-before-store to avoid unnecessary memory stores.

Patch by Qin Zhao.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193703 91177308-0d34-0410-b5e6-96231b3b80d8
sandr/msandr.cc
a263425653a44ea823e2e071a7d1ab686b47c570 30-Oct-2013 Alexey Samsonov <samsonov@google.com> [Sanitizer] Update comment in sanitizer_symbolizer.h

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193700 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_symbolizer.h
e00495aa0f3b114c7b764769d9450e5d2efb8e64 30-Oct-2013 Alexey Samsonov <samsonov@google.com> [Sanitizer] Use SpinMutex for Symbolizer initialization (per dvyukov's suggestion)

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193697 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_symbolizer.cc
anitizer_common/sanitizer_symbolizer.h
anitizer_common/sanitizer_symbolizer_libcdep.cc
1bb2229028dd78280d24c26b9efbe8476d966e05 30-Oct-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [asan] Fix syscall hooks build on Android.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193670 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_common_syscalls.inc
anitizer_common/sanitizer_platform_limits_linux.cc
anitizer_common/sanitizer_platform_limits_posix.cc
anitizer_common/sanitizer_platform_limits_posix.h
1d1cd7a9becac1b7a4e4e00853af44ad52c6465a 30-Oct-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [santiizer] Disable sincos interceptor in OSX.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193667 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_platform_interceptors.h
78d77c2638b8e02020737c9b296ce2198e4c58e6 29-Oct-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Intercept drand48_r, lrand48_r.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193655 91177308-0d34-0410-b5e6-96231b3b80d8
san/tests/msan_test.cc
anitizer_common/sanitizer_common_interceptors.inc
anitizer_common/sanitizer_platform_interceptors.h
san/rtl/tsan_stat.cc
san/rtl/tsan_stat.h
a0475713cdac8a55ed2a62cf9553ae6fbb2dbbc2 29-Oct-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [msandr] Remove use of std::set in msandr client to avoid reentrancy issues.

Patch by Qin Zhao.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193654 91177308-0d34-0410-b5e6-96231b3b80d8
sandr/msandr.cc
cc794ab9b8f9066ca7b790ca0dbb197d591e14c4 29-Oct-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [asan] Maybe fix test failures on lld bots.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193647 91177308-0d34-0410-b5e6-96231b3b80d8
san/tests/CMakeLists.txt
f814b43ed659512203439bc8c3f6d468155a1d3f 29-Oct-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Intercept sincos, remquo, lgamma, lgamma_r.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193645 91177308-0d34-0410-b5e6-96231b3b80d8
san/tests/msan_test.cc
anitizer_common/sanitizer_common_interceptors.inc
anitizer_common/sanitizer_platform_interceptors.h
san/rtl/tsan_stat.cc
san/rtl/tsan_stat.h
4b26afda2f4c7465260b22f1094c6699886cc55d 29-Oct-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [msandr] Add support for standalone test.

Add macro MSANDR_STANDALONE_TEST for standalone test without msan executables.

Patch by Qin Zhao.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193643 91177308-0d34-0410-b5e6-96231b3b80d8
sandr/CMakeLists.txt
sandr/msandr.cc
0b76578bf5bf04a0674ac5a27ade01e3da26a0c9 29-Oct-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [tsan] Fix unused variable warnings.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193639 91177308-0d34-0410-b5e6-96231b3b80d8
san/rtl/tsan_interceptors.cc
dfab31b93e954ee42622a13dd79e9e1092346035 29-Oct-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [asan] Fix build.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193635 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_interceptors.cc
750b4ac400b96153bfe64fc70df3a8d3e2a565a3 29-Oct-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Fix build warnings.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193634 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_interceptors.cc
3ee98e37856935ac1d79d51364df73ce00d8218e 29-Oct-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Ptrace syscall handler.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193633 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/Linux/syscalls.cc
anitizer_common/sanitizer_common_syscalls.inc
anitizer_common/sanitizer_platform_limits_posix.cc
anitizer_common/sanitizer_platform_limits_posix.h
3f8ce73999c1ef82a8a835e9e87b0d4ce8c5810b 29-Oct-2013 Kostya Serebryany <kcc@google.com> [asan] increase the max malloc size from 8Gb to 64Gb

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193615 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_allocator2.cc
5cf2c460e96e593b1c772f1b02d3a217f4837fdc 29-Oct-2013 Dmitry Vyukov <dvyukov@google.com> tsan/asan: support pthread_setname_np to set thread names



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193602 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_interceptors.cc
san/msan_interceptors.cc
anitizer_common/sanitizer_common_interceptors.inc
anitizer_common/sanitizer_platform_interceptors.h
anitizer_common/sanitizer_thread_registry.cc
anitizer_common/sanitizer_thread_registry.h
san/lit_tests/thread_name2.cc
san/rtl/tsan_interceptors.cc
san/rtl/tsan_stat.cc
san/rtl/tsan_stat.h
7996a2e2a1c461743c9216f13429c04d75050230 29-Oct-2013 Alexey Samsonov <samsonov@google.com> [Sanitizer] Simplify StackTrace::PrintStack interface: prefer common flags to turn on/off the symbolization

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193587 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_stack.cc
san/lsan_common.cc
san/msan.cc
san/msan_report.cc
anitizer_common/sanitizer_stacktrace.cc
anitizer_common/sanitizer_stacktrace.h
f3603890015c130420def39d67a02c2fdafc6f84 29-Oct-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [msan] Intercept shmat.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193581 91177308-0d34-0410-b5e6-96231b3b80d8
san/msan_interceptors.cc
san/tests/msan_test.cc
anitizer_common/sanitizer_common_interceptors.inc
anitizer_common/sanitizer_common_syscalls.inc
anitizer_common/sanitizer_platform_limits_posix.cc
anitizer_common/sanitizer_platform_limits_posix.h
1767ec1c0d56bf9a4a5470ec5b28905e23892753 28-Oct-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [msan] Fix a typo and enable poison_in_free flag.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193529 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/poison_in_free.cc
san/msan.cc
f456018a324dc48668a57060f5ac9c838dfd9f32 28-Oct-2013 Alexey Samsonov <samsonov@google.com> [Sanitizer] Revert r193501 and properly fix r193448

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193522 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_report.cc
anitizer_common/sanitizer_symbolizer.cc
anitizer_common/sanitizer_symbolizer_libcdep.cc
db92faf488988543b18aaac537ac5ee4f4ee68a5 28-Oct-2013 Dmitry Vyukov <dvyukov@google.com> asan/msan: separate different report blocks with new lines

this makes the reports consistent with tsan, and much more readable.



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193520 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_stack.cc
san/msan_report.cc
58dc8bef3f86f4f8503359b5146be9d78d7e3ef0 28-Oct-2013 Dmitry Vyukov <dvyukov@google.com> tsan: start the background thread with signals blocked, otherwise it can steal users signals



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193519 91177308-0d34-0410-b5e6-96231b3b80d8
san/rtl/tsan_interceptors.cc
e38046aae1f76e525c2466af20c27269185a37bf 27-Oct-2013 Timur Iskhodzhanov <timurrrr@google.com> Work around ASan/Win breakage by r193448

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193501 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_report.cc
42078706b87f5dc3f470bdd23853e48c50aaa017 26-Oct-2013 Alexey Samsonov <samsonov@google.com> [Sanitizer] Add pthread_attr_getaffinity_np to the list of versioned functions

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193470 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/scripts/gen_dynamic_list.py
7e8db745c56f7f9317f0d3472bf01bd48ca3424b 26-Oct-2013 Peter Collingbourne <peter@pcc.me.uk> Add a CMake option COMPILER_RT_DEBUG for building runtimes with full debug info.

Differential Revision: http://llvm-reviews.chandlerc.com/D1984

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193449 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/TestCases/Linux/malloc-in-qsort.cc
san/lit_tests/TestCases/memcmp_test.cc
san/lit_tests/TestCases/strncpy-overflow.cc
it.common.cfg
it.common.configured.in
c1a1ed62228288155459d39194995a36aca4a8a6 26-Oct-2013 Peter Collingbourne <peter@pcc.me.uk> Overhaul the symbolizer interface.

This moves away from creating the symbolizer object and initializing the
external symbolizer as separate steps. Those steps now always take place
together.

Sanitizers with a legacy requirement to specify their own symbolizer path
should use InitSymbolizer to initialize the symbolizer with the desired
path, and GetSymbolizer to access the symbolizer. Sanitizers with no
such requirement (e.g. UBSan) can use GetOrInitSymbolizer with no need for
initialization.

The symbolizer interface has been made thread-safe (as far as I can
tell) by protecting its member functions with mutexes.

Finally, the symbolizer interface no longer relies on weak externals, the
introduction of which was probably a mistake on my part.

Differential Revision: http://llvm-reviews.chandlerc.com/D1985

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193448 91177308-0d34-0410-b5e6-96231b3b80d8
san/CMakeLists.txt
san/asan_report.cc
san/asan_rtl.cc
san/lsan.cc
san/lsan_common.cc
san/msan.cc
san/msan_report.cc
anitizer_common/CMakeLists.txt
anitizer_common/sanitizer_linux.cc
anitizer_common/sanitizer_stacktrace.cc
anitizer_common/sanitizer_symbolizer.cc
anitizer_common/sanitizer_symbolizer.h
anitizer_common/sanitizer_symbolizer_libcdep.cc
anitizer_common/sanitizer_symbolizer_posix_libcdep.cc
anitizer_common/sanitizer_symbolizer_win.cc
san/rtl/tsan_rtl.cc
san/rtl/tsan_symbolize.cc
bsan/lit_tests/CMakeLists.txt
bsan/lit_tests/TypeCheck/Function/function.cpp
bsan/lit_tests/lit.cfg
bsan/ubsan_diag.cc
8f0c5bdd9650256501bad9fc5dedc977f4ca2247 26-Oct-2013 Peter Collingbourne <peter@pcc.me.uk> Rename SpinMutex::AssertHeld to CheckLocked, for consistency with BlockingMutex.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193447 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_allocator.h
anitizer_common/sanitizer_mutex.h
b8c9c60d9ca962b50cb67e5a6966d4be3c9db2ff 25-Oct-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Disable tmpnam_r interceptor on Mac.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193417 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_platform_interceptors.h
eada1a81188329b3f011311caed12ca4be4f639e 25-Oct-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Intercept tmpnam, tmpnam_r, tempnam.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193415 91177308-0d34-0410-b5e6-96231b3b80d8
san/tests/msan_test.cc
anitizer_common/sanitizer_common_interceptors.inc
anitizer_common/sanitizer_platform_interceptors.h
san/rtl/tsan_stat.cc
san/rtl/tsan_stat.h
88732a3c78d8f46bebd4a519a1cf927edf28e2cb 25-Oct-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [msandr] Add NATIVE_EXEC macro for building client for running in DynamoRIO hybrid mode only.

When running application in DynamoRIO hybrid mode only, only uninstrumented
modules will run in DynamoRIO and be instrumented by the client, so we do not
need module table in MSanDR.

Patch by Qin Zhao.



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193411 91177308-0d34-0410-b5e6-96231b3b80d8
sandr/CMakeLists.txt
sandr/msandr.cc
3a3805f4923cddef1ac3e71ee52ffc7e30c93bbf 25-Oct-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Remove pthread_attr_getstackaddr interceptor.

The function is deprecated.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193409 91177308-0d34-0410-b5e6-96231b3b80d8
san/tests/msan_test.cc
anitizer_common/sanitizer_common_interceptors.inc
san/rtl/tsan_stat.cc
san/rtl/tsan_stat.h
ec208e007d2264a65c1f4234f8cbce82dca9f849 25-Oct-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Fix Android build.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193408 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_common_interceptors.inc
e46ecb155b22c8ea37235ebe317e0de1edf6b001 25-Oct-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [msan] Zerofill initstate_r buffer in random_r test.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193406 91177308-0d34-0410-b5e6-96231b3b80d8
san/tests/msan_test.cc
e236dbb5e558b174609d2d13e80685d488c129d8 25-Oct-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Intercept pthread_attr_get*.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193405 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_interceptors.cc
san/msan_interceptors.cc
san/tests/CMakeLists.txt
san/tests/msan_test.cc
anitizer_common/sanitizer_common_interceptors.inc
anitizer_common/sanitizer_platform_interceptors.h
san/rtl/tsan_interceptors.cc
san/rtl/tsan_stat.cc
san/rtl/tsan_stat.h
719df33ad1f14c760d53a4b7b51ff9664ebda535 25-Oct-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [msan] Separate access and origin blocks in msan reports with an extra whiteline.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193401 91177308-0d34-0410-b5e6-96231b3b80d8
san/msan_report.cc
175599be65a5c08551bbe0359a7ca1aadb23ec8b 25-Oct-2013 Dmitry Vyukov <dvyukov@google.com> tsan: do not crash when apparently bogus fd is passed to e.g. close

some tests test libc/filesystem error handling paths (e.g. close(INT_MAX)),
currently such tests fail
with this change they work as expected



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193400 91177308-0d34-0410-b5e6-96231b3b80d8
san/rtl/tsan_fd.cc
aff25aa02098a510eff6eda1a3ec823e5b1fe1aa 25-Oct-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Intercept random_r.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193396 91177308-0d34-0410-b5e6-96231b3b80d8
san/tests/msan_test.cc
anitizer_common/sanitizer_common_interceptors.inc
anitizer_common/sanitizer_platform_interceptors.h
san/rtl/tsan_stat.cc
san/rtl/tsan_stat.h
3a6eb8083c342da436df8c7d1809dfeb8834bc6d 25-Oct-2013 Stephen Hines <srhines@google.com> Switch __ARM_ARCH_7S__ to __ARM_ARCH_EXT_IDIV__ for use of sdiv/udiv assembly.

__ARM_ARCH_EXT_IDIV__ is the define that ARM is using to indicate the presence
of hardware integer divide (sdiv/udiv). Previously, this code was only being
invoked for processors marked 7S. We now can correctly generate hardware
divides on cortex-a15 devices.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193392 91177308-0d34-0410-b5e6-96231b3b80d8
rm/divmodsi4.S
rm/divsi3.S
rm/modsi3.S
rm/udivmodsi4.S
rm/udivsi3.S
rm/umodsi3.S
10362d66fffcd99bd5ced983e4b389dfeba114d0 24-Oct-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Intercept shmctl.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193348 91177308-0d34-0410-b5e6-96231b3b80d8
san/tests/msan_test.cc
anitizer_common/sanitizer_common_interceptors.inc
anitizer_common/sanitizer_platform_interceptors.h
anitizer_common/sanitizer_platform_limits_posix.cc
anitizer_common/sanitizer_platform_limits_posix.h
san/rtl/tsan_stat.cc
san/rtl/tsan_stat.h
1161eb4bff61908074699f6459eabce25839f966 24-Oct-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [msan] Unpoison errno in common interceptors.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193343 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/errno.cc
san/msan_interceptors.cc
450eee655289a622ab9acf87d863f38991b184c9 24-Oct-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [msan] Fix invalid origin copying.

Origin copying may destroy valid origin info. This is caused by
__msan_copy_origin widening the address range to the nearest 4-byte aligned
addresses both on the left and on the right. If the target buffer is
uninitialized and the source is fully initialized, this will result in
overriding valid origin of target buffer with stale (possibly 0) origin of the
source buffer.

With this change the widened origin is copied only if corresponding shadow
values are non zero.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193338 91177308-0d34-0410-b5e6-96231b3b80d8
san/msan.h
san/msan_interceptors.cc
san/tests/msan_test.cc
48ed0580871e66c61e856a2281280929f6f77593 24-Oct-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [msan] Change wording in the invalid origin message.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193335 91177308-0d34-0410-b5e6-96231b3b80d8
san/msan.cc
53177247698bfba075f2d5b255a447fc3ced6976 24-Oct-2013 Peter Collingbourne <peter@pcc.me.uk> Introduce an operator new for LowLevelAllocator, and convert most users to it.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193308 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_globals.cc
san/asan_thread.cc
anitizer_common/sanitizer_common.h
anitizer_common/sanitizer_internal_defs.h
anitizer_common/sanitizer_placement_new.h
anitizer_common/tests/sanitizer_thread_registry_test.cc
a412f485298901a6cbf9d5d7489e834efebc9483 23-Oct-2013 Alexey Samsonov <samsonov@google.com> [ASan] ASan can be combined with LSan and UBSan, so export symbol from them as well.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193245 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan.syms.extra
220d1f7c727eab61d1846a7d30b2b551a0378c0b 23-Oct-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Fix OSX build.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193244 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_common_interceptors.inc
anitizer_common/sanitizer_platform_interceptors.h
369a9a6d4297af031227db1c6fedd21ee7033dc1 23-Oct-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Intercept ether_* functions.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193241 91177308-0d34-0410-b5e6-96231b3b80d8
san/tests/msan_test.cc
anitizer_common/sanitizer_common_interceptors.inc
anitizer_common/sanitizer_platform_interceptors.h
anitizer_common/sanitizer_platform_limits_posix.cc
anitizer_common/sanitizer_platform_limits_posix.h
san/rtl/tsan_stat.cc
san/rtl/tsan_stat.h
7d66482b0b25b7d7ff0a28e50cd7dfb796423f53 23-Oct-2013 Dmitry Vyukov <dvyukov@google.com> tsan: parse symbolize/external_symbolizer_path common flags



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193236 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_flags.cc
b1907c71402e01deb6fa3909a75dbc674bfd907b 23-Oct-2013 Nick Lewycky <nicholas@mxc.ca> Continue to keep 'SUMMARY: ' prefix in lsan. Whoops!


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193232 91177308-0d34-0410-b5e6-96231b3b80d8
san/lsan_common.cc
47fcd76474fc6b6c963ae4eeeeea15d465bd6a3c 23-Oct-2013 Nick Lewycky <nicholas@mxc.ca> Hoist the addition of the prefix "SUMMARY: " from
__sanitizer_report_error_summary to ReportErrorSummary.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193231 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_common.cc
4b861aa4b40daabd81fdaed352380ea1c486053a 23-Oct-2013 Nick Lewycky <nicholas@mxc.ca> Make sure ASan always emits an error summary if it reports an error.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193229 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_report.cc
7c6bd4060e60f5b148cc629c8791c2a8bf3d3347 22-Oct-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [msan] Drain allocator cache when leaving thread.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193163 91177308-0d34-0410-b5e6-96231b3b80d8
san/msan.h
san/msan_allocator.cc
san/msan_interceptors.cc
285d458935bc2f9d8ec1109de01ed66185062349 22-Oct-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Intercept initgroups.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193158 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/initgroups.cc
anitizer_common/sanitizer_common_interceptors.inc
anitizer_common/sanitizer_platform_interceptors.h
san/rtl/tsan_stat.cc
san/rtl/tsan_stat.h
137a9b84c25f1ad7d68a14f138cf270a03a738cb 21-Oct-2013 Sergey Matveev <earthdok@google.com> [lsan] When detect_leaks=false, be completely silent.

In particular, don't make a fuss if we're passed a malformed suppressions file,
or if we have trouble identifying ld.so. Also, make LSan interface functions
no-ops in this case.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193108 91177308-0d34-0410-b5e6-96231b3b80d8
san/lsan_common.cc
5e7ba22755b994e4f6aaf8cc00773c4d1b8dbf07 21-Oct-2013 Peter Collingbourne <peter@pcc.me.uk> Use internal_memset to initialize this variable.

Otherwise, the compiler may use memset in non-optimized builds, which is
forbidden in the nolibc part of the runtime.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193098 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_linux.cc
a650de81e9ce919edc876728fce7c1f4cdc4abcc 21-Oct-2013 Kostya Serebryany <kcc@google.com> [asan] count the size of QuarantineBatch in the total Quarantine size; make QuarantineBatch fit into 8K, fix a MSVC compile warning

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193072 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_quarantine.h
3e5c47d7ad275493bb895ff3d6b36174d3c90322 21-Oct-2013 Dmitry Vyukov <dvyukov@google.com> tsan: fix strerror interceptor (eliminate false positives)


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193070 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_common_interceptors.inc
9b5f95f5fe1a24be4dfb7436b64cb0e0f8c00535 20-Oct-2013 Peter Collingbourne <peter@pcc.me.uk> Runtime support for the indirect function call checker.

Differential Revision: http://llvm-reviews.chandlerc.com/D1339

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193060 91177308-0d34-0410-b5e6-96231b3b80d8
san/CMakeLists.txt
bsan/lit_tests/CMakeLists.txt
bsan/lit_tests/TypeCheck/Function/function.cpp
bsan/lit_tests/TypeCheck/Function/lit.local.cfg
bsan/lit_tests/lit.cfg
bsan/ubsan_diag.cc
bsan/ubsan_diag.h
bsan/ubsan_handlers.cc
bsan/ubsan_handlers.h
49d29ed950f9e309a7b755b2a0601ed483ce3ade 20-Oct-2013 Peter Collingbourne <peter@pcc.me.uk> [ubsan] Introduce %clangxx substitution for all C++ tests.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193059 91177308-0d34-0410-b5e6-96231b3b80d8
bsan/lit_tests/Float/cast-overflow.cpp
bsan/lit_tests/Integer/add-overflow.cpp
bsan/lit_tests/Integer/div-overflow.cpp
bsan/lit_tests/Integer/div-zero.cpp
bsan/lit_tests/Integer/incdec-overflow.cpp
bsan/lit_tests/Integer/mul-overflow.cpp
bsan/lit_tests/Integer/negate-overflow.cpp
bsan/lit_tests/Integer/no-recover.cpp
bsan/lit_tests/Integer/shift.cpp
bsan/lit_tests/Integer/sub-overflow.cpp
bsan/lit_tests/Integer/uadd-overflow.cpp
bsan/lit_tests/Integer/uincdec-overflow.cpp
bsan/lit_tests/Integer/umul-overflow.cpp
bsan/lit_tests/Integer/usub-overflow.cpp
bsan/lit_tests/Misc/bool.cpp
bsan/lit_tests/Misc/bounds.cpp
bsan/lit_tests/Misc/deduplication.cpp
bsan/lit_tests/Misc/enum.cpp
bsan/lit_tests/Misc/missing_return.cpp
bsan/lit_tests/Misc/unreachable.cpp
bsan/lit_tests/TypeCheck/misaligned.cpp
bsan/lit_tests/TypeCheck/null.cpp
bsan/lit_tests/TypeCheck/vptr.cpp
bsan/lit_tests/lit.cfg
547f9dd4c0302fe9a571e1811a4a92dd82ef89f6 18-Oct-2013 Kostya Serebryany <kcc@google.com> [asan] fix stack trace printing on Mac

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192990 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_stack.cc
1fe68b87dcd9be36b5b4d35e74cc5b0666500ec4 18-Oct-2013 Kostya Serebryany <kcc@google.com> [asan] allocate AsanThreadContext using LowLevelAllocator instead of mmap to save space

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192980 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_thread.cc
6d95869fa900da9ddd68e15e2aa065854cfa176b 18-Oct-2013 Kostya Serebryany <kcc@google.com> [asan] reduce the size of AsanThreadContext by storing the stack trace in the stack depot

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192979 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_report.cc
san/asan_stack.cc
san/asan_stack.h
san/asan_thread.cc
san/asan_thread.h
acd18b94d494ea946599ae40425ef9ee670b0183 18-Oct-2013 Alexander Potapenko <glider@google.com> [ASan] fix compilation of sanitizer_platform_limits_posix.cc on OSX.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192975 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_platform_limits_posix.cc
34fb715374de8f6af2c36275ba4dd2dbc7e7b5ea 18-Oct-2013 Alexander Potapenko <glider@google.com> [ASan] fix compilation of atexit_stats.cc on OSX


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192973 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/TestCases/atexit_stats.cc
9d06f1b8b7b215acd843f6360309eb93d51e88c7 18-Oct-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Fix OSX build some more.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192967 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_platform_limits_posix.cc
anitizer_common/sanitizer_platform_limits_posix.h
0489e113d3e9fa9379fa38bc1a50f81414feab48 18-Oct-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Fix OSX build.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192966 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_platform_limits_posix.cc
anitizer_common/sanitizer_platform_limits_posix.h
5cee73e486aaa617a9627bb69a6447d3369b62cc 18-Oct-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Move statfs/fstatfs to common interceptors and add statvfs/fstatvfs.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192965 91177308-0d34-0410-b5e6-96231b3b80d8
san/msan_interceptors.cc
san/tests/msan_test.cc
anitizer_common/sanitizer_common_interceptors.inc
anitizer_common/sanitizer_platform_interceptors.h
anitizer_common/sanitizer_platform_limits_posix.cc
anitizer_common/sanitizer_platform_limits_posix.h
san/rtl/tsan_stat.cc
san/rtl/tsan_stat.h
00dc24362d11540c39d57d27de846ce5823110cd 18-Oct-2013 Kostya Serebryany <kcc@google.com> [asan] fix a test on Mac

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192960 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/TestCases/assign_large_valloc_to_global.cc
4d7297daef90ad59446250617b72d184141436fc 18-Oct-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Intercept getmntent, getmntent_r.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192959 91177308-0d34-0410-b5e6-96231b3b80d8
san/tests/msan_test.cc
anitizer_common/sanitizer_common_interceptors.inc
anitizer_common/sanitizer_platform_interceptors.h
anitizer_common/sanitizer_platform_limits_posix.cc
anitizer_common/sanitizer_platform_limits_posix.h
san/rtl/tsan_stat.cc
san/rtl/tsan_stat.h
a2e70d92b67703effb631d7b4db8979fd74d5db5 18-Oct-2013 Kostya Serebryany <kcc@google.com> [asan] fix atexit stats

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192956 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_rtl.cc
san/lit_tests/TestCases/assign_large_valloc_to_global.cc
san/lit_tests/TestCases/atexit_stats.cc
0c46cdebe103e5745a3b7be0b8c9c454a06bcccb 18-Oct-2013 Richard Smith <richard-llvm@metafoo.co.uk> Make the big array in the UBSan C++ runtime be zero-initialized to dramatically
shrink the binary size of the ubsan runtime.

Also fix a bug where long-running processes could eventually trigger a crash in
the runtime by filling up the cache. I've not found a nice way to add a test for
this crasher; ideas welcome.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192931 91177308-0d34-0410-b5e6-96231b3b80d8
bsan/ubsan_type_hash.cc
8e22b68ce64e34d3fc90f02d967bcceb279f3302 17-Oct-2013 Alexander Potapenko <glider@google.com> [ASan] fix assign_large_valloc_to_global.cc to use the correct header for valloc() on OSX.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192901 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/TestCases/assign_large_valloc_to_global.cc
13521a267f509a06e92baa154947b9d2cde0eed8 17-Oct-2013 Kostya Serebryany <kcc@google.com> [asan] fix a failure with ASAN_OPTIONS=verbosity=1:use_sigaltstack=1

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192892 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_rtl.cc
san/lit_tests/TestCases/deep_call_stack.cc
ab8bf09f11d76af6bf9bf6b573f36cb29aa3e557 17-Oct-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Fix unpoisoning of msghdr::msg_name in recvmsg interceptor.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192886 91177308-0d34-0410-b5e6-96231b3b80d8
san/tests/msan_test.cc
anitizer_common/sanitizer_common_interceptors.inc
8fa4edcb169ab77355c77e065fc5387085787a8a 17-Oct-2013 Kostya Serebryany <kcc@google.com> [asan] Fix a deadlock between asan's allocator and lsan

Summary:
This fixes a deadlock which happens in lsan
on a large memalign-allocated chunk that resides in lsan's root set.

Reviewers: samsonov, earthdok

Reviewed By: earthdok

CC: llvm-commits

Differential Revision: http://llvm-reviews.chandlerc.com/D1957

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192885 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_allocator2.cc
san/lit_tests/TestCases/assign_large_valloc_to_global.cc
anitizer_common/sanitizer_allocator.h
anitizer_common/sanitizer_mutex.h
anitizer_common/tests/sanitizer_allocator_test.cc
fc81346321671489e2864f0614bf44b6af5d9bdb 17-Oct-2013 Alexey Samsonov <samsonov@google.com> [Sanitizer] Move pthread_cond_signal and pthread_cond_broadcast to common interceptors

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192876 91177308-0d34-0410-b5e6-96231b3b80d8
san/tests/msan_test.cc
anitizer_common/sanitizer_common_interceptors.inc
san/rtl/tsan_interceptors.cc
232b043b6c0dfe3c0f1906efba1ecc73868fd410 17-Oct-2013 Dmitry Vyukov <dvyukov@google.com> tsan: merge 2 similar tests into 1



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192874 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/deep_stack0.cc
san/lit_tests/deep_stack1.cc
san/lit_tests/default_options.cc
1a3f1ea833b151fc6554a7f910f8e0185f513a35 17-Oct-2013 Dmitry Vyukov <dvyukov@google.com> tsan: add a test for __tsan_default_options()



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192873 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/default_options.cc
san/rtl/tsan_flags.cc
782cbdca4e926cb7b640d194531a07c431990ee3 17-Oct-2013 Will Dietz <wdietz2@illinois.edu> Use configured PYTHON in asan lit tests.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192870 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/lit.cfg
it.common.configured.in
68c2c514f8f204401ea2bd2f6cf848022eed6802 16-Oct-2013 Dmitry Vyukov <dvyukov@google.com> tsan: revert variable name change in test

It works as is with new llvm-symbolizer.



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192798 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/global_race.cc
01a7ce809bf7cc627d73c045c70bcca9891f632c 16-Oct-2013 Dmitry Vyukov <dvyukov@google.com> tsan: move shadow stack from thread descriptors to fixed addresses

This allows to increase max shadow stack size to 64K,
and reliably catch shadow stack overflows instead of silently
corrupting memory.



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192797 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/deep_stack0.cc
san/lit_tests/deep_stack1.cc
san/lit_tests/global_race.cc
san/rtl/tsan_defs.h
san/rtl/tsan_platform.h
san/rtl/tsan_rtl.cc
san/rtl/tsan_rtl.h
san/rtl/tsan_rtl_report.cc
san/rtl/tsan_rtl_thread.cc
san/rtl/tsan_sync.cc
san/rtl/tsan_trace.h
san/tests/unit/tsan_stack_test.cc
cca8e781e5353cba810a0ec3a814ddde2c4934e7 16-Oct-2013 Kostya Serebryany <kcc@google.com> [asan] introduce run-time flag 'poison_partial'

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192793 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_allocator2.cc
san/asan_flags.h
san/asan_poisoning.h
san/asan_rtl.cc
san/lit_tests/TestCases/poison_partial.cc
166d6aac8aeafe0d915b7233ba9e6714fcfa2aae 16-Oct-2013 Alexey Samsonov <samsonov@google.com> [Sanitizer] Fix lint checker script on Mac

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192791 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/scripts/check_lint.sh
e6f3247020e4710eda6fb210c9fa3c56647b4ca6 16-Oct-2013 Dmitry Vyukov <dvyukov@google.com> tsan: refactor libignore implementation



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192785 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_libignore.cc
c842dabb53cc2101cc5449f24921a972d812d7c6 16-Oct-2013 Alexey Samsonov <samsonov@google.com> [TSan] Extend test for reporting globals with races on them

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192782 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/global_race.cc
san/rtl/tsan_report.cc
0f63831345e26b23d85a67e2dd96129f48eec477 16-Oct-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [asan] Remove CallocOverflow32 test from asan_test.

The same as with MSan, this test behavior depends on ASAN_OPTIONS, and we've
got a lit_test that covers this.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192777 91177308-0d34-0410-b5e6-96231b3b80d8
san/tests/asan_test.cc
7ad195c7686f7246d6afa36e930884efae42abee 16-Oct-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [msan] Handle origins in __sanitizer_unaligned_(load|store)*.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192776 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/unaligned_read_origin.cc
san/msan.cc
5e2d3776a314629680921abd1d55d89d95a2da90 16-Oct-2013 Alexey Samsonov <samsonov@google.com> Make some pthread_mutex_* and pthread_cond_* interceptors common.

Reviewers: eugenis, dvyukov

Reviewed By: dvyukov

CC: llvm-commits

Differential Revision: http://llvm-reviews.chandlerc.com/D1937

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192774 91177308-0d34-0410-b5e6-96231b3b80d8
nterception/interception.h
nterception/interception_linux.h
nterception/interception_mac.h
nterception/interception_win.h
san/tests/msan_test.cc
anitizer_common/sanitizer_common_interceptors.inc
anitizer_common/sanitizer_platform_interceptors.h
anitizer_common/sanitizer_platform_limits_posix.cc
anitizer_common/sanitizer_platform_limits_posix.h
san/rtl/tsan_interceptors.cc
e852e41d345c4be4ca28962cbc6c6d59717759c7 15-Oct-2013 Sergey Matveev <earthdok@google.com> [lsan] Fix bug when discovering indirectly leaked objects.

If an object contains pointers to itself, that doesn't make it indirectly
leaked. D'oh!

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192716 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/TestCases/pointer_to_self.cc
san/lsan_common.cc
f719b92eb175f34387ef05d1c4fc1d035b94e621 15-Oct-2013 Dmitry Vyukov <dvyukov@google.com> tsan: introduce __tsan_default_options() function

The function allows to statically setup default values for flags.
The interafece matches what asan/msan provide.



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192715 91177308-0d34-0410-b5e6-96231b3b80d8
san/rtl/tsan_flags.cc
8f4cece84c528071202daae54593981e7677dcf9 15-Oct-2013 Dmitry Vyukov <dvyukov@google.com> tsan: be silent if verbosity=0

Currently tests fail with:
Check failed: 'AAA' == 'AAA ==26017==Could not detach from thread 361395 (errno 3).'



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192711 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_common.cc
anitizer_common/sanitizer_common.h
anitizer_common/sanitizer_stoptheworld_linux_libcdep.cc
06cbed8b8ae64b7ace50c1b4e4eed97a2a8b9965 15-Oct-2013 Dmitry Vyukov <dvyukov@google.com> tsan: use verbosity flag in sanitizer_common code directly
now it's available from common_flags()



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192705 91177308-0d34-0410-b5e6-96231b3b80d8
san/lsan_interceptors.cc
san/msan_interceptors.cc
anitizer_common/sanitizer_linux.h
anitizer_common/sanitizer_linux_libcdep.cc
san/rtl/tsan_interceptors.cc
2e7999e485a67ef33c5ab4d9bce0f7b9fc9ddce1 15-Oct-2013 Dmitry Vyukov <dvyukov@google.com> tsan: actually parse verbofity flag



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192704 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_flags.cc
6866dba92ac842fc513ba339ba849a953ffb7507 15-Oct-2013 Dmitry Vyukov <dvyukov@google.com> tsan: move verbosity flag to CommonFlags



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192701 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_fake_stack.cc
san/asan_flags.h
san/asan_interceptors.cc
san/asan_mac.cc
san/asan_poisoning.cc
san/asan_posix.cc
san/asan_rtl.cc
san/asan_thread.cc
san/msan.cc
san/msan_flags.h
san/msan_interceptors.cc
san/msan_linux.cc
san/msan_report.cc
anitizer_common/sanitizer_flags.h
san/rtl/tsan_flags.cc
san/rtl/tsan_flags.h
fba64b41107e141c9ac7c9d406eddcc820f8cf60 15-Oct-2013 Dmitry Vyukov <dvyukov@google.com> tsan: do not leave trash source files in source dir



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192700 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/scripts/check_lint.sh
610e7c73a12d629d00113e7d16dd00cda7b1d49f 15-Oct-2013 Dmitry Vyukov <dvyukov@google.com> tsan: refactor overly-complex logical condition



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192698 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_libignore.cc
17b0a3c9b28648ca9af1844111447f231f84c180 15-Oct-2013 Dmitry Vyukov <dvyukov@google.com> tsan: fix Go build



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192696 91177308-0d34-0410-b5e6-96231b3b80d8
san/rtl/tsan_platform_linux.cc
5f4984db88b7b67539f62d7653b928aeadf91b16 15-Oct-2013 Dmitry Vyukov <dvyukov@google.com> tsan: move kernel struct definition from sanitizer_linux.h to sanitizer_platform_limits_posix.h



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192695 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_common_syscalls.inc
anitizer_common/sanitizer_linux.cc
anitizer_common/sanitizer_linux.h
anitizer_common/sanitizer_platform_limits_posix.h
anitizer_common/sanitizer_stoptheworld_linux_libcdep.cc
62a04e3c8f500495501e1a5e394d81e7f95fa205 15-Oct-2013 Dmitry Vyukov <dvyukov@google.com> tsan: do not build llvm from scratch on each presubmit



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192694 91177308-0d34-0410-b5e6-96231b3b80d8
san/check_cmake.sh
b48c2b2072c8cc17dc1579a6b20ce6c2a575821d 15-Oct-2013 Dmitry Vyukov <dvyukov@google.com> tsan: use sanitizer::CommonFlags in tsan



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192692 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_common.cc
anitizer_common/sanitizer_flags.cc
anitizer_common/sanitizer_flags.h
anitizer_common/sanitizer_internal_defs.h
san/rtl/tsan_flags.cc
san/rtl/tsan_flags.h
san/rtl/tsan_rtl.cc
san/rtl/tsan_symbolize_addr2line_linux.cc
e910a1630be10685b2985a383c1a012f5df6bf62 15-Oct-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [msan] Remove CallocOverflow test.

This behaviour depends on MSAN_OPTIONS.
All interesting combinations are covered by lit_tests/allocator_returns_null.cc.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192691 91177308-0d34-0410-b5e6-96231b3b80d8
san/tests/msan_test.cc
2191fcaa9658166c0c6e9c91013fefc015741395 15-Oct-2013 Sergey Matveev <earthdok@google.com> Clean up StopTheWorld code after r192686.

Remove outdated comments. Also remove code that handled an issue in libc's
sigaction(), which we don't use anymore.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192689 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_stoptheworld_linux_libcdep.cc
3dbbd850cde5728c35aa4c15a279d858604fc6ee 15-Oct-2013 Dmitry Vyukov <dvyukov@google.com> tsan: resolve symlinks for called_from_lib suppressions



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192688 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_libignore.cc
anitizer_common/sanitizer_libignore.h
san/rtl/tsan_interceptors.cc
600d51680fb20f670695e931de60df4d88616e96 15-Oct-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [msan] Implement allocator_may_return_null=1 in MemorySanitizer.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192687 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/allocator_returns_null.cc
san/msan_allocator.cc
0f7a2acb3326a5900d1a1339ebf959b14b372e0d 15-Oct-2013 Dmitry Vyukov <dvyukov@google.com> tsan: implement internal syscall-based versions of sigaction/sigprocmask
use them in stoptheworld
fixes applications that intercept sigaction/sigprocmask




git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192686 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_common_syscalls.inc
anitizer_common/sanitizer_linux.cc
anitizer_common/sanitizer_linux.h
anitizer_common/sanitizer_stoptheworld_linux_libcdep.cc
97f4e082ff0f6aa13ef9e30cd611c1e9246ca7a6 15-Oct-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> Fix a typo.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192685 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/TestCases/allocator_returns_null.cc
79f11fca3a617e59131832d7dfdcc36cb942a300 15-Oct-2013 Alexey Samsonov <samsonov@google.com> [ASan] Make test from r192581 Linux-only, as wild memory contents is less predictable on Mac

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192677 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/TestCases/Linux/heap-overflow-large.cc
san/lit_tests/TestCases/heap-overflow-large.cc
f1d9411c39d1efdfcbf3ea928198089e52123646 14-Oct-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [msan] Test for r192599.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192600 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/vector_cvt.cc
c519335c2d6d32acaac32c0595f08a05081567e7 14-Oct-2013 Sergey Matveev <earthdok@google.com> [lsan] Support ASan's stack-use-after-return mode in LSan.

Treat the fake stack as live memory.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192593 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_fake_stack.cc
san/asan_fake_stack.h
san/asan_thread.cc
san/lit_tests/TestCases/use_after_return.cc
san/lsan_common.cc
san/lsan_common.h
san/lsan_thread.cc
anitizer_common/sanitizer_common.h
2a2dc88648947896d60676c3bc2706308404088b 14-Oct-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [msan] Remove a long-outdated comment.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192592 91177308-0d34-0410-b5e6-96231b3b80d8
san/msan_interceptors.cc
e86e35fbe861e73c5991200510a028877427b3e7 14-Oct-2013 Sergey Matveev <earthdok@google.com> [asan] Improve thread lifetime tracking on POSIX systems.

Call AsanThread::Destroy() from a late-running TSD destructor.
Previously we called it before any user-registered TSD destructors, which caused
false positives in LeakSanitizer.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192585 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_internal.h
san/asan_posix.cc
san/asan_rtl.cc
san/asan_thread.cc
san/asan_thread.h
san/asan_win.cc
san/lit_tests/TestCases/cleanup_in_tsd_destructor.cc
3f4beff5efdd0d30844ca8b270876f7d59a608e7 14-Oct-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [msan] Intercept strto(d|f|ld)_l and glibc-specific __strto(d|f|ld)_l.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192583 91177308-0d34-0410-b5e6-96231b3b80d8
san/msan_interceptors.cc
san/tests/msan_test.cc
d9def29fe0dc8fc70ef270dcc1a266ad9257ec1f 14-Oct-2013 Alexey Samsonov <samsonov@google.com> [ASan] Don't die with internal ASan error on large buffer overflows

Summary:
Out-of-bound access may touch not-yet allocated or already freed
and recycled from quarantine chunks. We should treat this situation as
a "free-range memory access" and avoid printing any data about that
irrelevant chunk (which may be inconsistent).

This should fix https://code.google.com/p/address-sanitizer/issues/detail?id=183

Reviewers: kcc

Reviewed By: kcc

CC: timurrrr, llvm-commits

Differential Revision: http://llvm-reviews.chandlerc.com/D1893

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192581 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_allocator.h
san/asan_allocator2.cc
san/asan_report.cc
san/lit_tests/TestCases/heap-overflow-large.cc
san/lit_tests/TestCases/null_deref.cc
fa33a8c89d3cb505c99a2d700a8c174a0ff4fb38 14-Oct-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [msan] Regression test for r192575.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192577 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/vector_select.cc
6f2741c6325e0112f52b537444e1aaac8e746f85 14-Oct-2013 Dmitry Vyukov <dvyukov@google.com> tsan: allow to override OnPrint() callback in Go runtime



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192576 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_printf.cc
d09c91ac4e2f544651921b7cb307e8aaae8948d1 14-Oct-2013 Alexey Samsonov <samsonov@google.com> [Sanitizer] Return implementation of StackTrace::CopyFrom to header

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192574 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_stacktrace.cc
anitizer_common/sanitizer_stacktrace.h
6a135be19fa0cc594fd61f9caf3c0be2b7f1466e 14-Oct-2013 Dmitry Vyukov <dvyukov@google.com> tsan: allow to override OnFinalize() in front-ends that does not support weak functions (Go)



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192569 91177308-0d34-0410-b5e6-96231b3b80d8
san/rtl/tsan_rtl.cc
3e0b8ff07e86e0858e016d187d842e97aea2255d 12-Oct-2013 Alexey Samsonov <samsonov@google.com> [Sanitizer] Remove StackTrace::max_depth field

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192534 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_linux_libcdep.cc
anitizer_common/sanitizer_stacktrace.cc
anitizer_common/sanitizer_stacktrace.h
anitizer_common/sanitizer_win.cc
anitizer_common/tests/sanitizer_stacktrace_test.cc
80175018541984bdcfe6a304bb189bd30592fa8a 12-Oct-2013 Alexey Samsonov <samsonov@google.com> [Sanitizer] Turn GetStackTrace() into StackTrace::Unwind()

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192533 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_stack.h
san/lsan_interceptors.cc
anitizer_common/sanitizer_posix_libcdep.cc
anitizer_common/sanitizer_stacktrace.cc
anitizer_common/sanitizer_stacktrace.h
anitizer_common/sanitizer_win.cc
70db33e143303752c7fe8800d15b5b31066b1e0d 11-Oct-2013 Sergey Matveev <earthdok@google.com> [sanitizer] Define kPthreadDestructorIterations on POSIX systems.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192453 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_common.h
anitizer_common/sanitizer_linux.h
anitizer_common/sanitizer_platform_limits_posix.h
anitizer_common/tests/CMakeLists.txt
anitizer_common/tests/sanitizer_linux_test.cc
anitizer_common/tests/sanitizer_posix_test.cc
67f5544391c338411b0006bda7dc1b852bbdd4fb 11-Oct-2013 Dmitry Vyukov <dvyukov@google.com> tsan: catch more races on file descriptors



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192452 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_common_interceptors.inc
san/rtl/tsan_fd.cc
san/rtl/tsan_interceptors.cc
29cec483b760082e264340072f3245fad37e2255 11-Oct-2013 Dmitry Vyukov <dvyukov@google.com> tsan: fix epoll_ctl interceptor

Currently data-race-test unittests fail with the following false positive:


WARNING: ThreadSanitizer: data race (pid=20365)
Write of size 8 at 0x7da000008050 by thread T54:
#0 close tsan_interceptors.cc:1483 (racecheck_unittest-linux-amd64-O0+0x0000000eb34a)
#1 NegativeTests_epoll::Worker2() unittest/posix_tests.cc:1148 (racecheck_unittest-linux-amd64-O0+0x0000000cc6b1)
#2 MyThread::ThreadBody(MyThread*) unittest/./thread_wrappers_pthread.h:367 (racecheck_unittest-linux-amd64-O0+0x000000097500)

Previous read of size 8 at 0x7da000008050 by thread T49:
#0 epoll_ctl tsan_interceptors.cc:1646 (racecheck_unittest-linux-amd64-O0+0x0000000e9fee)
#1 NegativeTests_epoll::Worker1() unittest/posix_tests.cc:1140 (racecheck_unittest-linux-amd64-O0+0x0000000cc5b5)
#2 MyThread::ThreadBody(MyThread*) unittest/./thread_wrappers_pthread.h:367 (racecheck_unittest-linux-amd64-O0+0x000000097500)




git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192448 91177308-0d34-0410-b5e6-96231b3b80d8
san/rtl/tsan_interceptors.cc
cdae9426eaeee302b3d7e5d914e5baf0ce436e20 11-Oct-2013 Sergey Matveev <earthdok@google.com> [sanitizer] Ninja style fix to r192442.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192443 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/tests/sanitizer_linux_test.cc
6eb836f9bd2b96a321ddc7fb5ea08aa65131e61f 11-Oct-2013 Sergey Matveev <earthdok@google.com> [sanitizer] Move the PTHREAD_DESTRUCTOR_ITERATIONS constant to sanitizer_linux.h.

Add a test.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192442 91177308-0d34-0410-b5e6-96231b3b80d8
san/lsan_interceptors.cc
anitizer_common/sanitizer_linux.h
anitizer_common/tests/sanitizer_linux_test.cc
san/rtl/tsan_interceptors.cc
ef578990fe3c9afecfcab1044d739371f4d4b459 11-Oct-2013 Alexey Samsonov <samsonov@google.com> [Sanitizer] StackTrace: kill CopyTo and reimplement CopyFrom

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192441 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_stacktrace.cc
anitizer_common/sanitizer_stacktrace.h
064da32709c8bf81283062abc04cf6e88e6c075d 11-Oct-2013 Alexey Samsonov <samsonov@google.com> [Sanitizer] Simplify StackTrace::FastUnwindStack interface and fix a bug with one-frame stack traces

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192428 91177308-0d34-0410-b5e6-96231b3b80d8
san/msan.cc
anitizer_common/sanitizer_flags.cc
anitizer_common/sanitizer_posix_libcdep.cc
anitizer_common/sanitizer_stacktrace.cc
anitizer_common/sanitizer_stacktrace.h
anitizer_common/tests/sanitizer_stacktrace_test.cc
117699dc17e35e84ea1179428a245ff6b60aa98f 10-Oct-2013 Dmitry Vyukov <dvyukov@google.com> tsan: minor refactoring

Replace duplicate code snippet with function.



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192357 91177308-0d34-0410-b5e6-96231b3b80d8
san/rtl/tsan_rtl_mutex.cc
e1ddbf9a458e81125a03fea721997565124294ae 10-Oct-2013 Dmitry Vyukov <dvyukov@google.com> tsan: add annotations to ignore synchronization operations

The annotations are AnnotateIgnoreSyncBegin/End,
may be useful to ignore some infrastructure synchronization
that introduces lots of false negatives.



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192355 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/ignore_sync.cc
san/rtl/tsan_interface_ann.cc
san/rtl/tsan_interface_atomic.cc
san/rtl/tsan_rtl.cc
san/rtl/tsan_rtl.h
san/rtl/tsan_rtl_mutex.cc
san/rtl/tsan_rtl_thread.cc
san/rtl/tsan_stat.cc
san/rtl/tsan_stat.h
d41fa1b7f2afe5dd78cd4e635e16fd5f079b0318 09-Oct-2013 Sergey Matveev <earthdok@google.com> [sanitizer] Fix the parent liveness check in StopTheWorld.

Comparing the parent PID with 1 isn't sufficient to ensure the parent is alive,
because of prctl(PR_SET_CHILD_SUBREAPER, ...). Compare with the real parent's
recorded PID instead.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192295 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_stoptheworld_linux_libcdep.cc
23a7a43da615bceedefe42b8398b82939e6eeb2d 08-Oct-2013 Sergey Matveev <earthdok@google.com> [sanitizer] Fix deadlock in StopTheWorld.

The tracer thread in StopTheWorld could wait on a mutex forever if the parent
process died before unlocking it. Use PR_SET_PDEATHSIG so that the parent would
kill the child in this scenario.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192210 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_stoptheworld_linux_libcdep.cc
497ae56316cd05a0d539e0d6e065bbaee254aca3 08-Oct-2013 Sergey Matveev <earthdok@google.com> [sanitizer] Do not break the CFI unwind chain in clone().

Fixes build on clang 3.2, which doesn't support cfi_undefined. This change
doesn't seem to break the slow unwinder. Even if it does, the worst thing that
could happen is that we would not see a backtrace when a fatal error happens
under StopTheWorld.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192196 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_linux.cc
5b894002c793f71f63a9b9aea1e735572db8477e 04-Oct-2013 Alexey Samsonov <samsonov@google.com> [TSan] Automatically pick up llvm-symbolizer from PATH, as we do in another sanitizers

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@191954 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/Unit/lit.cfg
san/lit_tests/lit.cfg
san/rtl/tsan_rtl.cc
f8a9c6bd45335b5423e33a8d04a93a44870513a7 04-Oct-2013 Alexey Samsonov <samsonov@google.com> [TSan] Add ValgrindSlowdown to the list of exported symbols

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@191952 91177308-0d34-0410-b5e6-96231b3b80d8
san/rtl/tsan.syms.extra
9fe1d5abd472f3357d5888d1f580fe1866a417f8 04-Oct-2013 Dmitry Vyukov <dvyukov@google.com> tsan: fix a bug in pthread_once when called from an ignored library
It must set thr->in_rtl = 0 before executing user callback.



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@191946 91177308-0d34-0410-b5e6-96231b3b80d8
san/rtl/tsan_interceptors.cc
90b0f1e3ba126bb2e92ab51ef379c98782c23d90 04-Oct-2013 Alexey Samsonov <samsonov@google.com> Refactor the usage of strip_path_prefix option and make it more consistent across sanitizers

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@191943 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_report.cc
san/asan_stack.cc
san/lsan_common.cc
san/msan_report.cc
anitizer_common/sanitizer_common.cc
anitizer_common/sanitizer_common.h
anitizer_common/sanitizer_stacktrace.cc
anitizer_common/sanitizer_stacktrace.h
anitizer_common/tests/sanitizer_common_test.cc
san/rtl/tsan_flags.cc
bsan/lit_tests/TypeCheck/misaligned.cpp
bsan/ubsan_diag.cc
92b54796149a8b5995fa49c43f43b709b83c5644 03-Oct-2013 Dmitry Vyukov <dvyukov@google.com> tsan: add memory_limit_mb flag

The flag allows to bound maximum process memory consumption (best effort).
If RSS reaches memory_limit_mb, tsan flushes all shadow memory.



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@191913 91177308-0d34-0410-b5e6-96231b3b80d8
san/go/buildgo.sh
san/rtl/tsan_flags.cc
san/rtl/tsan_platform.h
san/rtl/tsan_platform_linux.cc
san/rtl/tsan_rtl.cc
0c8af33262be025def2108352f9a720d9559ffdb 03-Oct-2013 Dmitry Vyukov <dvyukov@google.com> asan/msan/tsan: fix broken linux syscalls

Currently the following source code:

u64 NanoTime() {
kernel_timeval tv = {};
internal_syscall(__NR_gettimeofday, &tv, 0);
return (u64)tv.tv_sec * 1000*1000*1000 + tv.tv_usec * 1000;
}

generates the following assembly:

Dump of assembler code for function __sanitizer::NanoTime():
=> 0x00007ff30657d380 <+0>: lea -0x10(%rsp),%rdi
0x00007ff30657d385 <+5>: xor %esi,%esi
0x00007ff30657d387 <+7>: mov $0x60,%eax
0x00007ff30657d38c <+12>: syscall
0x00007ff30657d38e <+14>: mov $0,%eax
0x00007ff30657d393 <+19>: retq

with this change:

Dump of assembler code for function __sanitizer::NanoTime():
=> 0x00007faab834f380 <+0>: movq $0x0,-0x10(%rsp)
0x00007faab834f389 <+9>: movq $0x0,-0x8(%rsp)
0x00007faab834f392 <+18>: lea -0x10(%rsp),%rdi
0x00007faab834f397 <+23>: xor %esi,%esi
0x00007faab834f399 <+25>: mov $0x60,%eax
0x00007faab834f39e <+30>: syscall
0x00007faab834f3a0 <+32>: mov -0x8(%rsp),%rax
0x00007faab834f3a5 <+37>: mov -0x10(%rsp),%rcx
0x00007faab834f3aa <+42>: imul $0x3e8,%rax,%rdx
0x00007faab834f3b1 <+49>: imul $0x3b9aca00,%rcx,%rax
0x00007faab834f3b8 <+56>: add %rdx,%rax
0x00007faab834f3bb <+59>: retq




git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@191908 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_syscall_linux_x86_64.inc
8cde99fb9df913aaf7c1715cd134110dd5a15834 03-Oct-2013 Dmitry Vyukov <dvyukov@google.com> asan/msan: fix "unused function 'OnExit'" warning


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@191904 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_interceptors.cc
san/msan_interceptors.cc
14dd980b384ad859099b499e12f320c4791fb674 03-Oct-2013 Dmitry Vyukov <dvyukov@google.com> asan/msan/tsan: move _exit interceptor to common interceptors



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@191903 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_interceptors.cc
san/msan_interceptors.cc
anitizer_common/sanitizer_common_interceptors.inc
anitizer_common/sanitizer_platform_interceptors.h
san/rtl/tsan_interceptors.cc
48cb13166d2ea0c4770ebca2c454e05e422920bb 03-Oct-2013 Dmitry Vyukov <dvyukov@google.com> tsan: include lsan into presubmit check


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@191902 91177308-0d34-0410-b5e6-96231b3b80d8
san/check_cmake.sh
0586dcc3e531d43dca6b5d226bac2d38b5ad64fe 03-Oct-2013 Dmitry Vyukov <dvyukov@google.com> tsan: fix false positive in localtime()



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@191899 91177308-0d34-0410-b5e6-96231b3b80d8
san/msan_interceptors.cc
anitizer_common/sanitizer_common_interceptors.inc
c78140f0bd5d6b44a2a30d82879480c592f10d52 03-Oct-2013 Dmitry Vyukov <dvyukov@google.com> tsan: intercept _exit so that we can override exit status



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@191898 91177308-0d34-0410-b5e6-96231b3b80d8
san/rtl/tsan_flags.h
san/rtl/tsan_interceptors.cc
san/rtl/tsan_stat.cc
san/rtl/tsan_stat.h
4af0f21c0c98950df1136dbec8824a029ed5bb8e 03-Oct-2013 Dmitry Vyukov <dvyukov@google.com> tsan: ignore interceptors coming from specified libraries

LibIgnore allows to ignore all interceptors called from a particular set
of dynamic libraries. LibIgnore remembers all "called_from_lib" suppressions
from the provided SuppressionContext; finds code ranges for the libraries;
and checks whether the provided PC value belongs to the code ranges.

Also make malloc and friends interceptors use SCOPED_INTERCEPTOR_RAW instead of
SCOPED_TSAN_INTERCEPTOR, because if they are called from an ignored lib,
then must call our internal allocator instead of libc malloc.



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@191897 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/CMakeLists.txt
anitizer_common/sanitizer_libignore.cc
anitizer_common/sanitizer_libignore.h
anitizer_common/sanitizer_suppressions.cc
anitizer_common/sanitizer_suppressions.h
anitizer_common/tests/sanitizer_suppressions_test.cc
san/lit_tests/ignore_lib0.cc
san/lit_tests/ignore_lib0.cc.supp
san/lit_tests/ignore_lib1.cc
san/lit_tests/ignore_lib1.cc.supp
san/lit_tests/ignore_lib2.cc
san/lit_tests/ignore_lib2.cc.supp
san/lit_tests/ignore_lib3.cc
san/lit_tests/ignore_lib3.cc.supp
san/lit_tests/ignore_lib_lib.h
san/lit_tests/java_alloc.cc
san/lit_tests/java_lock.cc
san/rtl/tsan_interceptors.cc
san/rtl/tsan_interface_java.cc
san/rtl/tsan_interface_java.h
san/rtl/tsan_rtl.cc
san/rtl/tsan_rtl.h
san/rtl/tsan_stat.cc
san/rtl/tsan_stat.h
san/rtl/tsan_suppressions.cc
san/rtl/tsan_suppressions.h
cf39032f101dfb3b97b1dfc7b6d03f5d89dff266 02-Oct-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Fix localtime and gmtime interceptors to clean tm->tm_zone.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@191827 91177308-0d34-0410-b5e6-96231b3b80d8
san/tests/msan_test.cc
anitizer_common/sanitizer_common_interceptors.inc
anitizer_common/sanitizer_platform_limits_posix.cc
anitizer_common/sanitizer_platform_limits_posix.h
1d02bea922d7b47686de5a5ca81a6bcc8905b6f8 02-Oct-2013 Dmitry Vyukov <dvyukov@google.com> tsan: fix the following compiler warning
sanitizer_common_interceptors.inc:1142:53: warning: invoking macro INTERCEPTOR argument 3: empty macro arguments are undefined in ISO C90 and ISO C++98 [enabled by default]



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@191822 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_common_interceptors.inc
fdf10e2153a8b631e71873aa12c83a224b40f792 02-Oct-2013 Dmitry Vyukov <dvyukov@google.com> msan: fix compiler warnings about unused variables


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@191821 91177308-0d34-0410-b5e6-96231b3b80d8
san/msan_interceptors.cc
c6fc72342c4a31c71528ae3d8f4a7bb05bc1ef60 02-Oct-2013 Dmitry Vyukov <dvyukov@google.com> tsan: use ninja instead of make (faster and less output)


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@191819 91177308-0d34-0410-b5e6-96231b3b80d8
san/check_cmake.sh
43ac401d8eb9b7d938d75518042eb874ccce0d8e 02-Oct-2013 Nick Lewycky <nicholas@mxc.ca> This fixme is resolved, fix the test.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@191810 91177308-0d34-0410-b5e6-96231b3b80d8
bsan/lit_tests/Misc/bool.cpp
d1bf52ecb1211af7fa3fe5f5b05d08033eb1a90c 02-Oct-2013 Nick Lewycky <nicholas@mxc.ca> Make the InvalidValueData take a SourceLocation.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@191807 91177308-0d34-0410-b5e6-96231b3b80d8
bsan/ubsan_handlers.cc
bsan/ubsan_handlers.h
2946f13d6ca0cfc46d74c12e97dc40a17a7d232f 30-Sep-2013 Alexey Samsonov <samsonov@google.com> [LSan] Rework r191522 - treat allocations with short stack traces as live

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@191662 91177308-0d34-0410-b5e6-96231b3b80d8
san/lsan_common.cc
san/lsan_common_linux.cc
4430fdb4b04ae28d22cc6b24eab762afdb2fa0b7 27-Sep-2013 Alexey Samsonov <samsonov@google.com> [LSan] Don't report leaks with single-frame stack traces

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@191522 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/TestCases/swapcontext.cc
san/lsan_common.cc
1394be15dfc8a8fc0586d5f5e4302c2c8e917148 27-Sep-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Intercept backtrace, backtrace_symbols.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@191516 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/backtrace.cc
anitizer_common/sanitizer_common_interceptors.inc
anitizer_common/sanitizer_platform_interceptors.h
san/rtl/tsan_stat.cc
san/rtl/tsan_stat.h
e1c68c319a0113be832da17a777892353a8b5f23 27-Sep-2013 Kostya Serebryany <kcc@google.com> [asan] introduce run-time flag uar_stack_size_log to control the size of FakeStack; don't crash when the fake stack is exhausted, move some code to .cc file

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@191510 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_fake_stack.cc
san/asan_fake_stack.h
san/asan_flags.h
san/asan_rtl.cc
san/asan_thread.cc
san/lit_tests/TestCases/stack-use-after-return.cc
san/tests/asan_fake_stack_test.cc
cfc29de659f3abbb9273fb0fb1c9a3cd5400c81b 27-Sep-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [msan] Unpoison argument shadow for C++ module destructors.

Fixes PR17377.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@191508 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/cxa_atexit.cc
san/msan.cc
san/msan_interceptors.cc
c78773e8c3db9e191e736acdc608e7d81ac42513 27-Sep-2013 Dmitry Vyukov <dvyukov@google.com> tsan: support allocator_may_return_null flag
Fixes https://code.google.com/p/thread-sanitizer/issues/detail?id=29



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@191482 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/malloc_overflow.cc
san/rtl/tsan_flags.cc
san/rtl/tsan_flags.h
1c571dffb000ce248fd35f4e30983147a5fc52c7 26-Sep-2013 Dmitry Vyukov <dvyukov@google.com> tsan: fix scanf interceptor


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@191445 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_common_interceptors.inc
9a949a8909f652b28e9084de785c848743139fd5 25-Sep-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] A bunch of libc interceptors.

sigwait
sigwaitinfo
sigtimedwait
sigemptyset
sigfillset
sigpending
sigprocmask


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@191374 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/sigwait.cc
san/lit_tests/sigwaitinfo.cc
san/tests/msan_test.cc
anitizer_common/sanitizer_common_interceptors.inc
anitizer_common/sanitizer_platform_interceptors.h
san/rtl/tsan_interceptors.cc
san/rtl/tsan_stat.cc
san/rtl/tsan_stat.h
9c4fd1623b690726679acf020c8613c7461daea4 25-Sep-2013 Alexey Samsonov <samsonov@google.com> [Sanitizer] Don't include wordexp.h on Android

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@191358 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_platform_limits_posix.cc
c5a385500057ba60c71abbb1d1cc0ee3773be792 24-Sep-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Intercept wordexp.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@191305 91177308-0d34-0410-b5e6-96231b3b80d8
san/tests/msan_test.cc
anitizer_common/sanitizer_common_interceptors.inc
anitizer_common/sanitizer_platform_interceptors.h
anitizer_common/sanitizer_platform_limits_posix.cc
anitizer_common/sanitizer_platform_limits_posix.h
san/rtl/tsan_stat.cc
san/rtl/tsan_stat.h
6186bfc81d988b650d2acad44bcde00fda799818 24-Sep-2013 Alexander Potapenko <glider@google.com> [ASan] Fix GCD tests by spinning forever in the main thread.
Since the error is always reported by one of the GCD workers, this will help avoid premature program termination with exit code 0.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@191294 91177308-0d34-0410-b5e6-96231b3b80d8
san/tests/asan_mac_test_helpers.mm
1e190da97c75e63c95e51946f9dc223d0c2c61b7 24-Sep-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [msan] Test for atomic handling in MSan.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@191288 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/sync_lock_set_and_test.cc
cf2cabb752ffeff152ed471fa407a415c404d6e4 23-Sep-2013 Kostya Serebryany <kcc@google.com> [asan] remove -fsanitize=use-after-return from the tests (this flag now comes with asan by default)

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@191204 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/TestCases/Linux/heavy_uar_test.cc
san/lit_tests/TestCases/Linux/uar_signals.cc
san/lit_tests/TestCases/deep_call_stack.cc
san/lit_tests/TestCases/stack-use-after-return.cc
san/lit_tests/TestCases/uar_and_exceptions.cc
san/tests/CMakeLists.txt
29296c09dfd5d279d9719b39b9f628af1bcba43c 23-Sep-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [msan] Fix a WTF in r191196.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@191197 91177308-0d34-0410-b5e6-96231b3b80d8
san/msan.cc
27ee7a8bece46fafe81cd10bc5cb14b7082cb644 23-Sep-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [msan] Allow nested symbolizer and loader scopes.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@191196 91177308-0d34-0410-b5e6-96231b3b80d8
san/msan.cc
a8b8e964d7b94cae465df77642465901b1b3079d 23-Sep-2013 Timur Iskhodzhanov <timurrrr@google.com> [ASan/Win] Slightly optimize the DLL thunk

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@191190 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_dll_thunk.cc
def895b9ed81b37a99660a2ddfc2c45d229000a4 23-Sep-2013 Timur Iskhodzhanov <timurrrr@google.com> [ASan] Fix a compile-time warning

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@191189 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_dll_thunk.cc
san/asan_win.cc
c11fa095b344c1423ba76822d5bde122b1676223 23-Sep-2013 Timur Iskhodzhanov <timurrrr@google.com> [ASan] Add DLL thunks for the new stack UAR interface

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@191188 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_dll_thunk.cc
san/asan_win.cc
f5ebc6a911416846c1b181beb62a3cc9e2988cdf 23-Sep-2013 Alexander Potapenko <glider@google.com> [ASan] Fix the interface test on Darwin.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@191187 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/TestCases/Darwin/interface_symbols_darwin.c
b0796022fb8f47939696b2e57c17e1603eda1f9d 23-Sep-2013 Kostya Serebryany <kcc@google.com> [asan] disable the detect_stack_use_after_return run-time flag by default and enable it explicitly in tests. This is done in preparation to enabling the -fsanitize=use-after-return compile-time flag by default when -fsanitize=address is present.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@191184 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_rtl.cc
san/lit_tests/TestCases/Linux/heavy_uar_test.cc
san/lit_tests/TestCases/stack-use-after-return.cc
ccaafe66eb47e5cf0432a59df11d4be1bcb3a5b1 22-Sep-2013 Dmitry Vyukov <dvyukov@google.com> tsan: remove unneeded ___chkstk_ms function from Go runtime



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@191161 91177308-0d34-0410-b5e6-96231b3b80d8
san/go/buildgo.sh
san/go/tsan_go.cc
2d2dc4606e66974a69fb53a66f5b1e5501523686 22-Sep-2013 Dmitry Vyukov <dvyukov@google.com> tsan: allow symbolization of non-native PCs, e.g. coming from JIT/JAVA/etc



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@191157 91177308-0d34-0410-b5e6-96231b3b80d8
san/rtl/tsan_symbolize.cc
39fa68e4076f6a86765ddc69c44bcecb804f0b53 22-Sep-2013 Dmitry Vyukov <dvyukov@google.com> tsan: ignore malloc/free/strdup when called from libjvm


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@191153 91177308-0d34-0410-b5e6-96231b3b80d8
san/rtl/tsan_interceptors.cc
san/rtl/tsan_stat.cc
san/rtl/tsan_stat.h
d18865339cebcdaa9fc720a1e960cb452f330835 22-Sep-2013 Dmitry Vyukov <dvyukov@google.com> tsan: ignore all interceptors coming directly from JVM


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@191152 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/java.h
san/lit_tests/java_alloc.cc
san/lit_tests/java_lock.cc
san/rtl/tsan_interceptors.cc
san/rtl/tsan_interface_java.cc
san/rtl/tsan_interface_java.h
fcb6c9c80f06c241801d22d2258f59e7bb828e7b 22-Sep-2013 Dmitry Vyukov <dvyukov@google.com> tsan: improve diagnostics for incorrect usages of mutexes


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@191151 91177308-0d34-0410-b5e6-96231b3b80d8
san/rtl/tsan_rtl_mutex.cc
821acfaccc7d11b987e2882b022e8d167b0c8a54 21-Sep-2013 Dmitry Vyukov <dvyukov@google.com> tsan: allow to obtain code range for a particular module
this is required to ignore interceptors when called from the module



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@191149 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_posix.cc
anitizer_common/sanitizer_procmaps.h
anitizer_common/tests/sanitizer_procmaps_test.cc
6c21e11b36bb5ebf625463ca6724cf936ef0dc39 21-Sep-2013 Dmitry Vyukov <dvyukov@google.com> tsan: intercept fork syscall



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@191144 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_common_syscalls.inc
san/rtl/tsan_interceptors.cc
d16622bbe5dd386a3c481047c0279d251575a244 21-Sep-2013 Dmitry Vyukov <dvyukov@google.com> tsan: do not try to use builtin atomic operations
see the comment in code



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@191132 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_atomic_clang.h
b47d41f310d9069f68135b7b8cc92b09f7436c4d 21-Sep-2013 Dmitry Vyukov <dvyukov@google.com> tsan: intercept close syscall



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@191129 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_common_syscalls.inc
san/rtl/tsan_interceptors.cc
6c70a55a52827b2415263a0be2767672a703cd63 20-Sep-2013 Alexander Potapenko <glider@google.com> [ASan] Remove a complex multiline comment that baffles lint.
That comment is repeated in another function below.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@191085 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_interceptors.cc
e8eeda0775683afc4e0dbd4c3be19fce5b3d0d4a 20-Sep-2013 Alexander Potapenko <glider@google.com> [libsanitizer] Pass an explicit template to mktemp. Running mktemp without a template doesn't work on Darwin.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@191084 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/scripts/check_lint.sh
b812253202f2db9d60a543b22226064d1ed20279 20-Sep-2013 Alexander Potapenko <glider@google.com> [ASan] Fix compilation of asan_str_test.cc on non-Darwin.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@191083 91177308-0d34-0410-b5e6-96231b3b80d8
san/tests/asan_str_test.cc
d4d7040ee026ab04502c42327ed5081f704a8e3c 20-Sep-2013 Alexander Potapenko <glider@google.com> [ASan] Enforce the memmove semantics for both memcpy() and memmove() interceptors on Darwin.

Due to bugs in the interposition of resolver functions on 10.7 and 10.8 both memcpy() and memmove()
were previously intercepted by INTERCEPTOR(memcpy), which led to false positives and crashes (see http://llvm.org/bugs/show_bug.cgi?id=16362)
We choose to use a memmove-like function in both cases. This effectively disables the overlap checks in memcpy(), but the overlaps
aren't possible in practice, because memcpy() and memmove() are the same function on Darwin.

Once the interposition is fixed in 10.9, we'll need to revisit this issue, see https://code.google.com/p/address-sanitizer/issues/detail?id=226


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@191081 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_interceptors.cc
san/tests/asan_str_test.cc
81b0fe0ae241ca12882f653dcf6b13eaa5ca284d 20-Sep-2013 Kostya Serebryany <kcc@google.com> [asan] nuke yet another async-signal-safety bug in UAR (oh, my)

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@191080 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_fake_stack.h
san/asan_thread.h
8e05fda2a6b24a0aa293239ebc1c121d18b5a07f 20-Sep-2013 Alexey Samsonov <samsonov@google.com> [Sanitizer] Add pthread_cond_init to the list of versioned functions

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@191078 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/scripts/gen_dynamic_list.py
eb0be61dee155f501bb249287b17d364fedf3507 20-Sep-2013 Dmitry Vyukov <dvyukov@google.com> tsan: handle memory read/write in syscalls


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@191074 91177308-0d34-0410-b5e6-96231b3b80d8
san/rtl/tsan_interceptors.cc
ff90a95c26198e9e794e186365a62511439e0ca0 20-Sep-2013 Dmitry Vyukov <dvyukov@google.com> tsan: allow to ignore memory accesses in malloc and free


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@191072 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/ignore_free.cc
san/lit_tests/ignore_malloc.cc
san/rtl/tsan_mman.cc
9880219fc988d9fd60c8aa21c0f6f0e0d7370dd6 20-Sep-2013 Dmitry Vyukov <dvyukov@google.com> tsan: do not crash when user intercepts fopen()



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@191066 91177308-0d34-0410-b5e6-96231b3b80d8
san/rtl/tsan_interceptors.cc
fae2bff6de8be5a319ca17fd713731ce8a887476 20-Sep-2013 Dmitry Vyukov <dvyukov@google.com> tsan: fix linking of tsan runtime into dynamic libraries
versioned symbols can not be linked into dynamic library w/o linker script
also simplifies code as side effect



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@191056 91177308-0d34-0410-b5e6-96231b3b80d8
nterception/interception_linux.h
san/rtl/tsan_interceptors.cc
san/rtl/tsan_stat.cc
san/rtl/tsan_stat.h
b928ac1b61c35ef961f841ce44fc6b166362b8a2 19-Sep-2013 Alexander Potapenko <glider@google.com> [ASan] Fix init-order-dlopen.cc test to not depend on the -Wl,-undefined,dynamic_lookup being passed to the linker.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@191012 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/TestCases/SharedLibs/init-order-dlopen-so.cc
san/lit_tests/TestCases/init-order-dlopen.cc
621770a196153ee61b338d34bafd1170c1899444 19-Sep-2013 Kostya Serebryany <kcc@google.com> [asan] fix one more async-signal-safety issue with use-after-return

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@191004 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_thread.cc
san/asan_thread.h
6b85945cae8265323e98e4e88c0de66d462f69c6 19-Sep-2013 Alexey Samsonov <samsonov@google.com> [MSan] Fix -Wempty-body warning

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190994 91177308-0d34-0410-b5e6-96231b3b80d8
san/msan_interceptors.cc
c09250fce4e017c8da696a7f01abc125ba2288ad 19-Sep-2013 Alexey Samsonov <samsonov@google.com> [TSan] Fix -Wempty-body warning

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190993 91177308-0d34-0410-b5e6-96231b3b80d8
san/rtl/tsan_interceptors.cc
6fa061978b138b39d29d98a6d28c67684a23eef0 19-Sep-2013 Dmitry Vyukov <dvyukov@google.com> asan/tsan/msan: use builtin atomic operations when available
this should fix episodic crashes on ARM/PPC
x86_32 is still broken



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190991 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_atomic_clang.h
9d4956eca0894f74be09ba7e93cf722e8b400d00 19-Sep-2013 Dmitry Vyukov <dvyukov@google.com> tsan: prevent the following false positive due to __cxa_atexit

WARNING: ThreadSanitizer: data race (pid=29103)
Write of size 8 at 0x7d64003bbf00 by main thread:
#0 free tsan_interceptors.cc:477
#1 __run_exit_handlers <null>:0 (libc.so.6+0x000000050cb7)

Previous write of size 8 at 0x7d64003bbf00 by thread T78 (mutexes: write M9896):
#0 calloc tsan_interceptors.cc:449
#1 ...





git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190989 91177308-0d34-0410-b5e6-96231b3b80d8
san/rtl/tsan_interceptors.cc
9c1e4f43d24e6a9160552a64374374977ecd6961 19-Sep-2013 Dmitry Vyukov <dvyukov@google.com> tsan: consistently use thr instead of cur_thread() in annotations implementation


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190988 91177308-0d34-0410-b5e6-96231b3b80d8
san/rtl/tsan_interface_ann.cc
652f78a41de2887aedc1b0314b58bb6b622c80ca 19-Sep-2013 Dmitry Vyukov <dvyukov@google.com> tsan: refactor internal IgnoreCtl interface



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190987 91177308-0d34-0410-b5e6-96231b3b80d8
san/rtl/tsan_interceptors.cc
san/rtl/tsan_interface_ann.cc
san/rtl/tsan_rtl.cc
san/rtl/tsan_rtl.h
2ec7318dc7ffadf302ecbbaece7d4ce62172ae39 18-Sep-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [tsan] No-op implementation of AnnotateMemoryIsInitialized.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190933 91177308-0d34-0410-b5e6-96231b3b80d8
san/rtl/tsan_interface_ann.cc
230e52f4e91b53f05ce19dbbf11047f4a0113483 18-Sep-2013 Kostya Serebryany <kcc@google.com> [asan] add a run-time option detect_stack_use_after_return, add verbosity output for fake stack

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190932 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_fake_stack.cc
san/asan_flags.h
san/asan_interface_internal.h
san/asan_rtl.cc
san/asan_thread.cc
san/asan_thread.h
san/lit_tests/TestCases/stack-use-after-return.cc
608609429a2202e0342c13bc037368c8d678591c 17-Sep-2013 Alexey Samsonov <samsonov@google.com> [ASan] Don't add SANITIZER_INTERFACE_ATTRIBUTE for internal ASan functions

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190860 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_allocator.h
san/asan_allocator2.cc
san/asan_mapping.h
46817813bcbd9a74429e36f1d423b55caed4efd2 17-Sep-2013 Alexey Samsonov <samsonov@google.com> [ASan] Enable fake stack test on Mac and Android, as no-instrumentation tests are now fixed

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190856 91177308-0d34-0410-b5e6-96231b3b80d8
san/tests/CMakeLists.txt
5d9d807a9d82b566387e3064882a87cb8fd4ef22 17-Sep-2013 Alexey Samsonov <samsonov@google.com> [ASan] Link tests with -pie if ASan runtime uses zero-base shadow

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190853 91177308-0d34-0410-b5e6-96231b3b80d8
san/tests/CMakeLists.txt
b388987bf988435ee87dc4848ea8e62ebfa942eb 17-Sep-2013 Kostya Serebryany <kcc@google.com> [asan] further speedup use-after-return: simplify deallocation of fake frames. ~ 20% speedup.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190852 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_fake_stack.cc
san/asan_fake_stack.h
san/tests/asan_fake_stack_test.cc
356cff7bb61083db3915cf571c5358aa8d3830ba 17-Sep-2013 Nick Lewycky <nicholas@mxc.ca> Check the function we just called for errors, not an incoming argument. Noticed
by inspection.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190828 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_linux.cc
382bbc80dc7a93a28b565b62b383b904fc1205a4 16-Sep-2013 Alexey Samsonov <samsonov@google.com> [ASan] Don't link with pthread on Android

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190794 91177308-0d34-0410-b5e6-96231b3b80d8
san/tests/CMakeLists.txt
05fa3808f6ac96023cdf583a1a1b7220e5b451b8 16-Sep-2013 Alexey Samsonov <samsonov@google.com> [ASan] Split ASan unit tests into two different binaries:

(1) instrumented, i.e. compiled and linked with -fsanitize=address
(2) not instrumented, compiled w/o -fsanitize=address and linked with ASan runtime statically.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190788 91177308-0d34-0410-b5e6-96231b3b80d8
san/CMakeLists.txt
san/tests/CMakeLists.txt
san/tests/asan_interface_test.cc
san/tests/asan_noinst_test.cc
san/tests/asan_test.cc
22e21b044c9337a2fa921f268b7d221c693ad78b 16-Sep-2013 Alexey Samsonov <samsonov@google.com> [ASan] Check that getSymbolizer() is defined. Turn magic mapping constants into named variables

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190787 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_mapping.h
san/asan_report.cc
san/asan_rtl.cc
7bb2f9b27ee0210f25b009fb5597383b334dc01e 16-Sep-2013 Alexey Samsonov <samsonov@google.com> Minor enhancements for sanitizer_common build rules

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190786 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/CMakeLists.txt
anitizer_common/tests/CMakeLists.txt
db6d089de966dc250ceb7d81556a5978943f6efb 16-Sep-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [msan] Check return value of main: compiler-rt tests.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190783 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/heap-origin.cc
san/lit_tests/stack-origin.cc
effdc7e483708cfa4dc597c21f246c5dbc09daa0 16-Sep-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [msan] Fix origin of deallocated memory.

MSan poisons deallocated memory but it used to give it an invalid origin value,
resulting in confusing reports. This change associates deallocation stack trace
with such memory.

Note that MSan does not have quarantine, and use-after-free detection is very
limited.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190781 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/use-after-free.cc
san/msan.cc
san/msan.h
san/msan_allocator.cc
san/msan_flags.h
san/msan_interceptors.cc
san/msan_new_delete.cc
1effc056910803fd8213ac940e9d17f3c0160b4b 13-Sep-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [msan] Add source file:line to stack origin reports.

Test.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190690 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/stack-origin.cc
6f3460595f10fb4740ccd0beaa888a0e47ed48cd 13-Sep-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [msan] Add source file:line to stack origin reports.

Runtime library part.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190686 91177308-0d34-0410-b5e6-96231b3b80d8
san/msan.cc
san/msan.h
san/msan_interface_internal.h
san/msan_report.cc
7b6360891accaccfc3520be601272e50372f786a 13-Sep-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [msan] Intercept tzset.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190682 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/tzset.cc
san/msan_interceptors.cc
48abc6153185faaea5ec7cb727f04215de6db60c 13-Sep-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [msandr] Add debugging instructions to README.txt.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190680 91177308-0d34-0410-b5e6-96231b3b80d8
sandr/README.txt
ff64012e04faede5eaecd68db0edd86e8b15853c 13-Sep-2013 Kostya Serebryany <kcc@google.com> [asan] Android does not have TLS

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190669 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_fake_stack.cc
9c59ca89870cd82a1a13e5daf381951bfacba203 13-Sep-2013 Alexey Samsonov <samsonov@google.com> [ASan] Temporary disable UAR unit test on Android due to https://code.google.com/p/address-sanitizer/issues/detail?id=222

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190667 91177308-0d34-0410-b5e6-96231b3b80d8
san/tests/CMakeLists.txt
0f2283742e1d37ebf0c5ac034dab704a7d9af099 13-Sep-2013 Kostya Serebryany <kcc@google.com> [asan] don't record the class_id in FakeFrame (scratching the last bits of performance)

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190666 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_fake_stack.cc
san/asan_fake_stack.h
san/tests/asan_fake_stack_test.cc
dff16d41223d2df3762ba64a0a529c5e475de34f 13-Sep-2013 Kostya Serebryany <kcc@google.com> [asan] more performance to FakeStack: a) don't used atomic exchange, instead rely on regular load and store and other signal-safe logic; b) remove allocated_from_size_class_mask_ which is not helping much anyway; Another 10% speedup

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190664 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_fake_stack.cc
san/asan_fake_stack.h
9433af375c7813486be91d2ac76f5072ee41818d 13-Sep-2013 Kostya Serebryany <kcc@google.com> [asan] second attempt to use TLS with fake stack. This time it looks (more) async-signal safe.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190663 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_fake_stack.cc
san/asan_fake_stack.h
san/asan_thread.cc
san/asan_thread.h
b8a903c18120f40cc09aac3c28c1214a0ffceda7 13-Sep-2013 Kostya Serebryany <kcc@google.com> [asan] undo the previous commit since TLS hack breaks with signals... :(

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190662 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_fake_stack.cc
6147f02a9116a79b608b9ef547ccca51c70bffe2 13-Sep-2013 Kostya Serebryany <kcc@google.com> [asan] use TLS on Linux to get the FakeStack. Saves 15% performance

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190661 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_fake_stack.cc
8f7ec32eb34fb051f22e10b228ac056f919c4284 13-Sep-2013 Kostya Serebryany <kcc@google.com> [asan] inline PoisonShadow in FakeStack to get ~10% speedup

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190660 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_fake_stack.cc
223c83885c8da7f1bd31e805caa4cefde3a15d16 13-Sep-2013 Peter Collingbourne <peter@pcc.me.uk> [dfsan] Add a few easy functions to the ABI list.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190653 91177308-0d34-0410-b5e6-96231b3b80d8
fsan/done_abilist.txt
b1173c27c2791aef27304e68911a11648401064d 12-Sep-2013 Kostya Serebryany <kcc@google.com> [asan] a bit of performance improvement in fake stack, generalized one test, fixed android build of another test

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190606 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_fake_stack.cc
san/asan_fake_stack.h
san/lit_tests/TestCases/uar_and_exceptions.cc
san/tests/asan_fake_stack_test.cc
89de457bd3ec40d38bc7860f88f1d4da473eacc4 12-Sep-2013 Kostya Serebryany <kcc@google.com> [asan] add a test for use-after-return and exceptions and fix it. Not 100% sure this is a complete fix, will keep looking for harder cases.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190603 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_fake_stack.cc
san/asan_fake_stack.h
san/asan_rtl.cc
san/lit_tests/TestCases/uar_and_exceptions.cc
bdd9545da55933797edf58c6049d894ed0efb465 12-Sep-2013 Alexander Potapenko <glider@google.com> [ASan] Do not build asan_fake_stack_test.cc on OSX until https://code.google.com/p/address-sanitizer/issues/detail?id=222 is fixed.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190597 91177308-0d34-0410-b5e6-96231b3b80d8
san/tests/CMakeLists.txt
3b37dd4655ca0c501e76916ba7411d8d7a6ae7fd 12-Sep-2013 Kostya Serebryany <kcc@google.com> [asan] limit the size of the fake stack with a reasonable constant. This fixes a failure when the main thread's stack is considered unlimited (very large).

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190596 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_fake_stack.h
b39a604ff9d68ba7400197fca341771878443a69 12-Sep-2013 Kostya Serebryany <kcc@google.com> [asan] (part 2) don't lazy-init fake_stack if we only need to check that fake_stack exists (should fix 32-bit builds)

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190594 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_thread.cc
dcf98bf49d68533c7aebadbf6c4467afdd486c99 12-Sep-2013 Kostya Serebryany <kcc@google.com> [asan] don't lazy-init fake_stack if we only need to check that fake_stack exists (should fix 32-bit builds)

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190593 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_thread.cc
san/asan_thread.h
c98fc1f8e52812cfaf5b19a29db5ed56acb0a682 12-Sep-2013 Kostya Serebryany <kcc@google.com> [asan] hopefully make the FakeStack async-signal safe, enable the related test

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190592 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_fake_stack.cc
san/asan_fake_stack.h
san/asan_thread.cc
san/asan_thread.h
san/lit_tests/TestCases/Linux/uar_signals.cc
san/lit_tests/TestCases/stack-use-after-return.cc
96a575f05b2a45774170a118ea69ddae3659b645 12-Sep-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [asan] Fix deadlock in stack unwinder on android/x86.

Fixes PR17116.
Patch by 林作健 (manjian2006 at gmail.com).


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190590 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_stack.h
san/asan_thread.h
san/lsan_common_linux.cc
86b88b80bdb7ea9a265f8946e7918bcc388abceb 12-Sep-2013 Kostya Serebryany <kcc@google.com> [asan] use xchg instead of CAS in FakeStack::Allocate (5% faster for this case)

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190589 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_fake_stack.cc
ac3ae5dc29d3623ada2bcb0db22ee88b0382e3b1 12-Sep-2013 Kostya Serebryany <kcc@google.com> [asan] fully re-implement the FakeStack (use-after-return) to make it faster and async-signal-safe. The implementation is not yet complete (see FIXMEs) but the existing tests pass.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190588 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_fake_stack.cc
san/asan_fake_stack.h
san/asan_report.cc
san/asan_thread.h
san/tests/CMakeLists.txt
san/tests/asan_fake_stack_test.cc
08a0e08a8df2511452a2f2e5cdcf7b1c0096f088 11-Sep-2013 Bill Wendling <isanbard@gmail.com> Fix typo

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190543 91177308-0d34-0410-b5e6-96231b3b80d8
rofile/GCDAProfiling.c
665efa967845cc2a84520187bab5bfed3c053221 11-Sep-2013 Daniel Jasper <djasper@google.com> Revert r190520 as it wasn't the right fix.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190524 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_symbolizer.h
a81787d0182ee8d4f430d509322281acdf77391d 11-Sep-2013 Daniel Jasper <djasper@google.com> Add empty virtual destructor...

... as this otherwise triggers -Wnon-virtual-dtor.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190520 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_symbolizer.h
cac631e3a63ec6c8a74008fe358af9c4b2306582 11-Sep-2013 Alexey Samsonov <samsonov@google.com> [TSan] Use --whole-archive around TSan runtime in old TSan makefiles. Fix a Go build

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190513 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_linux.cc
san/Makefile.old
san/lit_tests/test_output.sh
7a3d5fe086a6458be7c4810397363b67b022a138 11-Sep-2013 Alexey Samsonov <samsonov@google.com> [Sanitizer] build sanitizer_common library with -Wglobal-constructors

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190504 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/CMakeLists.txt
a8b4c3b6809a4cdc10587020b98246c171bc18ee 11-Sep-2013 Alexey Samsonov <samsonov@google.com> [TSan] Use Clang to compile and link TSan unit tests with TSan runtime

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190503 91177308-0d34-0410-b5e6-96231b3b80d8
san/tests/CMakeLists.txt
san/tests/rtl/CMakeLists.txt
san/tests/unit/CMakeLists.txt
san/tests/unit/tsan_unit_test_main.cc
e059bd35a33040c9ecbd291a190449f7a0a6f17f 10-Sep-2013 Alexey Samsonov <samsonov@google.com> Fixup for r190410: use lazy initialization for symbolizer as some compilers emit global constructor to setup vptr

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190414 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_symbolizer_posix_libcdep.cc
9213e07a7f95b3e634b97a7bba70849badcf2c8a 10-Sep-2013 Timur Iskhodzhanov <timurrrr@google.com> [ASan] Remove the explicit function prototypes for intercepted functions on Windows

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190411 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_intercepted_functions.h
nterception/interception.h
7847d77b246635211c3bf465421d49d7af5226c1 10-Sep-2013 Alexey Samsonov <samsonov@google.com> [Sanitizer] Refactor symbolization interface: use class instead of several functions. Move some code around to get rid of extra source files

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190410 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_report.cc
san/asan_rtl.cc
san/lsan.cc
san/lsan_common.cc
san/msan.cc
san/msan_report.cc
anitizer_common/CMakeLists.txt
anitizer_common/sanitizer_common.cc
anitizer_common/sanitizer_common.h
anitizer_common/sanitizer_linux.cc
anitizer_common/sanitizer_linux.h
anitizer_common/sanitizer_linux_libcdep.cc
anitizer_common/sanitizer_mac.cc
anitizer_common/sanitizer_stacktrace.cc
anitizer_common/sanitizer_symbolizer.h
anitizer_common/sanitizer_symbolizer_itanium.cc
anitizer_common/sanitizer_symbolizer_libcdep.cc
anitizer_common/sanitizer_symbolizer_linux.cc
anitizer_common/sanitizer_symbolizer_linux_libcdep.cc
anitizer_common/sanitizer_symbolizer_mac.cc
anitizer_common/sanitizer_symbolizer_posix_libcdep.cc
anitizer_common/sanitizer_symbolizer_win.cc
anitizer_common/sanitizer_win.cc
san/rtl/tsan_rtl.cc
san/rtl/tsan_symbolize.cc
bsan/ubsan_diag.cc
34e3ed1db94c5ce9784d7ffb8d66a54cf523e09c 10-Sep-2013 Kostya Serebryany <kcc@google.com> [asan] refactor the use-after-return API so that the size class is computed at compile time instead of at run-time. compiler-rt part

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190406 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_fake_stack.cc
san/asan_fake_stack.h
san/asan_interface_internal.h
san/asan_rtl.cc
san/lit_tests/TestCases/Linux/interface_symbols_linux.c
san/tests/asan_noinst_test.cc
13c379073b8af7eb5ea4706078428d1594c487ab 10-Sep-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [msan] bool -> int to make msan_interface.h C-compatible.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190402 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/malloc_hook.cc
san/msan_allocator.cc
san/msan_interface_internal.h
997454a41a1658837d72d69ec7def59616311243 10-Sep-2013 Timur Iskhodzhanov <timurrrr@google.com> [ASan] Don't crash in DescribeHeapAddress if we don't know the current thread's ID

Also make DescribeThread easier to use.
This was firing on Dr.ASan runs, not sure how to repro InvalidTID in a simple test.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190392 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_report.cc
a09507c38cf9dd9119e5aa9bd6d91383514f857b 10-Sep-2013 Eli Friedman <eli.friedman@gmail.com> Delete unused variables.



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190383 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/tests/sanitizer_mutex_test.cc
san/rtl/tsan_interceptors.cc
78d737cfd36b57c784095db281bac8e3c500c8b6 10-Sep-2013 Peter Collingbourne <peter@pcc.me.uk> [dfsan] Initial set of DFSAN_OPTIONS flags.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190379 91177308-0d34-0410-b5e6-96231b3b80d8
fsan/dfsan.cc
fsan/dfsan.h
fsan/lit_tests/Inputs/flags_abilist.txt
fsan/lit_tests/flags.c
7ab94ea0d5182da0e0ed1dc2c3cf40beccbf25b9 10-Sep-2013 Bill Wendling <isanbard@gmail.com> Don't allow a NULL-length file. Try to revert to the buffered version.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190359 91177308-0d34-0410-b5e6-96231b3b80d8
rofile/GCDAProfiling.c
bb22942b91bf0855da4a9da132c77f325b187b84 09-Sep-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [msan] Intercept fstatat / fstatat64.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190306 91177308-0d34-0410-b5e6-96231b3b80d8
san/msan_interceptors.cc
san/tests/msan_test.cc
d9a5e243254764ab1024320ef34bc2a87180f4c5 09-Sep-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Fix PR17138.

strerror_r on OSX returns a positive error code when the errno value is
unknown. Buffer contents are initialized in any case.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190295 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/TestCases/strerror_r_test.cc
anitizer_common/sanitizer_common_interceptors.inc
85626e8127d1f795a447c1bacb5a2606c7b954d9 09-Sep-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Delete extra whitespace.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190292 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_platform_limits_posix.h
4f78b354034f4b6826a59733d774f558ca1eab89 08-Sep-2013 Alexey Samsonov <samsonov@google.com> [ASan] fix one more memory leak in test case

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190277 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/TestCases/free_hook_realloc.cc
9da14cc709011d1d61ac1bcc9a8a78c00e80fce5 08-Sep-2013 Alexey Samsonov <samsonov@google.com> [Sanitizer] Use generic configs for running sanitizer_common unit tests

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190276 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/tests/lit.cfg
anitizer_common/tests/lit.site.cfg.in
1a249181dcdf217d368fbf4c1f09d8af7e617cb0 08-Sep-2013 Alexey Samsonov <samsonov@google.com> [ASan] turn on leak checking for ASan tests and fix a few discovered leaks

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190274 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/TestCases/Linux/glob.cc
san/lit_tests/TestCases/Linux/interception_readdir_r_test.cc
san/lit_tests/Unit/lit.site.cfg.in
san/lit_tests/lit.cfg
san/tests/asan_noinst_test.cc
san/tests/asan_str_test.cc
it.common.unit.cfg
it.common.unit.configured.in
a3cb27e188bd23190ba7a41a8c62fa7cc5ac5544 06-Sep-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Avoid including any system headers in the system-header-free part of the runtime library.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190161 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_common_syscalls.inc
anitizer_common/sanitizer_platform_limits_posix.cc
anitizer_common/sanitizer_platform_limits_posix.h
9a4a1590169e42076aee67a6fd472ece77b9b484 06-Sep-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Fix Android build.

Android actually has "__unused" macro defined in <cdefs.h>.



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190160 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_platform_limits_posix.h
639df402c4925acd3ea7bebff729a535e3f79964 06-Sep-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] A bunch of linux system call handlers.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190157 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/TestCases/Linux/syscalls.cc
san/lit_tests/Linux/syscalls.cc
anitizer_common/CMakeLists.txt
anitizer_common/sanitizer_common_syscalls.inc
anitizer_common/sanitizer_platform_limits_linux.cc
anitizer_common/sanitizer_platform_limits_posix.cc
anitizer_common/sanitizer_platform_limits_posix.h
0b2c3a79bbcba15bb973f8199bbd7052b43f548c 06-Sep-2013 Alexander Potapenko <glider@google.com> [ASan] make the check for NULL more portable.



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190139 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/TestCases/allocator_returns_null.cc
e9e4f04e8320d35ab19dfb8688a7bdd3e5ae7cbb 06-Sep-2013 Alexey Samsonov <samsonov@google.com> Fix compiler warning introduced in r190022

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190137 91177308-0d34-0410-b5e6-96231b3b80d8
san/tests/asan_str_test.cc
f7f2e431263cc0aa321218ce8978b289187a39a3 06-Sep-2013 Alexey Samsonov <samsonov@google.com> Migrate ATTRIBUTE_NO_ADDRESS_SAFETY_ANALYSIS to new spelling - ATTRIBUTE_NO_SANITIZE_ADDRESS

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190136 91177308-0d34-0410-b5e6-96231b3b80d8
san/tests/asan_test.cc
anitizer_common/tests/sanitizer_test_utils.h
bd33d3ab168fcbcfe09a3fd6a971994b481e89d0 06-Sep-2013 Kostya Serebryany <kcc@google.com> [tsan] make calloc crash instead of returning 0 on overflow (controlled by the allocator_may_return_null flag)

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190135 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/allocator_returns_null.cc
san/lit_tests/malloc_overflow.cc
san/rtl/tsan_interceptors.cc
san/rtl/tsan_mman.cc
san/tests/unit/tsan_mman_test.cc
967e07eccfec5e013df5f77b7dd906abfa6b60d9 06-Sep-2013 Kostya Serebryany <kcc@google.com> [msan] make calloc crash instead of returning 0 on overflow (controlled by the allocator_may_return_null flag)

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190132 91177308-0d34-0410-b5e6-96231b3b80d8
san/msan_interceptors.cc
san/tests/msan_test.cc
48b7ee943e01a206600b0189e6b2b0125c4dd1d1 06-Sep-2013 Kostya Serebryany <kcc@google.com> [asan] make calloc crash instead of returning 0 on overflow (controlled by the allocator_may_return_null flag)

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190128 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_allocator2.cc
san/lit_tests/TestCases/allocator_returns_null.cc
san/tests/asan_noinst_test.cc
9150f397ba4c5478275d72665ea3e53a84c7076a 06-Sep-2013 Kostya Serebryany <kcc@google.com> [sanitizer] make the allocator crash instead of returning 0 on huge size (controlled by the allocator_may_return_null flag)

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190127 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_allocator2.cc
san/lit_tests/TestCases/allocator_returns_null.cc
san/tests/asan_test.cc
anitizer_common/sanitizer_allocator.cc
anitizer_common/sanitizer_allocator.h
anitizer_common/sanitizer_flags.cc
anitizer_common/sanitizer_flags.h
anitizer_common/tests/sanitizer_allocator_test.cc
a27512c4e115df4f260501a94b8d343f9ed955af 05-Sep-2013 Kostya Serebryany <kcc@google.com> [tsan] add colors to tsan output

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190045 91177308-0d34-0410-b5e6-96231b3b80d8
san/rtl/tsan_report.cc
923bac7a85d8bd37219b440a6b4c0800ea4bcd21 05-Sep-2013 Reid Kleckner <reid@kleckner.net> sanitizers: Make sure Visual Studio gets error reports

Visual Studio appears to close stderr before launching a non-console
win32 program. This means we don't see any sanitizer reports. If
stderr printing fails, call OutputDebugStringA to get the reports into
the Visual Studio debugger console.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190030 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_common.cc
anitizer_common/sanitizer_common.h
anitizer_common/sanitizer_posix.cc
anitizer_common/sanitizer_win.cc
b99228de65b408b0acd9618b92774fb8add7e482 05-Sep-2013 Reid Kleckner <reid@kleckner.net> asan: Add a wcslen interceptor mirroring strlen

Tested on Linux, since I can't build the tests on Windows yet.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190022 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_intercepted_functions.h
san/asan_interceptors.cc
san/tests/asan_str_test.cc
ed2364bb49e9ad1866320e02b0f004b97907052a 04-Sep-2013 Kostya Serebryany <kcc@google.com> [asan] add a test that demonstrates why the current use-after-return is not signal-safe

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189943 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/TestCases/Linux/uar_signals.cc
73dc36ea7dd04a2ea52ffae91670913731de209a 04-Sep-2013 Kostya Serebryany <kcc@google.com> [asan] make use-after-return handle very deep recursion; fixes 483.xalancbmk in UAR mode

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189929 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_fake_stack.cc
san/asan_fake_stack.h
san/lit_tests/TestCases/deep_call_stack.cc
db9d684d26dc31a7522bb90841d51cbcc84ed23b 04-Sep-2013 Alexey Samsonov <samsonov@google.com> Disable FindPathToBinary test on Android

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189923 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/tests/sanitizer_common_test.cc
5a58ef4284194419446d77037441f92d85ab7e4c 03-Sep-2013 Timur Iskhodzhanov <timurrrr@google.com> [asan] Hopefully un-break the RTL on Windows

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189821 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_win.cc
22917e961033a840c500761d3c7110b5a654fca4 03-Sep-2013 Timur Iskhodzhanov <timurrrr@google.com> [asan] Hopefully fix the RTL build on Windows (part 2)

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189817 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_report.cc
8cde5cb6b7020d079f8db3e389a02df7a007f017 03-Sep-2013 Dmitry Vyukov <dvyukov@google.com> tsan: catch races on condition variables


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189816 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/cond.c
san/lit_tests/cond_race.cc
san/rtl/tsan_interceptors.cc
89fe5642529335dc5d13ce7f4e61bdea36fca508 03-Sep-2013 Kostya Serebryany <kcc@google.com> [asan] attemping to fix the Windows build

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189814 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_report.cc
8a3d788a346c4d69e22fbae1e431714ecf403c81 03-Sep-2013 Timur Iskhodzhanov <timurrrr@google.com> Revert r185536 as it neither fixes any memory leaks, nor is it necessary (see the example from "man pthread_getattr_np")

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189810 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_linux_libcdep.cc
edb39c7942fc9fe5043b7cce348bac0aec4c83eb 03-Sep-2013 Kostya Serebryany <kcc@google.com> implement PR17059: more visible diagnostics for stack-buffer-overflow

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189806 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_report.cc
san/lit_tests/TestCases/stack-buffer-overflow-with-position.cc
san/lit_tests/TestCases/stack-use-after-return.cc
650c7d44b659ddfb4af471dc2ad79a727b7de939 03-Sep-2013 Sergey Matveev <earthdok@google.com> [lsan] Colorize LSan reports.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189804 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_report.cc
san/lsan_common.cc
san/msan_report.cc
anitizer_common/sanitizer_common.h
anitizer_common/sanitizer_common_libcdep.cc
68c016aea0b61f649b9d9ba65c7d7217e0c0f6cb 03-Sep-2013 Alexey Samsonov <samsonov@google.com> ASan, LSan, MSan: try to find llvm-symbolizer binary in PATH if it is not provided. Now we don't need to explicitly set the location of llvm-symbolizer in lit test configs.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189801 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_rtl.cc
san/lit_tests/lit.cfg
san/lit_tests/AsanConfig/lit.cfg
san/lit_tests/LsanConfig/lit.cfg
san/lsan.cc
san/lit_tests/lit.cfg
san/msan.cc
anitizer_common/sanitizer_symbolizer.h
anitizer_common/sanitizer_symbolizer_libcdep.cc
1dcd1d9d1c86ab9b728386d261fbebe00b32e097 03-Sep-2013 Alexey Samsonov <samsonov@google.com> [Sanitizer] Add the way to find binary in PATH

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189799 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_common.h
anitizer_common/sanitizer_posix.cc
anitizer_common/sanitizer_win.cc
anitizer_common/tests/sanitizer_common_test.cc
72870db5f2e0e83b2e925eef594dacfae275a8de 03-Sep-2013 Alexey Samsonov <samsonov@google.com> Add internal_strchrnul function

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189797 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_libc.cc
anitizer_common/sanitizer_libc.h
anitizer_common/tests/sanitizer_libc_test.cc
da506a9ae831f275267ddc9ee74e5474246369b1 03-Sep-2013 Alexey Samsonov <samsonov@google.com> [TSan] fixup for r189791: don't put ; on the newline

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189792 91177308-0d34-0410-b5e6-96231b3b80d8
san/rtl/tsan_suppressions.cc
a117492b30509744a2b3e1e84c7b56e9ad76c0c9 03-Sep-2013 Dmitry Vyukov <dvyukov@google.com> tsan: add suppressions for true/false positives in standard libraries


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189791 91177308-0d34-0410-b5e6-96231b3b80d8
san/rtl/tsan_suppressions.cc
a4e950a2f1eff82b53f500637d1114246886015c 03-Sep-2013 Alexander Potapenko <glider@google.com> [libsanitizer] Remove an unused variable introduced in r189789


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189790 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_linux.cc
2e13ca86c9ce926e6fefd528892592326478ac6c 03-Sep-2013 Alexander Potapenko <glider@google.com> [TSan] Move the /proc/self/maps parsing logic to sanitizer_common

Provide a generic way for the tools to generate memory profiles from contents of /proc/self/maps



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189789 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_linux.cc
anitizer_common/sanitizer_procmaps.h
san/rtl/tsan_platform_linux.cc
ab0ddd48647cc7081786567d328d23268cc41359 03-Sep-2013 Dmitry Vyukov <dvyukov@google.com> tsan: fix linking when -ltsan is passed before -lpthread
libpthread is weird:
/lib/x86_64-linux-gnu/libpthread.so.0:000000000000b9b0 T pthread_cond_init@@GLIBC_2.3.2
/lib/x86_64-linux-gnu/libpthread.so.0:000000000000c720 T pthread_cond_init@GLIBC_2.2.5
let's do it with @@ for now
we can always introduce more macros parameters later



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189788 91177308-0d34-0410-b5e6-96231b3b80d8
nterception/interception_linux.h
ec014cc3705b35d9df38419c94e72f553ebe2ea8 03-Sep-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [msan] Another regression test for r189786.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189787 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/select.cc
204060453c823f027815cfe6d449bbd5c4f39f7f 03-Sep-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [msan] A regression test for r189785.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189786 91177308-0d34-0410-b5e6-96231b3b80d8
san/tests/msan_test.cc
696902ad6f427ce37b5f64a84a9cd53162f09abf 03-Sep-2013 Kostya Serebryany <kcc@google.com> fix PR17061 (and pleeease, don't ask me for a test, this is just a minor output formatting issue :)

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189783 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_report.cc
2f913eef5770968386515855529e9b6244df1247 03-Sep-2013 Dmitry Vyukov <dvyukov@google.com> asan: fix android build
android does not have dlvsym


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189781 91177308-0d34-0410-b5e6-96231b3b80d8
nterception/interception_linux.cc
nterception/interception_linux.h
f061554e8bbfad5e29dcd9e81feb725b75869fa0 02-Sep-2013 Dmitry Vyukov <dvyukov@google.com> tsan: properly intercept pthread_cond functions


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189767 91177308-0d34-0410-b5e6-96231b3b80d8
nterception/interception_linux.cc
nterception/interception_linux.h
san/lit_tests/cond_version.c
san/lit_tests/test_output.sh
san/rtl/tsan_interceptors.cc
san/rtl/tsan_stat.cc
san/rtl/tsan_stat.h
b6c3c12e3009bb2fe384dc156a97afb51767399c 02-Sep-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [msan] Update MSanDR build instructions.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189760 91177308-0d34-0410-b5e6-96231b3b80d8
sandr/README.txt
cb339108cca40fb4c1ed520656cb6cb75889a237 02-Sep-2013 Sergey Matveev <earthdok@google.com> [sanitizer_common] Add internal_clone().

Add a wrapper for the clone syscall for use in StopTheWorld. We
implement it only for x86_64, so stop building StopTheWorld for other platforms
(no one uses it outside x86_64 anyway).

See https://code.google.com/p/address-sanitizer/issues/detail?id=214 for why we
can't use the glibc clone() wrapper.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189753 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_linux.cc
anitizer_common/sanitizer_linux.h
anitizer_common/sanitizer_stoptheworld_linux_libcdep.cc
anitizer_common/tests/sanitizer_stoptheworld_test.cc
97160a83ae2dad479cd93a3cb1dfbc06958f69a1 02-Sep-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [msan] Intercept memalign, valloc, pvalloc.

PR17039


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189750 91177308-0d34-0410-b5e6-96231b3b80d8
san/msan_interceptors.cc
san/tests/msan_test.cc
dcf154d08f770f7b683ebe58c80603029a773c68 02-Sep-2013 Alexey Samsonov <samsonov@google.com> [ASan] Make blacklist test more robust

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189748 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/TestCases/blacklist.cc
642db076afad2d0c639e7adb25c6f0ed51536909 02-Sep-2013 Alexey Samsonov <samsonov@google.com> [CMake] Don't build sanitizer runtimes if LLVM_USE_SANITIZER is specified

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189745 91177308-0d34-0410-b5e6-96231b3b80d8
MakeLists.txt
717ece58e18190c4aef50bd16254db1d74036395 02-Sep-2013 Alexey Samsonov <samsonov@google.com> Improve collecting malloc stats in ASan

Summary:
This change makes races between updates of thread-local stats and
merging all the thread-local stats together less harmful.

Reviewers: kcc

Reviewed By: kcc

CC: dvyukov, llvm-commits

Differential Revision: http://llvm-reviews.chandlerc.com/D1572

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189744 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_stats.cc
san/asan_stats.h
san/asan_thread.cc
san/lit_tests/TestCases/current_allocated_bytes.cc
6d40a0a2ffa6735e45bd1d62c94ff725fd3e8b71 30-Aug-2013 Peter Collingbourne <peter@pcc.me.uk> Conditionalise inclusion of link.h on !SANITIZER_ANDROID.

Hopefully fixes the Android build.

Differential Revision: http://llvm-reviews.chandlerc.com/D1551

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189696 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_linux.cc
98432980845d10da7ea1aa8fc4d330a763d193ed 30-Aug-2013 Will Dietz <wdietz2@illinois.edu> Avoid compiler-generated memset by using internal_memset.

Fixes PR17025.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189693 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_libc.cc
ba945f8d5c3f57dfadc3b2fa7ac9016fdd331e1d 30-Aug-2013 Peter Collingbourne <peter@pcc.me.uk> [dfsan] Add a syms file.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189620 91177308-0d34-0410-b5e6-96231b3b80d8
fsan/CMakeLists.txt
fsan/dfsan.syms.extra
fb23e2f83e2450e54196fe8c85eda17475089b41 29-Aug-2013 Alexey Samsonov <samsonov@google.com> Minor updates to gen_dynamic_list script suggested by glider

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189588 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/scripts/gen_dynamic_list.py
0bc4a0b9c7cae94e4a1d50a77a53cb92781b46c5 29-Aug-2013 Alexey Samsonov <samsonov@google.com> [TSan] Add a couple of compiler warnings to TSan runtime compile flags

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189581 91177308-0d34-0410-b5e6-96231b3b80d8
san/CMakeLists.txt
d9760ab05f99451ffe7528a3e03e98ab67e09383 29-Aug-2013 Alexey Samsonov <samsonov@google.com> [TSan] Move build rules a bit to ensure correct dependencies of check-tsan command

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189579 91177308-0d34-0410-b5e6-96231b3b80d8
san/CMakeLists.txt
san/rtl/CMakeLists.txt
225c4cc03b77be2e1766289a84f563a0017b4e67 29-Aug-2013 Alexey Samsonov <samsonov@google.com> [sanitizer] Parallelize lint checker script

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189578 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/scripts/check_lint.sh
38a61aa7d3fc1deeb612e02863f0fbb417cda612 29-Aug-2013 Alexey Samsonov <samsonov@google.com> [sanitizer] Refine CMake rules for generating exported symbols and lint checking

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189577 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/CMakeLists.txt
anitizer_common/tests/CMakeLists.txt
5fa3d5d7ec35a704c6362d8d04f03023bb6e95e8 28-Aug-2013 Peter Collingbourne <peter@pcc.me.uk> [dfsan] Add custom function for dl_iterate_phdr.

Differential Revision: http://llvm-reviews.chandlerc.com/D1505

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189503 91177308-0d34-0410-b5e6-96231b3b80d8
fsan/dfsan_custom.cc
fsan/done_abilist.txt
fsan/lit_tests/custom.c
6c6374474949329f6ae00318027e9e32aa87057f 28-Aug-2013 Peter Collingbourne <peter@pcc.me.uk> [dfsan] Add custom function for pthread_create.

Differential Revision: http://llvm-reviews.chandlerc.com/D1504

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189502 91177308-0d34-0410-b5e6-96231b3b80d8
fsan/dfsan_custom.cc
fsan/done_abilist.txt
fsan/lit_tests/custom.c
1de40607ba0671e82e49be696dbd8a001b41f6f4 28-Aug-2013 Will Dietz <wdietz2@illinois.edu> sanitizer_common: Use PYTHON_EXECUTABLE to choose appropriate python.

Fixes build on systems where 'python' is not python2.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189486 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/CMakeLists.txt
anitizer_common/scripts/check_lint.sh
81b8120b555eedd578e0737d081d1f6d76cfc3b9 28-Aug-2013 Alexey Samsonov <samsonov@google.com> Make lint checker script more robust

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189479 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/CMakeLists.txt
anitizer_common/scripts/check_lint.sh
fafab2f5e27eecbfaaee727f66ecd068dafa41fe 28-Aug-2013 Alexey Samsonov <samsonov@google.com> Check code style in check-sanitizer command

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189475 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/CMakeLists.txt
anitizer_common/scripts/check_lint.sh
anitizer_common/scripts/cpplint.py
anitizer_common/tests/CMakeLists.txt
c154820b43052cfc54ee20752a3232aa8e6c7843 28-Aug-2013 Alexey Samsonov <samsonov@google.com> [sanitizer] fix code style

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189474 91177308-0d34-0410-b5e6-96231b3b80d8
san/msan.cc
san/msan.h
anitizer_common/sanitizer_stackdepot.h
anitizer_common/sanitizer_stoptheworld_linux_libcdep.cc
anitizer_common/tests/sanitizer_common_test.cc
4c621593e8df1ac25f86ea5d638f426e92dc27b1 28-Aug-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [msan] Remove extra backup/restore calls.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189461 91177308-0d34-0410-b5e6-96231b3b80d8
san/msan_interceptors.cc
6102afb6651a43f6fa3c66810e321e464aff1172 28-Aug-2013 Kostya Serebryany <kcc@google.com> [asan]: fix a CHECK failure in use-after-return mode; enable and fix stack-use-after-return.cc; add a test for UAR mode in asan_noinst_test

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189457 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_fake_stack.cc
san/lit_tests/TestCases/stack-use-after-return.cc
san/tests/asan_noinst_test.cc
544bdfb538d082109194952ce66907b917eb8d51 28-Aug-2013 Alexey Samsonov <samsonov@google.com> Generate list of symbols exported from sanitizer runtimes only on 64-bit Unix

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189454 91177308-0d34-0410-b5e6-96231b3b80d8
san/CMakeLists.txt
san/CMakeLists.txt
bsan/CMakeLists.txt
e5fa243b20bf5e6a097bc58cbedfe6bed8a9b7d1 27-Aug-2013 Alexey Samsonov <samsonov@google.com> Properly generate lists of exported symbols for sanitizer runtimes

This change adds a Python script that is invoked for
the just-built sanitizer runtime to generate the list of exported symbols
passed to the linker. By default, it contains interceptors and sanitizer
interface functions, but can be extended with tool-specific lists.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189356 91177308-0d34-0410-b5e6-96231b3b80d8
san/CMakeLists.txt
san/asan.syms
san/asan.syms.extra
san/CMakeLists.txt
san/msan.syms
san/msan.syms.extra
anitizer_common/scripts/gen_dynamic_list.py
san/Makefile.old
san/gen_dynamic_list.sh
san/rtl/CMakeLists.txt
san/rtl/tsan.syms
san/rtl/tsan.syms.extra
bsan/CMakeLists.txt
bsan/ubsan.syms
bsan/ubsan.syms.extra
0e38a67cd2d877e8680d65878c86c9e7e4fa4b1d 27-Aug-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [msan] Save/restore va_arg_overflow_tls in signal handlers.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189351 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/signal_stress_test.cc
san/msan.cc
san/msan.h
san/msan_interceptors.cc
3354fa60c20cc5c99ecfb36d813b598dc1b96b80 27-Aug-2013 Alexey Samsonov <samsonov@google.com> Revert r189347: it breaks on machines w/o installed debug versions of system libraries

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189350 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/TestCases/use_tls_dynamic.cc
a6b03c051f9f62771978f8621e7d82ebd1aadd2d 27-Aug-2013 Alexey Samsonov <samsonov@google.com> LSan: Check that dynamic linker library is properly symbolized

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189347 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/TestCases/use_tls_dynamic.cc
91659d56bab07fb82ac0edad18c04b333680fd62 27-Aug-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [msan] Unpoison all TLS shadow when leaving a signal handler.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189343 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/signal_stress_test.cc
san/msan.cc
san/msan.h
san/msan_interceptors.cc
e0a871284c7496b91add2956531d1a9e65b7bc88 27-Aug-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [msan] Fix a data race in signal/sigaction interceptors.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189342 91177308-0d34-0410-b5e6-96231b3b80d8
san/msan_interceptors.cc
47177efc15d2a75c7c85ba31aa61e41e7b47b5a3 27-Aug-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [msan] A test for ppoll() interceptor.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189339 91177308-0d34-0410-b5e6-96231b3b80d8
san/tests/msan_test.cc
b32d1bfc59592bc57d74a1e940881354b4788eae 27-Aug-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Simplify sigaction and sigset_t handling.



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189338 91177308-0d34-0410-b5e6-96231b3b80d8
san/msan_interceptors.cc
anitizer_common/sanitizer_common_interceptors.inc
anitizer_common/sanitizer_platform_limits_posix.cc
anitizer_common/sanitizer_platform_limits_posix.h
c1f1af715b204a7be6e31754169c358edb392bb2 27-Aug-2013 Hans Wennborg <hans@hanshq.net> cmake: fix the compiler-rt build with MSVC

This sets flags and excludes things that aren't working with MSVC yet,
allowing us to build the ASan runtime as part of the cmake build.

Differential Revision: http://llvm-reviews.chandlerc.com/D1525

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189304 91177308-0d34-0410-b5e6-96231b3b80d8
MakeLists.txt
san/CMakeLists.txt
anitizer_common/CMakeLists.txt
384a448fbe081352f7b3bb927093412ad1725cff 26-Aug-2013 Sergey Matveev <earthdok@google.com> [sanitizer] Add a fast version of StackDepotGet() for use in LSan.

Add a class that holds a snapshot of the StackDepot optimized for querying by
ID. This allows us to speed up LSan dramatically.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189217 91177308-0d34-0410-b5e6-96231b3b80d8
san/lsan_common_linux.cc
anitizer_common/sanitizer_common.h
anitizer_common/sanitizer_stackdepot.cc
anitizer_common/sanitizer_stackdepot.h
anitizer_common/tests/sanitizer_common_test.cc
anitizer_common/tests/sanitizer_stackdepot_test.cc
90629fb8072efc95e46a0cbc641293511fbaba2e 26-Aug-2013 Sergey Matveev <earthdok@google.com> [sanitizer] Handle Die() in StopTheWorld.

Handle calls to Die() from the tracer thread. Fixes a bug where a CHECK
could fail in the tracer thread, resulting in a call to AsanDie. The tracer
thread then exited and the parent process continued execution despite its
address space being in an unusable state.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189216 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_common.cc
anitizer_common/sanitizer_common.h
anitizer_common/sanitizer_stoptheworld_linux_libcdep.cc
920860cd166b25b2bf3c765b693278a4e5992a2b 23-Aug-2013 Peter Collingbourne <peter@pcc.me.uk> [dfsan] Integration test for the equal-labels case

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189134 91177308-0d34-0410-b5e6-96231b3b80d8
fsan/lit_tests/propagate.c
3c531dfb0f06a53826bd55e1cae949abb03a6d6d 23-Aug-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [msan] Extend VAArgTLSOverwrite test.

This test now covers LLVM r189104.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189105 91177308-0d34-0410-b5e6-96231b3b80d8
san/tests/msan_test.cc
5bd2174c1385ec10b172cc9a32bc33b1967d60b5 23-Aug-2013 Alexey Samsonov <samsonov@google.com> Slightly improve lint checker script and fix a few style issues

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189092 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/TestCases/high_allocator_contention.cc
anitizer_common/sanitizer_common_interceptors.inc
anitizer_common/scripts/check_lint.sh
25aa2553555f416a261625da7f2bd48c36d487bd 22-Aug-2013 Sergey Matveev <earthdok@google.com> [lsan] Add a regression test for building C code.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189016 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/AsanConfig/lit.cfg
san/lit_tests/LsanConfig/lit.cfg
san/lit_tests/TestCases/sanity_check_pure_c.c
san/lit_tests/lit.common.cfg
ba15077bf83ebf9a32bfefcd0c9c2f35ab36001d 22-Aug-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Fix build when scanf interceptors are enabled, and __isoc99_*scanf are not.

Fixes PR16916.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189015 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_common_interceptors.inc
8d0c5ba5a63e2934136336db1884804c00932be9 22-Aug-2013 Sergey Matveev <earthdok@google.com> [lsan] Add a stress test.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189012 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/TestCases/high_allocator_contention.cc
34fe7e14ee64a3f2768c8a0e789cba607fd69867 22-Aug-2013 Sergey Matveev <earthdok@google.com> [lsan] Build standalone LSan with -fno-rtti.

Fix issue where C code could not be built with -fsanitize=leak.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189010 91177308-0d34-0410-b5e6-96231b3b80d8
san/CMakeLists.txt
san/tests/CMakeLists.txt
ebc0484ebbd1b7ed142b2851e3308559dabe79f7 20-Aug-2013 Alexey Samsonov <samsonov@google.com> [LSan] Add support for building standalone LSan runtime to Make build (compiler-rt part)

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@188804 91177308-0d34-0410-b5e6-96231b3b80d8
san/Makefile.mk
45c9df5517260bea38ea8583c68756f9a9aaec5b 18-Aug-2013 Chandler Carruth <chandlerc@gmail.com> It appears that glibc 2.13 has the same thread descriptor size as 2.11,
bump up the inflection point to 2.14. If someone can tell me how to
actually figure out value for this, that would be awesome.

Anyways, this takes me to one ASan failure, one LSan failure, and three
TSan failures for 'check-all' on Linux.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@188635 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_linux_libcdep.cc
8766b8162c8e0e2f57baf7aa47736f89aaaac9dc 18-Aug-2013 Chandler Carruth <chandlerc@gmail.com> Revert r188369 (and r188455) which breaks the build on at least some
Linux systems. I've replied on the original commit thread with details
of the problem.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@188628 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/CMakeLists.txt
anitizer_common/sanitizer_common_interceptors_ioctl.inc
anitizer_common/sanitizer_platform_limits_linux.cc
anitizer_common/sanitizer_platform_limits_posix.cc
anitizer_common/sanitizer_platform_limits_posix.h
7840d7d44f20b95274e86b0d4b254692f775a32f 18-Aug-2013 Joerg Sonnenberger <joerg@bec.de> Fix endian conditions on Solaris. From Alexander Esilevich.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@188613 91177308-0d34-0410-b5e6-96231b3b80d8
nt_endianness.h
13f5be4dd1d8bf6a44d8d976325f1c6f26fa9f7f 16-Aug-2013 Timur Iskhodzhanov <timurrrr@google.com> [ASan/RTL] Disable colored reporting on Windows

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@188545 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_report.cc
anitizer_common/sanitizer_report_decorator.h
9d95475f8adb1e08e45484feb03570ae2be2d0f3 16-Aug-2013 Dmitry Vyukov <dvyukov@google.com> tsan: better report formatting for Go
Say that gorotuine 1 is main goroutine.
Remove excessive new line.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@188542 91177308-0d34-0410-b5e6-96231b3b80d8
san/go/buildgo.sh
san/go/test.c
san/rtl/tsan_report.cc
a0e78c9dbd9cc27aebf765cc69a1158df5a05bb9 16-Aug-2013 Timur Iskhodzhanov <timurrrr@google.com> [ASan/RTL] Disable alloc_dealloc_mismatch by default on Windows

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@188541 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_rtl.cc
6e4c46dc162803cc99c2a5e068fc28adb873a431 15-Aug-2013 Peter Collingbourne <peter@pcc.me.uk> [dfsan] Initial set of custom functions and interceptors for libc.

Differential Revision: http://llvm-reviews.chandlerc.com/D1397

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@188490 91177308-0d34-0410-b5e6-96231b3b80d8
fsan/CMakeLists.txt
fsan/dfsan.cc
fsan/dfsan.h
fsan/dfsan_custom.cc
fsan/dfsan_interceptors.cc
fsan/done_abilist.txt
fsan/libc_ubuntu1204_abilist.txt
fsan/lit_tests/custom.c
fsan/scripts/build-libc-list.py
2c78b04e65a7eaf5a207d6cfae8fac1d7490bcae 15-Aug-2013 Peter Collingbourne <peter@pcc.me.uk> [dfsan] Runtime support for -dfsan-debug-nonzero-labels feature.

Reviewers: eugenis

CC: llvm-commits

Differential Revision: http://llvm-reviews.chandlerc.com/D1406

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@188471 91177308-0d34-0410-b5e6-96231b3b80d8
fsan/dfsan.cc
1a26778a82f8a699a075ce8b4dde4f474e54020d 15-Aug-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Add missing include.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@188455 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_platform_limits_linux.cc
369ffffa48cb611a63dc5c7926e5c00181b14ba1 14-Aug-2013 Peter Collingbourne <peter@pcc.me.uk> [dfsan] New __dfsan_set_label runtime function.

Differential Revision: http://llvm-reviews.chandlerc.com/D1396

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@188411 91177308-0d34-0410-b5e6-96231b3b80d8
fsan/dfsan.cc
e8d20340700e0253a2b08c03391409f397eac3e3 14-Aug-2013 Peter Collingbourne <peter@pcc.me.uk> [dfsan] Runtime support for ABI list functionality; can now run integration tests with args ABI.

Differential Revision: http://llvm-reviews.chandlerc.com/D1351

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@188401 91177308-0d34-0410-b5e6-96231b3b80d8
fsan/CMakeLists.txt
fsan/dfsan.cc
fsan/done_abilist.txt
fsan/lit_tests/CMakeLists.txt
fsan/lit_tests/basic.c
fsan/lit_tests/fncall.c
fsan/lit_tests/propagate.c
e6e564d232f95719277476308937856328c63682 14-Aug-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Split platform_limits_posix into system- and kernel-dependent parts.

This change moves everything depending on kernel headers (mostly ioctl types
and ids) into a separate source file. This will reduce the possibility of
header conflict on various platforms (most importantly, older glibc versions).

This change also removes 2 deprecated ioctls, and symbolic ids for other bunch
of ambiguous ioctls (i.e. same id is shared by ioctls with different memory
behavior).


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@188369 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/CMakeLists.txt
anitizer_common/sanitizer_common_interceptors_ioctl.inc
anitizer_common/sanitizer_platform_limits_linux.cc
anitizer_common/sanitizer_platform_limits_posix.cc
anitizer_common/sanitizer_platform_limits_posix.h
1528c6cea4593ac7c45d72a74efae4be36ec52f0 14-Aug-2013 Peter Collingbourne <peter@pcc.me.uk> [dfsan] Introduce dfsan_read_label runtime function.

Differential Revision: http://llvm-reviews.chandlerc.com/D1349

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@188319 91177308-0d34-0410-b5e6-96231b3b80d8
fsan/dfsan.cc
fsan/lit_tests/basic.c
fsan/lit_tests/propagate.c
cf878fd3e01cd141ad1e095764d64c410c0ce763 13-Aug-2013 Dmitry Vyukov <dvyukov@google.com> tsan: intercept getaddrinfo
This is necessary to prevent false positives, see:
https://code.google.com/p/thread-sanitizer/issues/detail?id=25



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@188291 91177308-0d34-0410-b5e6-96231b3b80d8
san/rtl/tsan_interceptors.cc
e274841d866cde3d393f643632bf67d59469430e 13-Aug-2013 Timur Iskhodzhanov <timurrrr@google.com> [ASan/Win] Oops, forgot to add the attributes to the memory allocations functions

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@188290 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_malloc_win.cc
dbac0a4a41f405d10e3dcad3597fe08986605289 13-Aug-2013 Dmitry Vyukov <dvyukov@google.com> tsan/msan: add halt_on_error flag
If halt_on_error==true, program terminates after reporting first error.



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@188279 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/keep-going.cc
san/msan.cc
san/msan_flags.h
san/msan_interceptors.cc
san/check_cmake.sh
san/lit_tests/halt_on_error.cc
san/rtl/tsan_flags.cc
san/rtl/tsan_flags.h
san/rtl/tsan_rtl_report.cc
43e62df906327f6ffa492edb933af1195143d149 13-Aug-2013 Timur Iskhodzhanov <timurrrr@google.com> [ASan/Win] Hook some memory allocation functions; passes simple sanity test now

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@188278 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_dll_thunk.cc
68cd60c77470fd6e0f86bad1e4c68796d516cc06 13-Aug-2013 Timur Iskhodzhanov <timurrrr@google.com> [ASan/Win] Add the first version of the RTL thunk that should be linked with instrumented DLLs

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@188267 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_dll_thunk.cc
9edab4feb0dc70b002cdcd7c1af7b2ae1f76f6c9 13-Aug-2013 Timur Iskhodzhanov <timurrrr@google.com> Add a FIXME to check_lint

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@188266 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/scripts/check_lint.sh
77690dbcd5ec7e0e17cb2c05e0d906d6d098f210 13-Aug-2013 Timur Iskhodzhanov <timurrrr@google.com> [*San/RTL] One more minor fix

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@188263 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_symbolizer_itanium.cc
f109267c5320210e69c1b66add801fd5f2e2a452 13-Aug-2013 Timur Iskhodzhanov <timurrrr@google.com> [*San/RTL] Fix minor breakage

Grumbling: this hasn't been caught by running 'make check-{a,l,t}san check-sanitizer'

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@188262 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_internal_defs.h
san/rtl/tsan_interceptors.cc
3c80c6c574850106481f82b9e23d1c728458d4a9 13-Aug-2013 Timur Iskhodzhanov <timurrrr@google.com> Define SANITIZER_INTERFACE_ATTRIBUTE on Windows and fix all the places where SANITIZER_INTERFACE_ATTRIBUTE or SANITIZER_ATTRIBUTE_WEAK are used

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@188261 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_allocator.h
san/asan_allocator2.cc
san/asan_interface_internal.h
san/asan_report.cc
san/asan_rtl.cc
san/asan_stack.cc
san/lsan_common.cc
san/lsan_common.h
san/msan.cc
san/msan_interface_internal.h
anitizer_common/sanitizer_common.h
anitizer_common/sanitizer_internal_defs.h
anitizer_common/sanitizer_linux.cc
anitizer_common/sanitizer_printf.cc
anitizer_common/sanitizer_stacktrace.h
anitizer_common/sanitizer_symbolizer.h
anitizer_common/sanitizer_symbolizer_itanium.cc
anitizer_common/sanitizer_symbolizer_libcdep.cc
san/rtl/tsan_interceptors.cc
san/rtl/tsan_interface.cc
san/rtl/tsan_interface.h
san/rtl/tsan_interface_ann.h
e4c3c84e9d470ebe5bae3a28358f28c7f652e5a6 13-Aug-2013 Peter Collingbourne <peter@pcc.me.uk> [dfsan] Remove the unused __dfsan_memcpy function.

Differential Revision: http://llvm-reviews.chandlerc.com/D1350

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@188238 91177308-0d34-0410-b5e6-96231b3b80d8
fsan/dfsan.cc
fa9f5aef0583535f3ac1fa444f2cf62db324537e 13-Aug-2013 Peter Collingbourne <peter@pcc.me.uk> [dfsan] Begin a private header and move shadow_for there.

Differential Revision: http://llvm-reviews.chandlerc.com/D1348

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@188231 91177308-0d34-0410-b5e6-96231b3b80d8
fsan/dfsan.cc
fsan/dfsan.h
249cdca5989af3b55e42460283ca63096aeddfeb 13-Aug-2013 Peter Collingbourne <peter@pcc.me.uk> [dfsan] Introduce dfsan_union runtime function.

Differential Revision: http://llvm-reviews.chandlerc.com/D1347

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@188229 91177308-0d34-0410-b5e6-96231b3b80d8
fsan/dfsan.cc
fsan/lit_tests/propagate.c
fa484bac3e2d6a5a4bb83dd522a63fd0d70fc2bb 13-Aug-2013 Rui Ueyama <ruiu@google.com> Add "CHECK-" prefix to un-break buildbot failure.

After r188221, the prefix given by --check-prefix must match with the label
as a whole. Substring is not considered to be a correct label anymore.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@188227 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/free_race.c
bsan/lit_tests/Integer/add-overflow.cpp
bsan/lit_tests/Integer/shift.cpp
bsan/lit_tests/Integer/sub-overflow.cpp
bsan/lit_tests/Integer/uadd-overflow.cpp
bsan/lit_tests/Integer/uincdec-overflow.cpp
bsan/lit_tests/Integer/usub-overflow.cpp
e18e3f07802c420eb4b2da407e148084b75cecc9 12-Aug-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Intercept poll/ppoll.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@188177 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_interceptors.cc
san/msan_interceptors.cc
san/tests/msan_test.cc
anitizer_common/sanitizer_common_interceptors.inc
anitizer_common/sanitizer_platform_interceptors.h
anitizer_common/sanitizer_platform_limits_posix.cc
anitizer_common/sanitizer_platform_limits_posix.h
san/rtl/tsan_interceptors.cc
san/rtl/tsan_stat.cc
san/rtl/tsan_stat.h
edff34b5175c6759685da82077c99ee2be017667 12-Aug-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Intercept getgroups.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@188167 91177308-0d34-0410-b5e6-96231b3b80d8
san/tests/msan_test.cc
anitizer_common/sanitizer_common_interceptors.inc
anitizer_common/sanitizer_platform_interceptors.h
san/rtl/tsan_stat.cc
san/rtl/tsan_stat.h
e8a1fce513171e90c281c8fe5c9f3dd644da59ca 10-Aug-2013 Daniel Dunbar <daniel@zuster.org> [tests] Add one more lit rename update I missed.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@188117 91177308-0d34-0410-b5e6-96231b3b80d8
it.common.unit.cfg
a1b15b4af39b843ebb8545d295aa872829eb8187 10-Aug-2013 Daniel Dunbar <daniel@zuster.org> [tests] Update to use lit_config and lit package, as appropriate.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@188116 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/32bitConfig/lit.site.cfg.in
san/lit_tests/64bitConfig/lit.site.cfg.in
san/lit_tests/Unit/lit.site.cfg.in
san/lit_tests/lit.cfg
fsan/lit_tests/lit.cfg
fsan/lit_tests/lit.site.cfg.in
it.common.cfg
it.common.configured.in
it.common.unit.configured.in
san/lit_tests/AsanConfig/lit.cfg
san/lit_tests/AsanConfig/lit.site.cfg.in
san/lit_tests/LsanConfig/lit.cfg
san/lit_tests/LsanConfig/lit.site.cfg.in
san/lit_tests/Unit/lit.site.cfg.in
san/lit_tests/lit.common.cfg
san/lit_tests/Unit/lit.site.cfg.in
san/lit_tests/lit.cfg
san/lit_tests/lit.site.cfg.in
anitizer_common/tests/lit.cfg
anitizer_common/tests/lit.site.cfg.in
san/lit_tests/Unit/lit.cfg
san/lit_tests/Unit/lit.site.cfg.in
san/lit_tests/lit.cfg
san/lit_tests/lit.site.cfg.in
bsan/lit_tests/lit.cfg
bsan/lit_tests/lit.site.cfg.in
31f1941f7e2ee9548a77fb19186960b9b8a0632a 09-Aug-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Fix handling of %n in scanf interceptor.

%n does not increase the input item count. The new code emits writes to %n
arguments even if it has run out of input items.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@188069 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_common_interceptors_scanf.inc
anitizer_common/tests/sanitizer_scanf_interceptor_test.cc
6793ea5a9b2b75bb424df38fae3abf6dec7defcd 09-Aug-2013 Stephen Hines <srhines@google.com> Merge commit '653e4526c70eb3d47780ed57553bc41c4b3cc1d6' into merge-20130807
8283cce72f05db2e7129aaa80059351177d69ffc 08-Aug-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Limit scandir interceptor to Linux.

Implementation uses __thread not available on certain platforms.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@187983 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_platform_interceptors.h
224226c18c1ee1f9d187de86bf1c5023cb153c71 08-Aug-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Intercept scandir/scandir64.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@187982 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/scandir.cc
san/lit_tests/scandir_null.cc
san/lit_tests/scandir_test_root/aaa
san/lit_tests/scandir_test_root/aab
san/lit_tests/scandir_test_root/bbb
anitizer_common/sanitizer_common_interceptors.inc
anitizer_common/sanitizer_platform_interceptors.h
san/rtl/tsan_stat.cc
san/rtl/tsan_stat.h
cde3bae2a43eeb2ce086436833d4f24ab1e69005 08-Aug-2013 Dmitry Vyukov <dvyukov@google.com> tsan: better diagnostics for invalid addresses passed to free()


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@187980 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_allocator.h
1204979804868728edb6edfe3ae018465191a85c 08-Aug-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Intercept strerror and strerror_r.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@187978 91177308-0d34-0410-b5e6-96231b3b80d8
san/tests/msan_test.cc
anitizer_common/sanitizer_common_interceptors.inc
anitizer_common/sanitizer_platform_interceptors.h
san/rtl/tsan_stat.cc
san/rtl/tsan_stat.h
82821fa64c3f0571a18adc1aa7cbadaba2a5e5e2 08-Aug-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] ASan/MSan tests for r187967.

r187967: Disable inlining between sanitized and non-sanitized functions.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@187971 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/TestCases/inline.cc
san/lit_tests/inline.cc
b404b55b4f575fd57519bca3212d7d27c44fa26a 08-Aug-2013 Alexey Samsonov <samsonov@google.com> Simplify (and fix) check-dfsan configs

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@187968 91177308-0d34-0410-b5e6-96231b3b80d8
fsan/CMakeLists.txt
fsan/lit_tests/CMakeLists.txt
fsan/lit_tests/lit.cfg
fsan/lit_tests/lit.site.cfg.in
eee71ae5c1f4ce71612fac359463a54bc867abd6 08-Aug-2013 Peter Collingbourne <peter@pcc.me.uk> DataFlowSanitizer; compiler-rt changes.

DataFlowSanitizer is a generalised dynamic data flow analysis.

Unlike other Sanitizer tools, this tool is not designed to detect a
specific class of bugs on its own. Instead, it provides a generic
dynamic data flow analysis framework to be used by clients to help
detect application-specific issues within their own code.

Differential Revision: http://llvm-reviews.chandlerc.com/D967

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@187924 91177308-0d34-0410-b5e6-96231b3b80d8
MakeLists.txt
akefile.mk
fsan/CMakeLists.txt
fsan/Makefile.mk
fsan/dfsan.cc
fsan/lit_tests/CMakeLists.txt
fsan/lit_tests/basic.c
fsan/lit_tests/fncall.c
fsan/lit_tests/lit.cfg
fsan/lit_tests/lit.site.cfg.in
fsan/lit_tests/propagate.c
653e4526c70eb3d47780ed57553bc41c4b3cc1d6 07-Aug-2013 Alexander Potapenko <glider@google.com> [TSan] Fix free_race.c by removing `not` from the test invocation that doesn't fail.



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@187889 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/free_race.c
45c652e3b3068f5a0626977e4506c71cfdba8ad3 07-Aug-2013 Alexander Potapenko <glider@google.com> [TSan] Let the users suppress use-after-free errors using the "race:" suppressions.

If there's a race between a memory access and a free() call in the client program,
it can be reported as a use-after-free (if the access occurs after the free()) or an ordinary race
(if free() occurs after the access).
We've decided to use a single "race:" prefix for both cases instead of introducing a "use-after-free:" one,
because in many cases this allows us to keep a single suppression for both the use-after-free and free-after-use.

This may be misleading if the use-after-free occurs in a non-racy way (e.g. in a single-threaded program).
But normally such bugs shall not be suppressed.



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@187885 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/free_race.c
san/lit_tests/free_race.c.supp
san/rtl/tsan_suppressions.cc
ead14cf28f1d2684c6197b569cb812774dc6cbcd 07-Aug-2013 Alexey Samsonov <samsonov@google.com> ASan: fix one more test case for pipefail

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@187881 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/TestCases/Darwin/malloc_zone-protected.cc
244a8e02f5c99a62f0c92cf854b859f34ca1d8b5 07-Aug-2013 Alexey Samsonov <samsonov@google.com> Distinguish 32-bit ASan from 64-bit ASan in lit configs

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@187878 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/lit.cfg
f2366a95ae2b54569bf556c11580a14481f8700f 07-Aug-2013 Alexey Samsonov <samsonov@google.com> Enable pipefail for ASan tests

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@187877 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/TestCases/Linux/heavy_uar_test.cc
san/lit_tests/TestCases/Linux/initialization-bug-any-order.cc
san/lit_tests/TestCases/Linux/interception_malloc_test.cc
san/lit_tests/TestCases/Linux/interception_test.cc
san/lit_tests/TestCases/Linux/malloc-in-qsort.cc
san/lit_tests/TestCases/Linux/malloc_delete_mismatch.cc
san/lit_tests/TestCases/Linux/overflow-in-qsort.cc
san/lit_tests/TestCases/Linux/ptrace.cc
san/lit_tests/TestCases/Linux/rlimit_mmap_test.cc
san/lit_tests/TestCases/Linux/syscalls.cc
san/lit_tests/TestCases/Linux/zero-base-shadow32.cc
san/lit_tests/TestCases/Linux/zero-base-shadow64.cc
san/lit_tests/TestCases/allow_user_segv.cc
san/lit_tests/TestCases/asan-symbolize-sanity-test.cc
san/lit_tests/TestCases/deep_stack_uaf.cc
san/lit_tests/TestCases/deep_tail_call.cc
san/lit_tests/TestCases/deep_thread_stack.cc
san/lit_tests/TestCases/double-free.cc
san/lit_tests/TestCases/global-demangle.cc
san/lit_tests/TestCases/global-overflow.cc
san/lit_tests/TestCases/huge_negative_hea_oob.cc
san/lit_tests/TestCases/init-order-atexit.cc
san/lit_tests/TestCases/initialization-bug.cc
san/lit_tests/TestCases/invalid-free.cc
san/lit_tests/TestCases/ioctl.cc
san/lit_tests/TestCases/memcmp_strict_test.cc
san/lit_tests/TestCases/memcmp_test.cc
san/lit_tests/TestCases/on_error_callback.cc
san/lit_tests/TestCases/partial_right.cc
san/lit_tests/TestCases/readv.cc
san/lit_tests/TestCases/sanity_check_pure_c.c
san/lit_tests/TestCases/shared-lib-test.cc
san/lit_tests/TestCases/sleep_before_dying.c
san/lit_tests/TestCases/stack-frame-demangle.cc
san/lit_tests/TestCases/stack-oob-frames.cc
san/lit_tests/TestCases/stack-overflow.cc
san/lit_tests/TestCases/strdup_oob_test.cc
san/lit_tests/TestCases/strip_path_prefix.c
san/lit_tests/TestCases/symbolize_callback.cc
san/lit_tests/TestCases/time_interceptor.cc
san/lit_tests/TestCases/unaligned_loads_and_stores.cc
san/lit_tests/TestCases/use-after-poison.cc
san/lit_tests/TestCases/use-after-scope-dtor-order.cc
san/lit_tests/TestCases/use-after-scope-inlined.cc
san/lit_tests/TestCases/use-after-scope.cc
san/lit_tests/TestCases/wait.cc
san/lit_tests/lit.cfg
84ba74c10ad43c6dff77302f87efae72623d2a1b 07-Aug-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Intercept sched_getaffinity.

Re-applying with a more reliable test case.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@187876 91177308-0d34-0410-b5e6-96231b3b80d8
san/tests/msan_test.cc
anitizer_common/sanitizer_common_interceptors.inc
anitizer_common/sanitizer_platform_interceptors.h
san/rtl/tsan_stat.cc
san/rtl/tsan_stat.h
0172c8cd8ec72ae11e7b2a2b65b54466ea75de9c 07-Aug-2013 Alexey Samsonov <samsonov@google.com> Enable pipefail for TSan tests

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@187875 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/atomic_free.cc
san/lit_tests/atomic_free2.cc
san/lit_tests/atomic_race.cc
san/lit_tests/atomic_stack.cc
san/lit_tests/fd_location.cc
san/lit_tests/fd_pipe_race.cc
san/lit_tests/fd_stdout_race.cc
san/lit_tests/free_race.c
san/lit_tests/free_race2.c
san/lit_tests/global_race.cc
san/lit_tests/heap_race.cc
san/lit_tests/inlined_memcpy_race.cc
san/lit_tests/java_lock_rec_race.cc
san/lit_tests/java_race.cc
san/lit_tests/java_race_move.cc
san/lit_tests/lit.cfg
san/lit_tests/load_shared_lib.cc
san/lit_tests/longjmp3.cc
san/lit_tests/longjmp4.cc
san/lit_tests/malloc_stack.cc
san/lit_tests/memcpy_race.cc
san/lit_tests/mop_with_offset.cc
san/lit_tests/mop_with_offset2.cc
san/lit_tests/mutex_destroy_locked.cc
san/lit_tests/mutexset1.cc
san/lit_tests/mutexset2.cc
san/lit_tests/mutexset3.cc
san/lit_tests/mutexset4.cc
san/lit_tests/mutexset5.cc
san/lit_tests/mutexset6.cc
san/lit_tests/mutexset7.cc
san/lit_tests/mutexset8.cc
san/lit_tests/oob_race.cc
san/lit_tests/race_on_barrier.c
san/lit_tests/race_on_barrier2.c
san/lit_tests/race_on_heap.cc
san/lit_tests/race_on_mutex.c
san/lit_tests/race_on_mutex2.c
san/lit_tests/race_on_read.cc
san/lit_tests/race_on_write.cc
san/lit_tests/race_with_finished_thread.cc
san/lit_tests/signal_errno.cc
san/lit_tests/signal_malloc.cc
san/lit_tests/sigsuspend.cc
san/lit_tests/simple_race.c
san/lit_tests/simple_race.cc
san/lit_tests/simple_stack.c
san/lit_tests/simple_stack2.cc
san/lit_tests/sleep_sync.cc
san/lit_tests/sleep_sync2.cc
san/lit_tests/stack_race.cc
san/lit_tests/stack_race2.cc
san/lit_tests/static_init3.cc
san/lit_tests/suppress_same_address.cc
san/lit_tests/suppress_same_stacks.cc
san/lit_tests/thread_leak3.c
san/lit_tests/thread_leak5.c
san/lit_tests/thread_name.cc
san/lit_tests/tiny_race.c
san/lit_tests/tls_race.cc
san/lit_tests/tls_race2.cc
san/lit_tests/unaligned_race.cc
san/lit_tests/vptr_harmful_race.cc
san/lit_tests/vptr_harmful_race2.cc
san/lit_tests/write_in_reader_lock.cc
cc5a4acd26ea0e8975c7af3cba906440153cf072 07-Aug-2013 Alexey Samsonov <samsonov@google.com> Enable pipefail for LSan tests

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@187873 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/TestCases/disabler.cc
san/lit_tests/TestCases/do_leak_check_override.cc
san/lit_tests/TestCases/ignore_object.cc
san/lit_tests/TestCases/large_allocation_leak.cc
san/lit_tests/TestCases/link_turned_off.cc
san/lit_tests/TestCases/stale_stack_leak.cc
san/lit_tests/TestCases/suppressions_default.cc
san/lit_tests/TestCases/suppressions_file.cc
san/lit_tests/TestCases/use_globals_initialized.cc
san/lit_tests/TestCases/use_globals_uninitialized.cc
san/lit_tests/TestCases/use_registers.cc
san/lit_tests/TestCases/use_stacks.cc
san/lit_tests/TestCases/use_stacks_threaded.cc
san/lit_tests/TestCases/use_tls_dynamic.cc
san/lit_tests/TestCases/use_tls_pthread_specific_dynamic.cc
san/lit_tests/TestCases/use_tls_pthread_specific_static.cc
san/lit_tests/TestCases/use_tls_static.cc
san/lit_tests/TestCases/use_unaligned.cc
san/lit_tests/lit.common.cfg
212008328600e3b966fe5363e84d7fa824eafe77 07-Aug-2013 David Blaikie <dblaikie@gmail.com> Revert "[sanitizer] Intercept sched_getaffinity."

This reverts commit r187788.

The test case is unreliable (as the test may be run in a situation in
which it has no affinity with cpu0). This can be recommitted with a more
reliable test - possibly using CPU_COUNT != 0 instead (I wasn't entirely
sure that a process was guaranteed to have at least one affinity, though
it seems reasonable, or I'd have made the change myself).

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@187841 91177308-0d34-0410-b5e6-96231b3b80d8
san/tests/msan_test.cc
anitizer_common/sanitizer_common_interceptors.inc
anitizer_common/sanitizer_platform_interceptors.h
san/rtl/tsan_stat.cc
san/rtl/tsan_stat.h
a74047af8eb56e41cbb765d296b79e07ce4803b3 06-Aug-2013 Alexander Potapenko <glider@google.com> [libsanitizer] Drive-by fix for -Wempty-body in sanitizer_common_syscalls.inc
This makes the file consistently use { } around the if statements containing the PRE_/POST_ macros.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@187797 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_common_syscalls.inc
39d68edd461abb5058a4b96fd16f1741ad89bba7 06-Aug-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Fix NULL arg handling in setitimer/getitimer interceptors.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@187789 91177308-0d34-0410-b5e6-96231b3b80d8
san/tests/msan_test.cc
anitizer_common/sanitizer_common_interceptors.inc
b2dc6137eaa16f45401a6905f5aff1e894ae0975 06-Aug-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Intercept sched_getaffinity.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@187788 91177308-0d34-0410-b5e6-96231b3b80d8
san/tests/msan_test.cc
anitizer_common/sanitizer_common_interceptors.inc
anitizer_common/sanitizer_platform_interceptors.h
san/rtl/tsan_stat.cc
san/rtl/tsan_stat.h
53fbbf419e1db6c03132650f189d725d23f51a42 05-Aug-2013 Alexey Samsonov <samsonov@google.com> Lint fixes

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@187726 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_allocator.h
anitizer_common/sanitizer_common_syscalls.inc
anitizer_common/scripts/check_lint.sh
5c48a8c4a8b3f7cd3f03f26c6aadc0ee606fc9b7 02-Aug-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [msan] Allocator statistics interface and malloc hooks.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@187653 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/malloc_hook.cc
san/msan.h
san/msan_allocator.cc
san/msan_interface_internal.h
san/tests/msan_test.cc
anitizer_common/sanitizer_allocator.h
08104e6f77f4e5279f8cb4a74784ffb7afd5073f 02-Aug-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [msan] Fix unused function warning in the tests.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@187648 91177308-0d34-0410-b5e6-96231b3b80d8
san/tests/msan_test.cc
41f15402521b7af66c2aa8e0ad4a056fc8166dd9 01-Aug-2013 Sergey Matveev <earthdok@google.com> [lsan] Add leak_check_at_exit flag.

We needed a way to tell LSan to invoke leak checking only if __do_leak_check()
is called explicitly. This can now be achieved by setting
leak_check_at_exit=false.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@187578 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_rtl.cc
san/lit_tests/TestCases/leak_check_at_exit.cc
san/lsan.cc
anitizer_common/sanitizer_flags.cc
anitizer_common/sanitizer_flags.h
534e2ba5188e1a74b340f9507755806357835f62 01-Aug-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [msan] Intercept setenv, putenv.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@187575 91177308-0d34-0410-b5e6-96231b3b80d8
san/msan_interceptors.cc
san/tests/msan_test.cc
3ff67e64a39d28ece8fc4a191095e5321cb56e50 31-Jul-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [msan] Fix msan tests with pipefail option.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@187485 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/dso-origin.cc
san/lit_tests/ioctl_custom.cc
san/lit_tests/lit.cfg
74422e9f7cf31ee3cff478f6c36ca3faa46e1ebd 30-Jul-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Tweak read syscall handler signature for consistency.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@187417 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_common_syscalls.inc
9d34659cd3570423fb1fa49248887e2bd4b762f9 30-Jul-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] read() syscall hook.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@187414 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/Linux/syscalls.cc
anitizer_common/sanitizer_common_syscalls.inc
6567092b06b37195cd93d57204bcbfe6843b2a48 30-Jul-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [msan] Intercept pthread_join.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@187413 91177308-0d34-0410-b5e6-96231b3b80d8
san/msan_interceptors.cc
san/tests/msan_test.cc
5ec19bc74b52fd962f079086c2fa615d6d3f0864 30-Jul-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [msan] Intercept confstr.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@187412 91177308-0d34-0410-b5e6-96231b3b80d8
san/tests/msan_test.cc
anitizer_common/sanitizer_common_interceptors.inc
anitizer_common/sanitizer_platform_interceptors.h
san/rtl/tsan_stat.cc
san/rtl/tsan_stat.h
103e5b744497fdc57be9efe5e6ef40a896736993 30-Jul-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [asan] Limit fake stack size to a reasonable value when running with unlimited stack.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@187411 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_fake_stack.cc
933a5d2fd96e8758dd12890ed263def8e80f6f02 30-Jul-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [asan] Raise thread stack size limit.

It's a sanity check, mostly, and we've seen threads with >256Mb stack.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@187408 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_linux_libcdep.cc
d054abef27369471e154ec5693949538c2fdffd9 30-Jul-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Disable ForEachMappedRegion on Android.

It needs interface that is missing from the NDK, and it is not used on Android anyway.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@187407 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_linux.cc
f50b0fc601aea71d9fb22f01a11c7e206c666edc 29-Jul-2013 Peter Collingbourne <peter@pcc.me.uk> Fix warning.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@187373 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_linux.cc
2e75ac983cb233daa1abfa35fb33d2bafffe2ab1 29-Jul-2013 Peter Collingbourne <peter@pcc.me.uk> Move UnpoisonMappedDSO to sanitizer_common.

This is so DFSan will be able to use it.

Differential Revision: http://llvm-reviews.chandlerc.com/D1206

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@187372 91177308-0d34-0410-b5e6-96231b3b80d8
san/msan.h
san/msan_interceptors.cc
san/msan_linux.cc
anitizer_common/sanitizer_linux.cc
anitizer_common/sanitizer_linux.h
ce502588cc5ac2da2dd11e83700767a3c8ce236b 27-Jul-2013 Chandler Carruth <chandlerc@gmail.com> Turn off pipefail on msan tests to match the other sanitizers until
someone can go through and update the RUN lines appropriately for the
new pipefail behavior.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@187298 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/lit.cfg
bdeb86ce38d8971fa9a5706643e9331b48981dfa 27-Jul-2013 Rafael Espindola <rafael.espindola@gmail.com> Disable pipefail for lsan.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@187274 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/lit.common.cfg
8c6046b9a8c384b630ae5c1376ee8c0cb1abe406 27-Jul-2013 Rafael Espindola <rafael.espindola@gmail.com> disable pipefail for ubsan.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@187273 91177308-0d34-0410-b5e6-96231b3b80d8
bsan/lit_tests/lit.cfg
55a932680a6a94e9eadc11f7bc905d8fed1c831a 27-Jul-2013 Rafael Espindola <rafael.espindola@gmail.com> Disable pipefail for ThreadSanitizer.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@187272 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/lit.cfg
0738e2f85ca6896fcd980d7752f55651744eb08c 27-Jul-2013 Rafael Espindola <rafael.espindola@gmail.com> disable pipefail on asan for now.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@187269 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/lit.cfg
ae894455254b9a15b6f11df7c2362f5f45586862 22-Jul-2013 Sergey Matveev <earthdok@google.com> [sanitizer] Change strip_path_prefix flag behavior.

Previously (in tools other than TSan) the entire prefix of the path had to mach
the argument. With this change, only some suffix of the prefix has to match.
This is the same way this flag works in TSan.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@186837 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_stacktrace.cc
62519eb72ec1005d794685c1ec09df7c37631b27 22-Jul-2013 Sergey Matveev <earthdok@google.com> [lsan] Make __lsan_do_leak_check() honor the detect_leaks flag.

Also move detect_leaks to common flags.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@186821 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_flags.h
san/asan_rtl.cc
san/lsan.cc
san/lsan_common.cc
anitizer_common/sanitizer_flags.cc
anitizer_common/sanitizer_flags.h
841b6f29df24642cfbaa6e6fba5632d1712569ae 22-Jul-2013 Sergey Matveev <earthdok@google.com> [lsan] Print direct leaks first.

Direct leaks are higher priority, so it makes sense to have them on top.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@186819 91177308-0d34-0410-b5e6-96231b3b80d8
san/lsan_common.cc
28f2f82b56bf498dd3e8ab2ca3afaf907a90de25 18-Jul-2013 Hans Wennborg <hans@hanshq.net> Fix another instance of -ccc-cxx vs. --driver-mode=g++


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@186609 91177308-0d34-0410-b5e6-96231b3b80d8
bsan/lit_tests/TypeCheck/vptr.cpp
f021f4fb9e41d7ff3368556962c89119391fe025 18-Jul-2013 Hans Wennborg <hans@hanshq.net> Use --driver-mode=g++ instead of -ccc-cxx; required after Clang r186605


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@186607 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/lit.cfg
san/lit_tests/lit.common.cfg
san/lit_tests/lit.cfg
san/lit_tests/lit.cfg
f93fa97b9fb49c6aaeeadf94fc54c76374b580bd 18-Jul-2013 Sergey Matveev <earthdok@google.com> [lsan] Add __lsan_do_leak_check() to the public interface.

Let users override the normal behavior to run leak checking earlier in
the process. Also fix a couple nits here and there.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@186581 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/TestCases/do_leak_check_override.cc
san/lsan_common.cc
158ca5237af46076225d5d82a38ae0f733f57f31 18-Jul-2013 Dmitry Vyukov <dvyukov@google.com> tsan: treat SIGSYS as synchronous signal
It is required for chromium sandboxing code.
From the description it seems to be indeed synchronous -- called back on syscall with incorrect arguments,
but seems to be unused in practice. So this should be fine.



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@186579 91177308-0d34-0410-b5e6-96231b3b80d8
san/rtl/tsan_interceptors.cc
2ec879ebd7261c9182d4fdee95fb615439dda67d 18-Jul-2013 Alexey Samsonov <samsonov@google.com> [ASan] Fix leaks in ASan tests found by LSan

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@186577 91177308-0d34-0410-b5e6-96231b3b80d8
san/tests/asan_test.cc
7aaaee4cab08096d46e9886c5fea8564732ad2ff 17-Jul-2013 Alexey Samsonov <samsonov@google.com> [Sanitizer] Always provide --default-arch argument to llvm-symbolizer

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@186513 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_symbolizer_posix_libcdep.cc
48016bcefb6088b464555efe2e606f6a4d01fa00 17-Jul-2013 Dmitry Vyukov <dvyukov@google.com> tsan: disable one more interceptor that causes recursion


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@186497 91177308-0d34-0410-b5e6-96231b3b80d8
san/rtl/tsan_interceptors.cc
e57f26b5c99cedd56de76f3a10cadcecece768bd 17-Jul-2013 Dmitry Vyukov <dvyukov@google.com> tsan: fix unitialized read warning under newer gcc (it does not have visibility into asm)


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@186495 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_linux.cc
6092c21b37146ad5f859f3f23b6ddf80f3d8f3d4 17-Jul-2013 Anton Korobeynikov <asl@math.spbu.ru> Give compiler-rt a chance to compile with mingw-w64.
Patch by C. Bergström!


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@186463 91177308-0d34-0410-b5e6-96231b3b80d8
printf.c
nt_util.c
55e6f3f4e6b799e0affd13f28137661f8707133f 16-Jul-2013 Dmitry Vyukov <dvyukov@google.com> tsan: extend suppressions format with ^ and $ symbols
not it's possible to write more precise suppressions,
e.g. "^foo$" won't match "blafoobar"


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@186424 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_suppressions.cc
anitizer_common/tests/sanitizer_suppressions_test.cc
67505a8a0cf9621243ed21b67dfa041224c78e4b 16-Jul-2013 Alexey Samsonov <samsonov@google.com> [Sanitizer] move strcpy and strncpy to common interceptors

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@186408 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_interceptors.cc
san/tests/msan_test.cc
anitizer_common/sanitizer_common_interceptors.inc
anitizer_common/sanitizer_platform_interceptors.h
san/rtl/tsan_interceptors.cc
b6bde4d2bc5231cd1b38ff92e51afb3f6e157386 16-Jul-2013 Alexey Samsonov <samsonov@google.com> [ASan] Bump min supported Mac OS X version to 10.6

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@186404 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_platform_limits_posix.cc
anitizer_common/sanitizer_platform_limits_posix.h
fbeab51e1cddbeb73ad0d86d1f650081178c1dd8 16-Jul-2013 Dmitry Vyukov <dvyukov@google.com> tsan: support sigsuspend() call
Intercepting it makes it process pending signal before return.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@186400 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/sigsuspend.cc
san/rtl/tsan_interceptors.cc
san/rtl/tsan_stat.cc
san/rtl/tsan_stat.h
bb7f2d880c843dd5ee1c5e53d2517f7ca9058e66 16-Jul-2013 Timur Iskhodzhanov <timurrrr@google.com> [ASan] Use less shadow on Win 32-bit

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@186393 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_rtl.cc
anitizer_common/sanitizer_common.h
anitizer_common/sanitizer_posix.cc
anitizer_common/sanitizer_win.cc
31f78fda9c511f9ab4afc3494f54cb24450e28e6 16-Jul-2013 Alexander Potapenko <glider@google.com> [ASan] Cache the OSX version to avoid calling sysctl() on every GetMacosVersion() call.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@186389 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_mac.cc
san/asan_mac.h
ad2ae5464b3c0f947f72908671ba1e6d753855a5 16-Jul-2013 Alexander Potapenko <glider@google.com> [ASan] Add support for OS X Mavericks to GetMacosVersion.



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@186386 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_mac.cc
san/asan_mac.h
eaca82cf249021afa31dbc970278f2f28ea2a1aa 15-Jul-2013 Timur Iskhodzhanov <timurrrr@google.com> Fix check_lint warnings in sanitizers' runtime libraries

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@186328 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_interceptors.cc
san/msan_interceptors.cc
anitizer_common/sanitizer_common_interceptors.inc
anitizer_common/sanitizer_common_syscalls.inc
anitizer_common/sanitizer_platform_interceptors.h
anitizer_common/sanitizer_platform_limits_posix.cc
anitizer_common/sanitizer_platform_limits_posix.h
098c58fc48a934dd51df31e92efa236a5e1916e2 12-Jul-2013 Alexey Samsonov <samsonov@google.com> Completely revert all mbstowcs-and-friends changes from r186109. They were unintentional

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@186158 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_common_interceptors.inc
bac1f7b034d9b3bb15d98db755a2bc091c8ce005 12-Jul-2013 Sergey Matveev <earthdok@google.com> [lsan] Increase the hardcoded limit on number of leaks.

We never expected to see so many leaks in the real world. Until we did.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@186157 91177308-0d34-0410-b5e6-96231b3b80d8
san/lsan_common.cc
e43d2108ec7622afb34b8281005a12fcdb26d6fa 12-Jul-2013 Alexey Samsonov <samsonov@google.com> [Sanitizer] Revert some parts of r186109 related to mbstowcs-and-friends interceptors

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@186155 91177308-0d34-0410-b5e6-96231b3b80d8
san/tests/msan_test.cc
anitizer_common/sanitizer_common_interceptors.inc
5a482cd54a75bf821fb8c61f2fe4e84ae9efb714 11-Jul-2013 Chandler Carruth <chandlerc@gmail.com> Fix a veritable conucopia of bugs in the readdir_r interceptors.

First, the reason I came here: I forgot to look at readdir64_r which had
the exact same bug as readdir_r. However, upon applying the same
quick-fix and testing it I discovered that it still didn't work at all.
As a consequence, I spent some time studying the code and thinking about
it and fixed several other problems.

Second, the code was checking for a null entry and result pointer, but
there is no indication that null pointers are viable here. Certainly,
the spec makes it extremely clear that there is no non-error case where
the implementation of readdir_r fails to dereference the 'result'
pointer and store NULL to it. Thus, our checking for a non-null 'result'
pointer before reflecting that write in the instrumentation was
trivially dead. Remove it.

Third, the interceptor was marking the write to the actual dirent struct
by looking at the entry pointer, but nothing in the spec requires that
the dirent struct written is actually written into the entry structure
provided. A threadlocal buffer would be just as conforming, and the spec
goes out of its way to say the pointer to the *actual* result dirent
struct is stored into *result, so *that* is where the interceptor should
reflect a write occuring. This also obviates the need to even consider
whether the 'entry' parameter is null.

Fourth, I got to the bottom of why nothing at all worked in readdir64_r
-- the interceptor structure for dirent64 was completely wrong in that
it was the same as dirent. I fixed this struct to be correct (64-bit
inode and 64-bit offset! just a 64-bit offset isn't enough!) and added
several missing tests for the size and layout of this struct.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@186109 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/TestCases/Linux/interception_readdir_r_test.cc
anitizer_common/sanitizer_common_interceptors.inc
anitizer_common/sanitizer_platform_limits_posix.cc
anitizer_common/sanitizer_platform_limits_posix.h
ec29e26885a224627c2523422760e415c02cf225 11-Jul-2013 Sergey Matveev <earthdok@google.com> [sanitizer] Remove optional arguments from clone() invocation.

Unbreaks compilation on older systems. Patch by Andy Jost.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@186103 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_stoptheworld_linux_libcdep.cc
57a1095fca7b95db8a0ec87fce7a6f0e331a5b99 10-Jul-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] More checks in mbstowcs-like interceptors.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@186004 91177308-0d34-0410-b5e6-96231b3b80d8
san/tests/msan_test.cc
anitizer_common/sanitizer_common_interceptors.inc
anitizer_common/sanitizer_platform_limits_posix.cc
anitizer_common/sanitizer_platform_limits_posix.h
9b21ba6f661a6b14e3e81bb4f06ffb769be028c4 10-Jul-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Fix handling of edge cases in mbstowcs-like interceptors.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@186002 91177308-0d34-0410-b5e6-96231b3b80d8
san/tests/msan_test.cc
anitizer_common/sanitizer_common_interceptors.inc
d26cb23c22c1330e1cce383180818f4c3dcc7d18 10-Jul-2013 Chandler Carruth <chandlerc@gmail.com> Fix a bug in the readdir_r interceptor: when we reach the end of the
directory stream, the entry is not written to, instead *result is set to
NULL and the entry is not written to at all.

I'm still somewhat suspicious of the correct instrumention here --
I feel like it should be marking the written range as the pointer in
*result and the length (*result)->d_reclen in case the implementation
decides not to use the passed-in entry (if that's even allowed).
Finally, the definition of 'struct dirent' analog used in the
interceptor is wrong in 32-bit mode with _FILE_OFFSET_BITS=64 as it hard
codes the use of a pointer-sized offset.

I've added a somewhat goofy test for the bug I fixed via ASan --
suggestions on how to better test the interceptor logic itself welcome.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185998 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/TestCases/Linux/interception_readdir_r_test.cc
anitizer_common/sanitizer_common_interceptors.inc
d907702719a9bc7a86490cd4a4c706959607ca4d 10-Jul-2013 Peter Collingbourne <peter@pcc.me.uk> [asan] Update blacklists to use categories.

Differential Revision: http://llvm-reviews.chandlerc.com/D1094

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185980 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_blacklist.txt
san/lit_tests/TestCases/Helpers/initialization-blacklist.txt
57876cfc5357e2a04d17c56ee51e69c593a536be 09-Jul-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Update glob64 interceptor to handle GLOB_ALTDIRFUNC as well.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185935 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/Linux/glob.cc
san/lit_tests/Linux/glob_altdirfunc.cc
anitizer_common/sanitizer_common_interceptors.inc
3fa122e6a8e12db6583793861f6cf776fe1c98a0 09-Jul-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Support GLOB_ALTDIRFUNC in glob interceptor.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185932 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_interceptors.cc
san/lit_tests/Linux/glob_altdirfunc.cc
san/msan_interceptors.cc
anitizer_common/sanitizer_common_interceptors.inc
anitizer_common/sanitizer_platform_limits_posix.cc
anitizer_common/sanitizer_platform_limits_posix.h
san/rtl/tsan_interceptors.cc
12eb79dd701d9d40551759330a9257316601373b 09-Jul-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Intercept realpath and canonicalize_file_name.

Handle realpath(path, NULL) form.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185921 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_interceptors.cc
san/msan_interceptors.cc
san/tests/msan_test.cc
anitizer_common/sanitizer_common_interceptors.inc
anitizer_common/sanitizer_platform_interceptors.h
anitizer_common/sanitizer_platform_limits_posix.cc
anitizer_common/sanitizer_platform_limits_posix.h
san/rtl/tsan_stat.cc
san/rtl/tsan_stat.h
cb2509aaa26619d9f0082999bdcb54edbd1246a9 09-Jul-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Wrap lines >80 chars.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185920 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_common_syscalls.inc
ae4e6fd0300b13812a02a779619b1a451478cdd1 09-Jul-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [asan] Fix windows build.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185917 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_interceptors.cc
8b40073a28ed435862e250ae01b8ff85d6a2063f 09-Jul-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Syscall handlers for clock_gettime and clock_getres.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185913 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/Linux/syscalls.cc
anitizer_common/sanitizer_common_syscalls.inc
577a4b5ed22815b16a3af5fcb0b0a01481b004f3 08-Jul-2013 Sergey Matveev <earthdok@google.com> [lsan] Fix test.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185817 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/TestCases/fork_threaded.cc
c6ac98d7fcc81768b2ef7ddc785c27e3fc1bdef6 08-Jul-2013 Sergey Matveev <earthdok@google.com> [lsan] Handle fork() correctly.

Update the main thread's os_id on every pthread_create, and before
initiating leak checking. This ensures that we have the correct os_id even if we
have forked after Init().

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185815 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_interceptors.cc
san/asan_thread.cc
san/asan_thread.h
san/lit_tests/TestCases/fork.cc
san/lit_tests/TestCases/fork_threaded.cc
san/lsan_common.cc
san/lsan_common.h
san/lsan_interceptors.cc
san/lsan_thread.cc
san/lsan_thread.h
99560bf109ca14b1a48e1ae1206bcc11cdb7eae4 08-Jul-2013 Alexey Samsonov <samsonov@google.com> [LSan] Use overridable hook to report error summary

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185805 91177308-0d34-0410-b5e6-96231b3b80d8
san/lsan_common.cc
8be684c5970389c6c86b01592e98ed5a3bc4f78d 05-Jul-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Fix mac build.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185706 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_platform_limits_posix.h
737da2f031badfad5bc5b762cc50d789fbcb6ef8 05-Jul-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [msan] Intercept pthread_key_create.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185693 91177308-0d34-0410-b5e6-96231b3b80d8
san/msan_interceptors.cc
san/tests/msan_test.cc
anitizer_common/sanitizer_platform_limits_posix.cc
anitizer_common/sanitizer_platform_limits_posix.h
22d8767a45f08218b4d725146c5a8484a183be29 05-Jul-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Disable ptrace interception on non-x86(_64).

Patch by Hal Finkel.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185686 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_platform_interceptors.h
anitizer_common/sanitizer_platform_limits_posix.cc
anitizer_common/sanitizer_platform_limits_posix.h
2e6a1fb50f0252b673c37a272773a83508d4f927 04-Jul-2013 Alexander Potapenko <glider@google.com> [ASan] Close stderr before launching atos in asan_symbolize.py


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185631 91177308-0d34-0410-b5e6-96231b3b80d8
san/scripts/asan_symbolize.py
ea72768894e32f367607c2142a7dfab603310da0 04-Jul-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Intercept tcgetattr.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185626 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/Linux/tcgetattr.cc
anitizer_common/sanitizer_common_interceptors.inc
anitizer_common/sanitizer_platform_interceptors.h
san/rtl/tsan_stat.cc
san/rtl/tsan_stat.h
ff6c9fb3ee83529dc28cd60a3797a8b783f3e892 04-Jul-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] More interceptors.

bcopy
strtoimax, strtoumax
mbstowcs, mbsrtowcs, mbsnrtowcs
wcstombs, wcsrtombs, wcsnrtombs



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185624 91177308-0d34-0410-b5e6-96231b3b80d8
san/msan_interceptors.cc
san/tests/msan_test.cc
anitizer_common/sanitizer_common_interceptors.inc
anitizer_common/sanitizer_platform_interceptors.h
san/rtl/tsan_stat.cc
san/rtl/tsan_stat.h
e1f1661581889fb2fdd9a33f83cba414ea529294 04-Jul-2013 Alexander Potapenko <glider@google.com> [ASan] Do not protect the malloc zone created by malloc_zone_create() on Snow Leopard and earlier systems.
Fixes https://code.google.com/p/address-sanitizer/issues/detail?id=208


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185621 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_malloc_mac.cc
1adf52b7a65a9556fdf649869a63ad4379a91fa7 03-Jul-2013 Sergey Matveev <earthdok@google.com> [sanitizer] Fix memory leak in sanitizer_common discovered by LeakSanitizer.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185536 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_linux_libcdep.cc
1cdae25bd9628901627faafd1c14742eedf5028c 02-Jul-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Fix Android build.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185432 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_platform_limits_posix.cc
353c99693581d49509a553bb8d0cc9c68f43aa79 02-Jul-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [msan] Intercept mempcpy, wmempcpy.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185431 91177308-0d34-0410-b5e6-96231b3b80d8
san/msan_interceptors.cc
san/tests/msan_test.cc
906f2c11e854539f316f737b1f661c0f6bc66fab 02-Jul-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Fix GLOB_NOMATCH behaviour and refactor the interceptor a bit.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185428 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/Linux/glob_nomatch.cc
anitizer_common/sanitizer_common_interceptors.inc
anitizer_common/sanitizer_platform_limits_posix.cc
anitizer_common/sanitizer_platform_limits_posix.h
801448950d645813efb398575bbc62b48e5b1dfc 02-Jul-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Intercept mbtowc, mbrtowc, get_current_dir_name.

Move getcwd to common interceptors.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185424 91177308-0d34-0410-b5e6-96231b3b80d8
san/msan_interceptors.cc
san/tests/msan_test.cc
anitizer_common/sanitizer_common_interceptors.inc
anitizer_common/sanitizer_platform_interceptors.h
san/rtl/tsan_stat.cc
san/rtl/tsan_stat.h
3cae6040ebb4ce14123b8ba000b79b4383dbd48a 02-Jul-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Intercept setlocale.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185416 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/setlocale.cc
anitizer_common/sanitizer_common_interceptors.inc
anitizer_common/sanitizer_platform_interceptors.h
san/rtl/tsan_stat.cc
san/rtl/tsan_stat.h
b9a928497168e177791f10f5042ff6f5e4e8a881 01-Jul-2013 Alexey Samsonov <samsonov@google.com> [ASan] try to fix Windows build

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185345 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_interceptors.cc
9465cbdbe73590746b57916f46ea1aa4bf3dd13d 01-Jul-2013 Alexey Samsonov <samsonov@google.com> [ASan] Properly disable strict init-order checking when pthread_create is called

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185342 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_interceptors.cc
san/lit_tests/TestCases/Helpers/init-order-pthread-create-extra.cc
san/lit_tests/TestCases/init-order-pthread-create.cc
4bbbe136fe6a19a8288a6d92af29075756dd8fa5 01-Jul-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [msan] Intercept stpcpy.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185340 91177308-0d34-0410-b5e6-96231b3b80d8
san/msan_interceptors.cc
san/tests/msan_test.cc
9eedf489075c24b2b1ed9f88bf5102066fffdeb1 01-Jul-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Intercept getnameinfo.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185338 91177308-0d34-0410-b5e6-96231b3b80d8
san/tests/msan_test.cc
anitizer_common/sanitizer_common_interceptors.inc
anitizer_common/sanitizer_platform_interceptors.h
san/rtl/tsan_stat.cc
san/rtl/tsan_stat.h
7ef67083ecf12c9b83dffd91eac0b3c739fa7a89 01-Jul-2013 Alexey Samsonov <samsonov@google.com> Change __sanitizer_symbolize_demangle hook return type to 'int'

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185326 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_symbolizer_libcdep.cc
f21e025112d5f82b2b475eb1d8e690824883fc97 01-Jul-2013 Alexander Potapenko <glider@google.com> [ASan] Cache atos processes to make Darwin symbolication faster.

Patch by Jesse Ruderman<jruderman@gmail.com>



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185325 91177308-0d34-0410-b5e6-96231b3b80d8
san/scripts/asan_symbolize.py
5d2104281930f0c1af3d586d950e2878cd1a16e1 01-Jul-2013 Sergey Matveev <earthdok@google.com> [sanitizer] Use the correct macro to check glibc version.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185324 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_linux_libcdep.cc
997aede5a27c48d0b1a086212b24cb6101fb8351 01-Jul-2013 Alexey Samsonov <samsonov@google.com> [ASan] Add sanity test for asan_symbolize.py script

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185318 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/TestCases/SharedLibs/shared-lib-test-so.cc
san/lit_tests/TestCases/asan-symbolize-sanity-test.cc
san/lit_tests/lit.cfg
b2b01945cfb060d67536f19063bbbf87e947e9ba 01-Jul-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Fix build with older kernels.

PTRACE_SETREGSET & PTRACE_GETREGSET may be missing from linux headers.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185317 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_platform_limits_posix.cc
ed936c1d3a8db321b45d2e249159ec48c6450043 01-Jul-2013 Alexey Samsonov <samsonov@google.com> [ASan] Remove leading underscores from function names in output tests

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185315 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/TestCases/Linux/zero-base-shadow32.cc
san/lit_tests/TestCases/Linux/zero-base-shadow64.cc
san/lit_tests/TestCases/global-overflow.cc
san/lit_tests/TestCases/heap-overflow.cc
san/lit_tests/TestCases/ioctl.cc
san/lit_tests/TestCases/large_func_test.cc
san/lit_tests/TestCases/null_deref.cc
san/lit_tests/TestCases/shared-lib-test.cc
san/lit_tests/TestCases/stack-overflow.cc
san/lit_tests/TestCases/strncpy-overflow.cc
san/lit_tests/TestCases/use-after-free-right.cc
san/lit_tests/TestCases/use-after-free.cc
san/lit_tests/TestCases/use-after-scope-inlined.cc
san/lit_tests/TestCases/use-after-scope-temp.cc
san/lit_tests/TestCases/use-after-scope.cc
san/lit_tests/TestCases/wait.cc
c8c312adee610a1f9284f567a35562f6f8dc15e0 01-Jul-2013 Alexey Samsonov <samsonov@google.com> Hide mlock/munlock info message under verbosity flag.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185314 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_interceptors.cc
san/rtl/tsan_interceptors.cc
fe18723033b4e06adcd339f67e9a63054380a63f 30-Jun-2013 Alexey Samsonov <samsonov@google.com> Define the path to llvm-symbolizer tool in a common config to reduce copy-paste

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185286 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/lit.cfg
it.common.cfg
san/lit_tests/lit.common.cfg
san/lit_tests/lit.cfg
san/lit_tests/lit.cfg
f2c29a5dc56feed66e81a7fb3f03ef2c5ea76870 29-Jun-2013 Richard Smith <richard-llvm@metafoo.co.uk> Fix typo found by Clang fix for extern "C" function handling.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185234 91177308-0d34-0410-b5e6-96231b3b80d8
san/rtl/tsan_interface_atomic.cc
ec2ee9b51256b37ce637eee766fd9a454c02da2b 28-Jun-2013 Alexey Samsonov <samsonov@google.com> [ASan] Remove %symbolize from lit tests: we now use external symbolizer instead of python script

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185163 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/TestCases/Linux/heavy_uar_test.cc
san/lit_tests/TestCases/Linux/initialization-bug-any-order.cc
san/lit_tests/TestCases/Linux/malloc-in-qsort.cc
san/lit_tests/TestCases/Linux/malloc_delete_mismatch.cc
san/lit_tests/TestCases/Linux/overflow-in-qsort.cc
san/lit_tests/TestCases/Linux/ptrace.cc
san/lit_tests/TestCases/Linux/syscalls.cc
san/lit_tests/TestCases/Linux/time_null_regtest.cc
san/lit_tests/TestCases/Linux/zero-base-shadow32.cc
san/lit_tests/TestCases/Linux/zero-base-shadow64.cc
san/lit_tests/TestCases/deep_stack_uaf.cc
san/lit_tests/TestCases/deep_tail_call.cc
san/lit_tests/TestCases/deep_thread_stack.cc
san/lit_tests/TestCases/double-free.cc
san/lit_tests/TestCases/global-demangle.cc
san/lit_tests/TestCases/global-overflow.cc
san/lit_tests/TestCases/heap-overflow.cc
san/lit_tests/TestCases/initialization-bug.cc
san/lit_tests/TestCases/invalid-free.cc
san/lit_tests/TestCases/ioctl.cc
san/lit_tests/TestCases/large_func_test.cc
san/lit_tests/TestCases/memcmp_strict_test.cc
san/lit_tests/TestCases/memcmp_test.cc
san/lit_tests/TestCases/null_deref.cc
san/lit_tests/TestCases/partial_right.cc
san/lit_tests/TestCases/readv.cc
san/lit_tests/TestCases/sanity_check_pure_c.c
san/lit_tests/TestCases/shared-lib-test.cc
san/lit_tests/TestCases/stack-frame-demangle.cc
san/lit_tests/TestCases/stack-oob-frames.cc
san/lit_tests/TestCases/stack-overflow.cc
san/lit_tests/TestCases/stack-use-after-return.cc
san/lit_tests/TestCases/strdup_oob_test.cc
san/lit_tests/TestCases/strncpy-overflow.cc
san/lit_tests/TestCases/time_interceptor.cc
san/lit_tests/TestCases/unaligned_loads_and_stores.cc
san/lit_tests/TestCases/use-after-free-right.cc
san/lit_tests/TestCases/use-after-free.cc
san/lit_tests/TestCases/use-after-poison.cc
san/lit_tests/TestCases/use-after-scope-dtor-order.cc
san/lit_tests/TestCases/use-after-scope-inlined.cc
san/lit_tests/TestCases/use-after-scope-temp.cc
san/lit_tests/TestCases/use-after-scope.cc
san/lit_tests/TestCases/wait.cc
san/lit_tests/lit.cfg
ad75ce5309adaad82104d77e5ceeee2882a0746d 28-Jun-2013 Sergey Matveev <earthdok@google.com> [lsan] Fix build again.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185157 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/TestCases/ignore_object_errors.cc
0b5a1b79121f96d36d0d75ae2b8931a39aac93a2 28-Jun-2013 Sergey Matveev <earthdok@google.com> [lsan] Fix build.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185156 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/TestCases/ignore_object.cc
9b4ba948f1c19adafde8e78c520ce30ac7bb1033 28-Jun-2013 Sergey Matveev <earthdok@google.com> [lsan] When verbosity > 1, always print suppressions and summary (even if no leaks found).

Also fix an output bug.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185153 91177308-0d34-0410-b5e6-96231b3b80d8
san/lsan_common.cc
b33cfeb6004d3a93e6d35749c14db0190c6c2b4c 28-Jun-2013 Sergey Matveev <earthdok@google.com> [lsan] Add suppression support.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185152 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/AsanConfig/lit.cfg
san/lit_tests/LsanConfig/lit.cfg
san/lit_tests/TestCases/suppressions_default.cc
san/lit_tests/TestCases/suppressions_file.cc
san/lit_tests/TestCases/suppressions_file.cc.supp
san/lit_tests/lit.common.cfg
san/lsan_common.cc
san/lsan_common.h
anitizer_common/sanitizer_suppressions.cc
anitizer_common/sanitizer_suppressions.h
anitizer_common/tests/sanitizer_suppressions_test.cc
d50d29ecfafbdbdb033f7d94b7ff88c1fce40452 28-Jun-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Disable all ptrace-related definitions on Android.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185150 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_platform_limits_posix.cc
anitizer_common/sanitizer_platform_limits_posix.h
2a9609814d6f187d5a949787e5a638911978283d 28-Jun-2013 Alexey Samsonov <samsonov@google.com> [ASan] Migrate lit tests to external symbolizer from asan_symbolize.py script

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185148 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/lit.cfg
anitizer_common/sanitizer_symbolizer_win.cc
6b30cf07c92eafecf5d06ae6cafa7b60f4ed7512 28-Jun-2013 Alexey Samsonov <samsonov@google.com> Demangle names using pluggable internal symbolizer if possible

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185146 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_symbolizer.h
anitizer_common/sanitizer_symbolizer_itanium.cc
anitizer_common/sanitizer_symbolizer_libcdep.cc
3678cf9323d4134887a3fee16e849332d97f03eb 28-Jun-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Fix an unfortunate typo and disable ptrace interception on Android.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185145 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_platform_interceptors.h
anitizer_common/sanitizer_platform_limits_posix.cc
anitizer_common/sanitizer_platform_limits_posix.h
52d08d8412bfa4ccfa38384d781b51e8774807a7 28-Jun-2013 Alexey Samsonov <samsonov@google.com> Pass --default-arch flag to external symbolizer. Fix line lengths.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185144 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_common_interceptors.inc
anitizer_common/sanitizer_symbolizer_posix_libcdep.cc
341b9e63f63a8eacf1b699d4c79edee55241ebe6 28-Jun-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Intercept ptrace.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185142 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_interceptors.cc
san/lit_tests/TestCases/Linux/ptrace.cc
san/lit_tests/ptrace.cc
san/msan_interceptors.cc
anitizer_common/sanitizer_common_interceptors.inc
anitizer_common/sanitizer_platform_interceptors.h
anitizer_common/sanitizer_platform_limits_posix.cc
anitizer_common/sanitizer_platform_limits_posix.h
san/rtl/tsan_stat.cc
san/rtl/tsan_stat.h
6b233edfdb741fa75faec815ff3940724e8126a5 28-Jun-2013 Alexander Potapenko <glider@google.com> [ASan][OSX] Make sure the zones created by malloc_create_zone() are write-protected.
Add a test.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185140 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_malloc_mac.cc
san/lit_tests/TestCases/Darwin/malloc_zone-protected.cc
66ad412170787fb0d9f4832708a22d47d74633c5 28-Jun-2013 Alexander Potapenko <glider@google.com> [ASan][OSX] Fix the incorrect malloc_create_zone() implementation that led to out-of-bounds mprotect()s
(https://code.google.com/p/address-sanitizer/issues/detail?id=203)
Add a test.



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185138 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_malloc_mac.cc
san/lit_tests/TestCases/Darwin/malloc_set_zone_name-mprotect.cc
007a9771d648ff5e8f6e01a3984f007272e87e37 27-Jun-2013 Bill Wendling <isanbard@gmail.com> Revert hack that omits errno on Darwin platforms. We now have an acceptable 'errno' header.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185106 91177308-0d34-0410-b5e6-96231b3b80d8
rofile/GCDAProfiling.c
134da448d092f82bfd5ddcdfa203c5c652c51474 27-Jun-2013 Sergey Matveev <earthdok@google.com> [sanitizer] Support padding with spaces in Printf.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185082 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_printf.cc
anitizer_common/tests/sanitizer_printf_test.cc
7ddf3c9899c39485d6a70fe294a1e4893897f424 27-Jun-2013 Sergey Matveev <earthdok@google.com> [lsan] Fix flaky test.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185079 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/TestCases/link_turned_off.cc
1d55ed1fccd11c77af78a174499238776d609cb8 27-Jun-2013 Dmitry Vyukov <dvyukov@google.com> tsan: revert dynamic symbols file to the old incorrect one
full proper list of dynamic symbols crashes old gold (see bug 16468).
the culprit is 'memcpy' function, if it's added to syms file, gold crashes



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185078 91177308-0d34-0410-b5e6-96231b3b80d8
san/Makefile.old
san/rtl/tsan.syms
66385c9cbdc16c18f9875cc04da70149578cc07a 27-Jun-2013 Dmitry Vyukov <dvyukov@google.com> tsan: remove non-existent functions from syms file


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185077 91177308-0d34-0410-b5e6-96231b3b80d8
san/gen_dynamic_list.sh
san/rtl/tsan.syms
263800ba59720f9be69735b4dad625fca92430bc 27-Jun-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [msan] Optionally disable 2 tests (dlopen & gethostbyname).


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185076 91177308-0d34-0410-b5e6-96231b3b80d8
san/tests/msan_test.cc
a0379b5566f7c04536a313e40c450c6aef4b3ec5 27-Jun-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Fix dirent interceptors.

The new version reads d_reclen for (struct dirent) size.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185067 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_common_interceptors.inc
anitizer_common/sanitizer_platform_limits_posix.cc
anitizer_common/sanitizer_platform_limits_posix.h
9fbfd96608070eb71e11fbfe42ec9e84016429ae 27-Jun-2013 Alexey Samsonov <samsonov@google.com> [LSan] Add the way to disable LSan at link time

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185066 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/TestCases/link_turned_off.cc
san/lsan_common.cc
san/lsan_common.h
c11d3034b22be77d9c7f175350ea67a576ef375e 27-Jun-2013 Alexey Samsonov <samsonov@google.com> [TSan] try to fix Go build

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185063 91177308-0d34-0410-b5e6-96231b3b80d8
san/go/buildgo.sh
c2918bf11fc65b1f9551eee03719e9bdf02eedd5 27-Jun-2013 Alexey Samsonov <samsonov@google.com> [MSan] Rename __msan_unpoision_param to __msan::UnpoisonParam - it shouldn't be in interface

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185062 91177308-0d34-0410-b5e6-96231b3b80d8
san/msan.cc
san/msan.h
san/msan_interceptors.cc
san/msan_interface_internal.h
f2c844564c14e5438494083bf6db304a33673df2 26-Jun-2013 Sergey Matveev <earthdok@google.com> [tsan] Fix build.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@184963 91177308-0d34-0410-b5e6-96231b3b80d8
san/rtl/tsan_suppressions.cc
a52e5c6f371bcc66e89792db1219a557664aab8d 26-Jun-2013 Sergey Matveev <earthdok@google.com> [tsan] Move some suppressions-related code to common.

Factor out code to be reused in LSan. Also switch from linked list to vector.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@184957 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/CMakeLists.txt
anitizer_common/sanitizer_suppressions.cc
anitizer_common/sanitizer_suppressions.h
anitizer_common/tests/CMakeLists.txt
anitizer_common/tests/sanitizer_suppressions_test.cc
san/rtl/tsan_defs.h
san/rtl/tsan_rtl.h
san/rtl/tsan_suppressions.cc
san/rtl/tsan_suppressions.h
san/tests/unit/CMakeLists.txt
san/tests/unit/tsan_suppressions_test.cc
b5cf98f76fd62236f2945bff17b3cdb4e8a5c2f4 26-Jun-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] readdir and readdir_r interceptors.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@184950 91177308-0d34-0410-b5e6-96231b3b80d8
san/msan_interceptors.cc
san/tests/msan_test.cc
anitizer_common/sanitizer_common_interceptors.inc
anitizer_common/sanitizer_platform_interceptors.h
anitizer_common/sanitizer_platform_limits_posix.cc
anitizer_common/sanitizer_platform_limits_posix.h
san/rtl/tsan_stat.cc
san/rtl/tsan_stat.h
7a0bba457ee05ced3adf37a0c0790d0ed23a5446 26-Jun-2013 Kostya Serebryany <kcc@google.com> [asan] initialize fake_stack lazily and increase its maximal size. This makes -fsanitize=address,use-after-return more robust: all SPEC tests pass now. In the default mode thread stacks become a bit smaller.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@184934 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_fake_stack.cc
san/asan_fake_stack.h
san/asan_report.cc
san/asan_thread.cc
san/asan_thread.h
eb7c24bb2e6fd20410d34006759caf76852d0600 26-Jun-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Reformat line >80 chars.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@184926 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_common_interceptors.inc
4f116ad082a3419f98ac000f76a76e0badc0e611 26-Jun-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Fix build with OSS4 kernel headers.

This fixes PR16453.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@184925 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_common_interceptors_ioctl.inc
anitizer_common/sanitizer_platform_limits_posix.cc
anitizer_common/sanitizer_platform_limits_posix.h
cf5fb62c0206c6544c464fa1b414bbfa26cb3244 26-Jun-2013 Chandler Carruth <chandlerc@gmail.com> Fix a use after free I introduced and that Bill caught in code review
(thanks!) by deferring the free of the filename until we finish writing
the coverage data to that file.

Bill, let me know if you'd prefer a different approach!

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@184895 91177308-0d34-0410-b5e6-96231b3b80d8
rofile/GCDAProfiling.c
7caabbd43ef867fa93317bef61924197b97ea1c7 25-Jun-2013 Bill Wendling <isanbard@gmail.com> Don't use 'errno.h' on Apple just yet. This breaks for some of our buildbots.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@184878 91177308-0d34-0410-b5e6-96231b3b80d8
rofile/GCDAProfiling.c
1dcabd115668f9efba615f7c4e190244a4df361f 25-Jun-2013 Dmitry Vyukov <dvyukov@google.com> tsan: add missing __attribute__((visibility("default"))) to interface functions


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@184858 91177308-0d34-0410-b5e6-96231b3b80d8
san/rtl/tsan_interceptors.cc
d16d7233510f4ebb3b5bcafdee2db373c53c5c56 25-Jun-2013 Sergey Matveev <earthdok@google.com> [lsan] Define interceptors more correctly. Also, always clear allocated memory.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@184849 91177308-0d34-0410-b5e6-96231b3b80d8
san/lsan_interceptors.cc
b6246066a271e3b01732d1b4381ef745152747d2 25-Jun-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Move log_path to common flag and use it in MSan.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@184836 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_flags.h
san/asan_rtl.cc
san/msan.cc
anitizer_common/sanitizer_flags.cc
anitizer_common/sanitizer_flags.h
254abfa43326c2d49143529c26a86a27356e1243 25-Jun-2013 Chandler Carruth <chandlerc@gmail.com> Address a few of the issues in GCDAProfiling I noted when looking
through Bill's patch:

1) Correctly test the file descriptor after the sceond attempt at
creating the file.
2) Make the filename a global so that we can issue error messages from
other routines.
3) Check errno in several places and print it out so that errors are
easier to track down.

I don't really expect any of these to fix the current failures I'm
seeing, but I'm hopeful they'll at least let me debug them.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@184799 91177308-0d34-0410-b5e6-96231b3b80d8
rofile/GCDAProfiling.c
e97262dc8ddfc6aa52871692569059b17c01d193 25-Jun-2013 Chandler Carruth <chandlerc@gmail.com> Remove the sysroot restriction from building GCDAProfiling.c.

We really need the C standard library to be available to implement the
profiling runtime library reasonably, and replicating everything in the
SDKs tree really isn't addressing any problems we have. Notably, all of
the sanitizer runtimes take the same approach, and this isn't a library
which could end up in a bootstrapping problem where the system headers
aren't even available.

This will hopefully prevent subsequent changes which start using various
other bits of C standard library to make things more debuggable.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@184798 91177308-0d34-0410-b5e6-96231b3b80d8
rofile/CMakeLists.txt
fb53992c309ed7b9cb2bf15343bf347fead90c02 24-Jun-2013 Dmitry Vyukov <dvyukov@google.com> tsan: make the test more robust
currently it episodically fails
the hypothesis it is due to racy race detection algorithm
the sleep should make it more robust


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@184752 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/tiny_race.c
6d817380fcfb73f213505c8cd998476532ade3df 24-Jun-2013 Dmitry Vyukov <dvyukov@google.com> tsan: update dynamic export syms file
now it includes proper functions (including interceptors)
and does not include local functions that lead to build failures


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@184747 91177308-0d34-0410-b5e6-96231b3b80d8
san/Makefile.old
san/gen_dynamic_list.sh
san/rtl/tsan.syms
359d7fc7daf099ab8ef9a860564542d2581544aa 24-Jun-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Intercept sysinfo.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@184739 91177308-0d34-0410-b5e6-96231b3b80d8
san/tests/msan_test.cc
anitizer_common/sanitizer_common_interceptors.inc
anitizer_common/sanitizer_platform_interceptors.h
anitizer_common/sanitizer_platform_limits_posix.cc
anitizer_common/sanitizer_platform_limits_posix.h
san/rtl/tsan_stat.cc
san/rtl/tsan_stat.h
90a65aa532dc1e60ce3413b05cd2f3bf3e166058 24-Jun-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Fix TSan build.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@184736 91177308-0d34-0410-b5e6-96231b3b80d8
san/rtl/tsan_stat.cc
san/rtl/tsan_stat.h
9d60087654f89e3452841350d9eca97644edca9d 24-Jun-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Intercept inet_aton.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@184735 91177308-0d34-0410-b5e6-96231b3b80d8
san/tests/msan_test.cc
anitizer_common/sanitizer_common_interceptors.inc
anitizer_common/sanitizer_platform_interceptors.h
anitizer_common/sanitizer_platform_limits_posix.cc
anitizer_common/sanitizer_platform_limits_posix.h
b8e323e34e375fc40dbf178ef49b03c912837355 24-Jun-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [msan] Unpoison param-tls in signal handler wrapper.

This an entry point from uninstrumented code.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@184734 91177308-0d34-0410-b5e6-96231b3b80d8
san/msan_interceptors.cc
b916e6a9b3efa4907b70a2dcd418c76b044171e7 24-Jun-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Intercept readv, preadv, writev, pwritev.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@184717 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/TestCases/readv.cc
san/tests/msan_test.cc
anitizer_common/sanitizer_common_interceptors.inc
anitizer_common/sanitizer_platform_interceptors.h
san/rtl/tsan_interceptors.cc
san/rtl/tsan_stat.cc
san/rtl/tsan_stat.h
c87f737d972a96a05c85ef9be03d0f40890c653f 24-Jun-2013 Sergey Matveev <earthdok@google.com> [lsan] Fix android build.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@184704 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/tests/sanitizer_allocator_test.cc
ac78d0087281e9b40bb043f827fbde8c05c6505a 24-Jun-2013 Sergey Matveev <earthdok@google.com> Revert to C-style callbacks for iteration over allocator chunks.

Also clean up LSan code, fix some comments and replace void* with uptr
to bring down the number of reinterpret_casts.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@184700 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_allocator2.cc
san/lit_tests/TestCases/disabler_in_tsd_destructor.cc
san/lsan_allocator.cc
san/lsan_common.cc
san/lsan_common.h
san/lsan_common_linux.cc
anitizer_common/sanitizer_allocator.h
anitizer_common/tests/sanitizer_allocator_test.cc
c3b30b378741f3ec0f4d615ef172b68e1cf97e39 22-Jun-2013 Alexey Samsonov <samsonov@google.com> Add cmake rules for building LSan common on Mac OS

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@184639 91177308-0d34-0410-b5e6-96231b3b80d8
MakeLists.txt
san/CMakeLists.txt
san/lit_tests/TestCases/Linux/lsan_annotations.cc
san/lit_tests/TestCases/lsan_annotations.cc
san/CMakeLists.txt
21e024eb4f1aa3c42bb9dbd1d93a4299807f9555 21-Jun-2013 Sergey Matveev <earthdok@google.com> [lsan] Try REALLY hard to fix Win build.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@184557 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_allocator2.cc
san/lsan_common.cc
2439cd96e9af5004f82f0a954c55b0e4d9600b52 21-Jun-2013 Sergey Matveev <earthdok@google.com> [lsan] This time really fix Win build.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@184556 91177308-0d34-0410-b5e6-96231b3b80d8
san/lsan_common.cc
ca74cff8d0f3c003a3c379bc88cc1771d8bbe1be 21-Jun-2013 Sergey Matveev <earthdok@google.com> [lsan] Fix win build.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@184555 91177308-0d34-0410-b5e6-96231b3b80d8
san/lsan_common.cc
ef89d6b576bd8f5084b70e2d908cd53c37fab9f9 21-Jun-2013 Sergey Matveev <earthdok@google.com> [lsan] Increase allocator space; minor fixes.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@184554 91177308-0d34-0410-b5e6-96231b3b80d8
san/lsan_allocator.cc
san/lsan_common.cc
200afbd8ba4904241c1ebcef4fa79d739ca01f73 21-Jun-2013 Sergey Matveev <earthdok@google.com> [asan] Move lsan_disabled out of thread context.

Fix for the case where disabler is used in pthread key destructor.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@184553 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_allocator2.cc
san/asan_thread.cc
san/asan_thread.h
san/lit_tests/TestCases/disabler_in_tsd_destructor.cc
san/lsan_allocator.cc
san/lsan_common.cc
san/lsan_common.h
d530d892b4958a9ae54e57472d5d0a0bae1f6ad8 21-Jun-2013 Alexey Samsonov <samsonov@google.com> [ASan] reimplement strdup() interceptor to get nicer stack traces for memory chunks allocated there

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@184546 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_interceptors.cc
san/lit_tests/TestCases/strdup_oob_test.cc
0797ed4bfc4adaa1436dbd153b276ed9c917f1b7 21-Jun-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [msan] Intercept (v)asprintf.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@184545 91177308-0d34-0410-b5e6-96231b3b80d8
san/msan_interceptors.cc
san/tests/msan_test.cc
bb881c736eff073a84cc640d431ae1e58a5e07d4 21-Jun-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [msan] Add keep_going runtime flag.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@184542 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/keep-going-dso.cc
san/lit_tests/keep-going.cc
san/msan.cc
san/msan_flags.h
san/msan_interceptors.cc
san/msan_interface_internal.h
18a918929b0690043964f97936e69c0eae10edd8 21-Jun-2013 Alexey Samsonov <samsonov@google.com> [ASan] make test for LSan annotations Linux-only for now

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@184541 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/TestCases/Linux/lsan_annotations.cc
san/lit_tests/TestCases/lsan_annotations.cc
5326ee1a227cf3ee764ecb3d0b7220d45581036c 21-Jun-2013 Alexey Samsonov <samsonov@google.com> [ASan] Check that ASan user may include and use LSan headers

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@184540 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/TestCases/lsan_annotations.cc
bb273d554d61c1a851158b0c79c2d3f51a845bbd 21-Jun-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [santizer] Disable several EVIOxxx ioctls on older kernels.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@184539 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_common_interceptors_ioctl.inc
anitizer_common/sanitizer_platform_limits_posix.cc
anitizer_common/sanitizer_platform_limits_posix.h
48e54204b82ba982ed7992847413dd0043fdc700 20-Jun-2013 Dmitry Vyukov <dvyukov@google.com> tsan: fix potential false positive race on fd


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@184430 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/fd_close_norace2.cc
san/rtl/tsan_fd.cc
9b618a7ec2ec78e602d8897008c6f02cba673794 20-Jun-2013 Sergey Matveev <earthdok@google.com> [asan] Define LSan annotations as no-ops if leak detection is not supported.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@184422 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_allocator2.cc
san/lsan_common.cc
851e22ad83fe5f389ca845731fe0abf749a86214 20-Jun-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> Fix unused function warning w/o changing compiler flags.

We have way too many different build systems.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@184409 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/tests/CMakeLists.txt
anitizer_common/tests/sanitizer_ioctl_test.cc
132d51c45af60185e61724fe16d5694eecd0d5e0 20-Jun-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Fix Mac build.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@184407 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_common_interceptors_ioctl.inc
e8b83078b1090dc23b8bb9dde20f251d3e253a9f 20-Jun-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> Remove an outdated comment.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@184406 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_common_interceptors_ioctl.inc
4612abac2e172e077246cec0fcbed291f55a1d02 20-Jun-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Handle EVIOxxxx ioctls.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@184405 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/CMakeLists.txt
anitizer_common/sanitizer_common_interceptors_ioctl.inc
anitizer_common/sanitizer_platform_limits_posix.cc
anitizer_common/sanitizer_platform_limits_posix.h
anitizer_common/tests/CMakeLists.txt
anitizer_common/tests/sanitizer_ioctl_test.cc
a292152eb471edc44021b94e974059a71e8bed13 20-Jun-2013 Alexey Samsonov <samsonov@google.com> [ASan] Clear allocation magic value before recycling the chunk. This led to spurious crashes in LSan when it walked through reused chunks. Don't know how to create not-brittle test case for this.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@184404 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_allocator2.cc
5f672c4bd8485af39b6bbc3500a8f1b71de1002f 19-Jun-2013 Sergey Matveev <earthdok@google.com> [lsan] Prevent inlining of WipeStack().

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@184312 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_stoptheworld_linux_libcdep.cc
c085fe807836b566b4fce7ccdfb307bb025693c5 19-Jun-2013 Sergey Matveev <earthdok@google.com> [lsan] Move symbolization and reporting out of StopTheWorld callback.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@184303 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/TestCases/large_allocation_leak.cc
san/lit_tests/TestCases/stale_stack_leak.cc
san/lit_tests/TestCases/use_globals_initialized.cc
san/lit_tests/TestCases/use_globals_uninitialized.cc
san/lit_tests/TestCases/use_registers.cc
san/lit_tests/TestCases/use_stacks.cc
san/lit_tests/TestCases/use_stacks_threaded.cc
san/lit_tests/TestCases/use_tls_dynamic.cc
san/lit_tests/TestCases/use_tls_pthread_specific_dynamic.cc
san/lit_tests/TestCases/use_tls_pthread_specific_static.cc
san/lit_tests/TestCases/use_tls_static.cc
san/lit_tests/TestCases/use_unaligned.cc
san/lsan_common.cc
anitizer_common/sanitizer_stoptheworld_linux_libcdep.cc
89d1eee9f468823cc7f01b0d5281a5c9f64a4c31 19-Jun-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Fix struct ifconf definition on Mac and restore the size checks.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@184296 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_platform_limits_posix.cc
anitizer_common/sanitizer_platform_limits_posix.h
3f9f877480e751a9dd7f5df871121f52f1379a33 19-Jun-2013 Alexander Potapenko <glider@google.com> [ASan] Delete excessive 'extern "C"' around mlock* interceptors.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@184294 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_interceptors.cc
22ec6d98e074a007d2767cc473a42e7838d273c1 19-Jun-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Fix Android build.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@184293 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_platform_limits_posix.cc
b588bfd486433ec3875f4d467e8cea41be205e1c 19-Jun-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Fix build on RHEL 6.3, 6.4.

linux/if_ppp.h is broken in certain kernels.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@184290 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_platform_limits_posix.cc
8301c7355309518084903611ba96665bd31c15f8 18-Jun-2013 Kostya Serebryany <kcc@google.com> [asan] fix a rare failure in fast unwinder, found by asan/clang bootstrap

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@184190 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_stacktrace.cc
02d7f32f66ef13cedd66a69aad864b6d5a4b81ae 18-Jun-2013 Sergey Matveev <earthdok@google.com> [lsan] Set current_thread_tid correctly for main thread.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@184189 91177308-0d34-0410-b5e6-96231b3b80d8
san/lsan.cc
7028c1ee187302ace4fa3530769458c0b3caf946 18-Jun-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Fix Android build.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@184187 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_common_interceptors_ioctl.inc
anitizer_common/sanitizer_platform_limits_posix.cc
anitizer_common/sanitizer_platform_limits_posix.h
5ec47415ad09e8cb652a100253ab26cec7501d48 18-Jun-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Remove a set of deprecated ioctls.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@184185 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_common_interceptors_ioctl.inc
anitizer_common/sanitizer_platform_limits_posix.cc
anitizer_common/sanitizer_platform_limits_posix.h
7965e957a57011241334c444fec69d14116a9fdf 18-Jun-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Replace ext2_ ioctls with generic fs_ ioctls.

They are actually the same, but ext2_fs.h header is not available in userspace
with newer kernels.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@184184 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_common_interceptors_ioctl.inc
anitizer_common/sanitizer_platform_limits_posix.cc
anitizer_common/sanitizer_platform_limits_posix.h
2557a1b4517971c9cf1aff62425fc48561db9949 18-Jun-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Symbolic ioctl names.

Replace hardcoded ioctl request ids with symbolic names.
Disable certain ioctls on platforms where such names are not found in the
system headers.
Fix a bug in ioctl_lookup.
Reenable ioctl test on Mac.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@184183 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/TestCases/ioctl.cc
anitizer_common/sanitizer_common_interceptors_ioctl.inc
anitizer_common/sanitizer_platform_limits_posix.cc
anitizer_common/sanitizer_platform_limits_posix.h
e7718bcc1372d25fc21100e403cf41b166d42f9b 17-Jun-2013 Dmitry Vyukov <dvyukov@google.com> tsan: consistently use return pc as top frame pc
always substract 1 from the top pc
this allows to get correct stacks with -O2


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@184112 91177308-0d34-0410-b5e6-96231b3b80d8
san/rtl/tsan_interceptors.cc
san/rtl/tsan_interface_ann.cc
san/rtl/tsan_interface_atomic.cc
san/rtl/tsan_interface_java.cc
san/rtl/tsan_rtl_report.cc
441a21644ad802b278c45b4e87153113639b2fcc 14-Jun-2013 Alexey Samsonov <samsonov@google.com> Properly install LSan interface header, rely on sanitizer header presence in lit tests

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@183977 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/TestCases/interface_test.cc
san/lit_tests/TestCases/unaligned_loads_and_stores.cc
san/lit_tests/TestCases/disabler.cc
san/lit_tests/TestCases/ignore_object.cc
san/lit_tests/TestCases/ignore_object_errors.cc
0a05e5fa28a7424f8146549057c53b4590f3a251 14-Jun-2013 Alexey Samsonov <samsonov@google.com> [TSan] use InternalMmapVector to store fired suppressions

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@183974 91177308-0d34-0410-b5e6-96231b3b80d8
san/rtl/tsan_rtl.cc
san/rtl/tsan_rtl.h
san/rtl/tsan_rtl_report.cc
dbeb48d34bb6447c33a0ef99aaf9ba36f7f4b852 14-Jun-2013 Alexey Samsonov <samsonov@google.com> [LSan] Use a typedef for frontier vector

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@183973 91177308-0d34-0410-b5e6-96231b3b80d8
san/lsan_common.cc
san/lsan_common.h
san/lsan_common_linux.cc
a64d4359902f1f64992aedfe10d8882ae7c66f40 14-Jun-2013 Alexey Samsonov <samsonov@google.com> [Sanitizer] Rename InternalVector to InternalMmapVector

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@183972 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_globals.cc
san/lsan_common.cc
san/lsan_common.h
san/lsan_common_linux.cc
anitizer_common/sanitizer_common.h
anitizer_common/sanitizer_stoptheworld.h
anitizer_common/tests/sanitizer_common_test.cc
485f73812dec2204e9f1b184bf01420859ca7f31 13-Jun-2013 Stephen Hines <srhines@google.com> Update compiler-rt for merge to r183849.

Android.mk updates:
Remove sanitizer_symbolizer.cc
Add sanitizer_common_libcdep.cc
Add sanitizer_linux_libcdep.cc
Add sanitizer_posix_libcdep.cc
Add sanitizer_symbolizer_libcdep.cc
Add sanitizer_symbolizer_linux_libcdep.cc
Add sanitizer_symbolizer_posix_libcdep.cc

Change-Id: Ibc62c8980d8cb5973dc312dfd8ecb1de0bfda03d
san/Android.mk
9c4d7a4e5fc1b49757ac733fec72c5e89948fefb 13-Jun-2013 Dmitry Vyukov <dvyukov@google.com> tsan: fix Windows Go crash


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@183898 91177308-0d34-0410-b5e6-96231b3b80d8
san/rtl/tsan_rtl.cc
5c127cddd01872cd49d7267c128981eb2df8ddc7 13-Jun-2013 Alexey Samsonov <samsonov@google.com> [LSan] fix link flags for building unit tests

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@183891 91177308-0d34-0410-b5e6-96231b3b80d8
san/tests/CMakeLists.txt
f9262aeba07a0bf4d0b3fc00aa579e3054594632 13-Jun-2013 Richard Trieu <rtrieu@google.com> Fix broken header guard.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@183873 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_mac.h
bb097bcb93a67ebbb7a89ac83f0a16c47c013a7f 12-Jun-2013 Stephen Hines <srhines@google.com> Merge commit 'b3b46dad13a2111a51fb1a67f36c8b633410e9b7' into merge_20130612

Conflicts:
lib/sanitizer_common/sanitizer_symbolizer_linux.cc

Change-Id: Ie0a701ed3d360d846b491116ff2e33e33968f291
b3b46dad13a2111a51fb1a67f36c8b633410e9b7 11-Jun-2013 Sergey Matveev <earthdok@google.com> [lsan] Harmonized some naming inconsistencies.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@183748 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_allocator2.cc
san/lit_tests/TestCases/disabler.cc
san/lit_tests/TestCases/ignore_object.cc
san/lit_tests/TestCases/large_allocation_leak.cc
san/lit_tests/TestCases/stale_stack_leak.cc
san/lit_tests/TestCases/use_globals_initialized.cc
san/lit_tests/TestCases/use_globals_uninitialized.cc
san/lit_tests/TestCases/use_registers.cc
san/lit_tests/TestCases/use_stacks.cc
san/lit_tests/TestCases/use_stacks_threaded.cc
san/lit_tests/TestCases/use_tls_dynamic.cc
san/lit_tests/TestCases/use_tls_pthread_specific_dynamic.cc
san/lit_tests/TestCases/use_tls_pthread_specific_static.cc
san/lit_tests/TestCases/use_tls_static.cc
san/lit_tests/TestCases/use_unaligned.cc
san/lsan_allocator.cc
san/lsan_common.cc
san/lsan_common.h
e0c45610e138c9e0b518189b7fa286f4b7ee6474 11-Jun-2013 Dmitry Vyukov <dvyukov@google.com> tsan: add -Wno-maybe-uninitialized to Go build script
this is how the rest of the codebase is built


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@183738 91177308-0d34-0410-b5e6-96231b3b80d8
san/go/buildgo.sh
san/rtl/tsan_rtl_report.cc
a4d043eba05abdc62970076104cba71a4fc5bcef 11-Jun-2013 Sergey Matveev <earthdok@google.com> [lsan] Fix the unittest makefiles.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@183735 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/CMakeLists.txt
san/tests/CMakeLists.txt
san/tests/lsan_dummy_unittest.cc
ff0ce7fbdba7d02dd06bbb1ba1003c50355513df 11-Jun-2013 Alexey Samsonov <samsonov@google.com> [Sanitizer] add file forgotten in r183730

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@183732 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_symbolizer_posix_libcdep.cc
d64bcf43935c9ceeb7376ca4185662811ae907ea 11-Jun-2013 Alexey Samsonov <samsonov@google.com> [Sanitizer] support running external llvm-symbolizer on Mac

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@183730 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_rtl.cc
anitizer_common/CMakeLists.txt
anitizer_common/sanitizer_common.h
anitizer_common/sanitizer_linux.h
anitizer_common/sanitizer_symbolizer.h
anitizer_common/sanitizer_symbolizer_linux_libcdep.cc
anitizer_common/sanitizer_symbolizer_mac.cc
anitizer_common/scripts/check_lint.sh
6cfb2f77280012b0818d00240aaa11bc359655d9 10-Jun-2013 Dmitry Vyukov <dvyukov@google.com> tsan: fix lit test failures


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@183674 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/suppressions_global.cc
san/lit_tests/suppressions_race.cc
san/lit_tests/suppressions_race2.cc
3f5f59ad7e542542775b780d5bfbc288c35ed6ea 10-Jun-2013 Dmitry Vyukov <dvyukov@google.com> tsan: add system tests for suppressions


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@183673 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/suppressions_global.cc
san/lit_tests/suppressions_global.cc.supp
san/lit_tests/suppressions_race.cc
san/lit_tests/suppressions_race.cc.supp
san/lit_tests/suppressions_race2.cc
san/lit_tests/suppressions_race2.cc.supp
san/lit_tests/test_output.sh
39968339a07d790aadcf27534f92a0de8c0c90fb 10-Jun-2013 Dmitry Vyukov <dvyukov@google.com> tsan: allows to suppress races on global variables


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@183672 91177308-0d34-0410-b5e6-96231b3b80d8
san/rtl/tsan_rtl.h
san/rtl/tsan_rtl_report.cc
san/rtl/tsan_suppressions.cc
san/rtl/tsan_suppressions.h
dc8015f9efa3fa230f7276dd6bfb95501009d038 10-Jun-2013 Alexander Potapenko <glider@google.com> [ASan] Fix unset-insert-libraries-on-exec.cc on 32-bit Darwin.
The test used to execute a 64-bit /bin/bash binary and preload a 32-bit dynamic library into it.
Now the arch-specific version of echo-env is executed instead.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@183662 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/TestCases/Darwin/unset-insert-libraries-on-exec.cc
san/lit_tests/TestCases/Helpers/echo-env.cc
fdde5a97a71b142297d7b2270c2a7f564a37dbae 10-Jun-2013 Alexey Samsonov <samsonov@google.com> [ASan] mark ioctl test as xfailing on darwin. remove redundant semicolons

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@183655 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_interceptors.cc
san/lit_tests/TestCases/ioctl.cc
72efa9440c362244e3e1fa64c16d630884d36c11 10-Jun-2013 Kostya Serebryany <kcc@google.com> [asan] fix Android build (mark asan_malloc_usable_size as an interface function)

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@183651 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_allocator2.cc
917f62eaa5c2839155f703dee114a767ff81cca5 10-Jun-2013 Dmitry Vyukov <dvyukov@google.com> tsan: disable getaddrinfo() interceptor for tsan (causes recursion)


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@183649 91177308-0d34-0410-b5e6-96231b3b80d8
san/rtl/tsan_interceptors.cc
e524a21a3e75999ea5a089c9762ca691f114c020 10-Jun-2013 Dmitry Vyukov <dvyukov@google.com> tsan: fix merge bug


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@183648 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_win.cc
5d43b5a695ca6b6dc4eff05e723a7f39643f3266 10-Jun-2013 Kostya Serebryany <kcc@google.com> [asan] fix the bug with memalign and malloc_usable_size (http://code.google.com/p/address-sanitizer/issues/detail?id=193); also fix lint

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@183647 91177308-0d34-0410-b5e6-96231b3b80d8
san/asan_allocator2.cc
san/tests/asan_noinst_test.cc
anitizer_common/sanitizer_common_interceptors_ioctl.inc
21b3b1c50662eeb2d9340c51e1837be495cf87b5 10-Jun-2013 Dmitry Vyukov <dvyukov@google.com> tsan: fix windows crash (incorrect stack boundaries)


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@183646 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_win.cc
cc08fca1faf3b61fa51f32b2360c978982de6b77 10-Jun-2013 Dmitry Vyukov <dvyukov@google.com> tsan: fix old gcc warnings


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@183645 91177308-0d34-0410-b5e6-96231b3b80d8
san/rtl/tsan_rtl_report.cc
c5288679cc55c523188a40325d49d97b100cf03c 10-Jun-2013 Dmitry Vyukov <dvyukov@google.com> tsan: fix windows mingw build


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@183644 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common/sanitizer_common.h
anitizer_common/sanitizer_printf.cc
anitizer_common/sanitizer_win.cc
bb5aecb56d84e09106a88aca2d30fbb0b29b2e9c 10-Jun-2013 Dmitry Vyukov <dvyukov@google.com> tsan: more detailed trace for atomic operations (include address and memory ordering)


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@183643 91177308-0d34-0410-b5e6-96231b3b80d8
san/rtl/tsan_interface_atomic.cc
4f0fd8e131b6c2f13244a0fd808abe0da7a50983 10-Jun-2013 Dmitry Vyukov <dvyukov@google.com> tsan: fix lint warnings


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@183642 91177308-0d34-0410-b5e6-96231b3b80d8
san/lit_tests/TestCases/ignore_object.cc
anitizer_common/sanitizer_platform_limits_posix.cc
anitizer_common/sanitizer_platform_limits_posix.h
7575e0a67bc9d4c0f16656ea022f19fc5c9142f9 10-Jun-2013 Alexey Samsonov <samsonov@google.com> [MSan] don't add msan unit tests to check-msan command if libcxx is not checked out

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@183641 91177308-0d34-0410-b5e6-96231b3b80d8