History log of /external/compiler-rt/lib/msan/msan_interceptors.cc
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
c58a43648cd6121c51a2e795a28e2ef90d7813e6 20-Sep-2016 Pirama Arumuga Nainar <pirama@google.com> Update aosp/master compiler-rt for rebase to r275480

Bug: http://b/31320715

This merges commit db963a21048fd7242daae74666cb221f796f33c3 from
aosp/dev.

Test: Build AOSP and run RenderScript tests (host tests for slang and
libbcc, RsTest, CTS)

Change-Id: I8bdd651c1759c4306d62c34edec1d8d9536c9715
/external/compiler-rt/lib/msan/msan_interceptors.cc
799172d60d32feb1acba1a6867f3a9c39a999e5c 04-Mar-2016 Pirama Arumuga Nainar <pirama@google.com> Update aosp/master compiler-rt for rebase to r256229

http://b/26987366

Change-Id: I0ca3d7d3f1b7926fcffcb5b467e79958de576437
/external/compiler-rt/lib/msan/msan_interceptors.cc
cdce50bda3603770cc4ef80cbb613c78b8e47a17 01-Jul-2015 Pirama Arumuga Nainar <pirama@google.com> Update aosp/master compiler-rt for rebase to r239765

Change-Id: I722dcde07e4f76a8a35ca701d89be5f311840e74
/external/compiler-rt/lib/msan/msan_interceptors.cc
259f7063e3e4c4b94dded1e90ab0a943d0fa737b 06-May-2015 Pirama Arumuga Nainar <pirama@google.com> Update aosp/master compiler-rt for rebase to r235153

Change-Id: I7c900e78d263fe0f574369e8383ccac7e36f5c3b
/external/compiler-rt/lib/msan/msan_interceptors.cc
86277eb844c4983c81de62d7c050e92fe7155788 23-Mar-2015 Stephen Hines <srhines@google.com> Update aosp/master compiler-rt for rebase to r230699.

Change-Id: I6c415fd5f6420e3012d9da76719111721e906dfa
/external/compiler-rt/lib/msan/msan_interceptors.cc
6d1862363c88c183b0ed7740fca876342cf0474b 27-Nov-2014 Stephen Hines <srhines@google.com> Update aosp/master compiler-rt for rebase to r222486.

Change-Id: I38047809dbac0425193c82e810315998adbb380d
/external/compiler-rt/lib/msan/msan_interceptors.cc
6a211c5814e25d6745a5058cc0e499e5235d3821 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
/external/compiler-rt/lib/msan/msan_interceptors.cc
2d1fdb26e458c4ddc04155c1d421bced3ba90cd0 29-May-2014 Stephen Hines <srhines@google.com> Update compiler-rt aosp/master for 3.5 (r209699) rebase.

Change-Id: I158a30186f0faea2e2400e9dfdd878db2eb40e90
/external/compiler-rt/lib/msan/msan_interceptors.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
/external/compiler-rt/lib/msan/msan_interceptors.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
/external/compiler-rt/lib/msan/msan_interceptors.cc
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
/external/compiler-rt/lib/msan/msan_interceptors.cc
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
/external/compiler-rt/lib/msan/msan_interceptors.cc
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
/external/compiler-rt/lib/msan/msan_interceptors.cc
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
/external/compiler-rt/lib/msan/msan_interceptors.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
/external/compiler-rt/lib/msan/msan_interceptors.cc
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
/external/compiler-rt/lib/msan/msan_interceptors.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
/external/compiler-rt/lib/msan/msan_interceptors.cc
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
/external/compiler-rt/lib/msan/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
/external/compiler-rt/lib/msan/msan_interceptors.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
/external/compiler-rt/lib/msan/msan_interceptors.cc
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
/external/compiler-rt/lib/msan/msan_interceptors.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
/external/compiler-rt/lib/msan/msan_interceptors.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
/external/compiler-rt/lib/msan/msan_interceptors.cc
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
/external/compiler-rt/lib/msan/msan_interceptors.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
/external/compiler-rt/lib/msan/msan_interceptors.cc
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
/external/compiler-rt/lib/msan/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
/external/compiler-rt/lib/msan/msan_interceptors.cc
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
/external/compiler-rt/lib/msan/msan_interceptors.cc
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
/external/compiler-rt/lib/msan/msan_interceptors.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
/external/compiler-rt/lib/msan/msan_interceptors.cc
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
/external/compiler-rt/lib/msan/msan_interceptors.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
/external/compiler-rt/lib/msan/msan_interceptors.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
/external/compiler-rt/lib/msan/msan_interceptors.cc
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
/external/compiler-rt/lib/msan/msan_interceptors.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
/external/compiler-rt/lib/msan/msan_interceptors.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
/external/compiler-rt/lib/msan/msan_interceptors.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
/external/compiler-rt/lib/msan/msan_interceptors.cc
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
/external/compiler-rt/lib/msan/msan_interceptors.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
/external/compiler-rt/lib/msan/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
/external/compiler-rt/lib/msan/msan_interceptors.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
/external/compiler-rt/lib/msan/msan_interceptors.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
/external/compiler-rt/lib/msan/msan_interceptors.cc
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
/external/compiler-rt/lib/msan/msan_interceptors.cc
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
/external/compiler-rt/lib/msan/msan_interceptors.cc
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
/external/compiler-rt/lib/msan/msan_interceptors.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
/external/compiler-rt/lib/msan/msan_interceptors.cc
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
/external/compiler-rt/lib/msan/msan_interceptors.cc
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
/external/compiler-rt/lib/msan/msan_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
/external/compiler-rt/lib/msan/msan_interceptors.cc
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
/external/compiler-rt/lib/msan/msan_interceptors.cc
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
/external/compiler-rt/lib/msan/msan_interceptors.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
/external/compiler-rt/lib/msan/msan_interceptors.cc
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
/external/compiler-rt/lib/msan/msan_interceptors.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
/external/compiler-rt/lib/msan/msan_interceptors.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
/external/compiler-rt/lib/msan/msan_interceptors.cc
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
/external/compiler-rt/lib/msan/msan_interceptors.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
/external/compiler-rt/lib/msan/msan_interceptors.cc
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
/external/compiler-rt/lib/msan/msan_interceptors.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
/external/compiler-rt/lib/msan/msan_interceptors.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
/external/compiler-rt/lib/msan/msan_interceptors.cc
a879f10ee6aa04f6169d056ef2a9c39502fff290 31-May-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [msan] Fix gcc build of msan runtime.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182999 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/msan/msan_interceptors.cc
b36779d6e9c55e97b2258fe30e8e02c416b14dda 31-May-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [msan] Handle mixed track-origins and keep-going settings (compiler-rt part).

Before this change, each module defined a weak_odr global __msan_track_origins
with a value of 1 if origin tracking is enabled, 0 if disabled. If there are
modules with different values, any of them may win. If 0 wins, and there is at
least one module with 1, the program will most likely crash.

With this change, __msan_track_origins is only emitted if origin tracking is
on. Then runtime library detects if there is at least one module with origin
tracking, and enables runtime support for it.



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182996 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/msan/msan_interceptors.cc
9666d89b628867b2c790d5415f0371fdb4050b0c 29-May-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Move TSan and MSan recvmsg interceptors to common.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182843 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/msan/msan_interceptors.cc
9d1525ec52430d0b8ffd6d0893b7f5529105b321 29-May-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Share TSan accept & accept4 interceptors with other sanitizers.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182835 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/msan/msan_interceptors.cc
5b2afc3e655f32c8b9d4b7c8b0ad31681f16cf06 23-May-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [msan] Fix line >80 chars.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182578 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/msan/msan_interceptors.cc
447ef19d1b8cebbeaba49e4be22ac721448dcf3e 22-May-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [msan] getaddrinfo & nested interceptor support.

Multiple connected changes:
- Ignore reads from nested interceptors.
- Check shadow on reads from common interceptors.
- getaddrinfo interceptor.



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182466 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/msan/msan_interceptors.cc
1aad6b5444207887ecea2b9e87526585d1ce0592 17-May-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [msan] Unpoison dlpi_name in dl_iterate_phdr interceptor.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182093 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/msan/msan_interceptors.cc
2bba4efbf0df4bfac8e0aac1a924ba763dd9c468 16-May-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [msan] Intercept dl_iterate_phdr.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182004 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/msan/msan_interceptors.cc
11347bf5f008b5970f699241617381d95526d73d 23-Apr-2013 Alexey Samsonov <samsonov@google.com> [MSan] Make a few interface functions accept 'const void *' instead of 'void*'

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@180102 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/msan/msan_interceptors.cc
b6c8e47a72d526232f4d3e3b36232f30f8818733 23-Apr-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [msan] Unpoison the result of posix_memalign.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@180101 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/msan/msan_interceptors.cc
2887a64cb7b82fc2dcbe4b1fcc33562077ec371a 11-Apr-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Syscall hooks.

Pre- and post- hooks for linux syscalls. Not wired into anything, but exposed
through public interface.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@179288 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/msan/msan_interceptors.cc
897a4ae31f5c55255c78854b69b4cd4a4e3c7c39 09-Apr-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Interceptors for wait*.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@179096 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/msan/msan_interceptors.cc
134fe8ae5090d39aa2d37a5db5298e49467399c8 08-Apr-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [msan] Interceptors for pipe2 and socketpair.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@179022 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/msan/msan_interceptors.cc
a27bdf70ca24202dce21cf7c1a387aeaa400d889 05-Apr-2013 Kostya Serebryany <kcc@google.com> [sanitizer] found a bug by code inspection: CHECK(a=b) instead of CHECK(a==b). Was puzzled why lint did not catch it. Turns out this check was disabled for asan source. fix all cases and enable the check

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@178872 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/msan/msan_interceptors.cc
cd3049da150124156502b1a8c05e4c4887786cc5 05-Apr-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [msan] Fix sigaction interceptor.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@178868 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/msan/msan_interceptors.cc
a213ab66e1c743ec7a52af4a49ec6c126cc245ae 05-Apr-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [msan] A runtime option to disable wrapping of signal handlers.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@178865 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/msan/msan_interceptors.cc
072770202bb1002172abe9a4b1eeb7f2d2fb004f 04-Apr-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Use ucontext_t instead of "struct ucontext".

Fixes Mac build.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@178755 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/msan/msan_interceptors.cc
06658ea68c4912fffafef6e65f36dce7faa4a174 04-Apr-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [msan] Unpoison siginfo_t and ucontext_t in signal handlers.

Add wrappers for all user signal handlers to unpoison the handler's arguments.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@178754 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/msan/msan_interceptors.cc
583025ddc52988cdcedb5dee57e0d66a0c586340 04-Apr-2013 Kostya Serebryany <kcc@google.com> [sanitizer] while doing fast unwinding make sure that the frame pointer is aligned; fix lint

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@178747 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/msan/msan_interceptors.cc
e4bdda51b3469aa0f6ef6f6c4656419effa48038 01-Apr-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] More interceptors.

getpwnam, getpwuid, getpwnam_r, getpwuid_r, clock_getres, clock_gettime,
clock_settime, getitimer, setitimer, sigaction (MSan).



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@178465 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/msan/msan_interceptors.cc
6c503b9c7b0ad08fba74dbed309447d75de9a157 22-Mar-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [msan] Handle dlopen() failure in dlopen interceptor.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177728 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/msan/msan_interceptors.cc
b9bf700ae7fe59e25976e0abe9636150f3a39cd2 19-Mar-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Don't adjust the size of the user-allocated stack.

Moved this code to sanitizer_common.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177383 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/msan/msan_interceptors.cc
d97a15a931ae6696a1071e1471c9a019e821904b 14-Mar-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [msan] Intercept readdir64.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177065 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/msan/msan_interceptors.cc
8aa1ae03e339ee9365c05dcf831f59b3a817bd84 14-Mar-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [msan] Intercept __strdup, strndup, __strndup.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177052 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/msan/msan_interceptors.cc
0ecc4379bbb04f1d03ceb58f6a0751790fb17c75 13-Mar-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Fix lint.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@176943 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/msan/msan_interceptors.cc
10fd3227546d17c7411241a45ebc143b2031c78d 13-Mar-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [msan] Increase stack size as required.

Adjust stack size in pthread_attr_t when the app-requested size does not fit MSan TLS.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@176939 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/msan/msan_interceptors.cc
0f92deb81207c80481ff0257fbaba640fe669633 11-Mar-2013 Reid Kleckner <reid@kleckner.net> [msan] intercept dlopen and clear shadow for it

Summary:
The loader does not call mmap() through the PLT because it has to
bootstrap the process before libc is present. Hooking dlopen() isn't
enough either because the loader runs module initializers before
returning, and they could run arbitrary msan instrumented code.

If msandr is present, then we can intercept the mmaps from dlopen at the
syscall layer and clear the shadow there. If msandr is missing, we
clear the shadow after dlopen() and hope any initializers are trivial.

Reviewers: eugenis

CC: kcc, llvm-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@176818 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/msan/msan_interceptors.cc
9358c58d0aaf1b20f17362af354d4c3c1309276a 19-Feb-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Add interceptors for localtime and friends.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@175499 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/msan/msan_interceptors.cc
70c6e3fb6dfddb9c4d26ac133beb5f53b71e47d9 13-Feb-2013 Kostya Serebryany <kcc@google.com> [msan] don't check shadow inside interceptors if we are inside symbolizer; add weak function __msan_default_options that overrides default options

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@175040 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/msan/msan_interceptors.cc
7eed04c4dce69ad1e485edbf6dd963e176b52e0d 12-Feb-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [msan] Allow zero buf pointer in getcwd() interceptor.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@174970 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/msan/msan_interceptors.cc
887a5feeb59a515e2fc291ceb8451dc569936124 28-Jan-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [msan] A runtime call to support custom allocators.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@173687 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/msan/msan_interceptors.cc
65199f1b253c4bfb225805629217acb8f0b1e185 25-Jan-2013 Kostya Serebryany <kcc@google.com> [sanitizer] fix calloc overflow in asan/tsan/msan

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@173441 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/msan/msan_interceptors.cc
9e6d3b3a9fa14a4f64df83303d562451b88ae11b 23-Jan-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [msan] Allow waitpid while in __msan_init().

This is used in symbolizer init.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@173263 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/msan/msan_interceptors.cc
95d058800ebe11a9fda03b10455500aa4a5b3edb 23-Jan-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [msan] gethostbyname interceptor.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@173249 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/msan/msan_interceptors.cc
e36d0067390988b4f0334ff291f0652587fbe19b 22-Jan-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [msan] Follow -msan-keep-going in reports from interceptors.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@173158 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/msan/msan_interceptors.cc
82a9080eaff95d69b270cd863e9df63e3b4e59ad 18-Jan-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] lint


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172817 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/msan/msan_interceptors.cc
4f32c0beaa83ffbb84db23d2e6205bee57c39ce1 18-Jan-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Rename 2 files *.h->*.inc as appropriate.

Also add a missing include.



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172814 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/msan/msan_interceptors.cc
bee7415a86d9437659d09f034c346794bf15c2ab 18-Jan-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Fix Mac build.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172809 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/msan/msan_interceptors.cc
996c4f2fa53cce8f9d7b517073f38569460de505 18-Jan-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Common *scanf interceptors.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172805 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/msan/msan_interceptors.cc
c20b321d49f0eff60f1394d56e623d8ca94f24d7 18-Jan-2013 Kostya Serebryany <kcc@google.com> [sanitizer] reapply r172719, r172721-172723, r172725, and also fix the warning on Mac.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172791 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/msan/msan_interceptors.cc
29b37ea8907bc99bf86fab89bf8dc93a520ebac4 17-Jan-2013 Jakob Stoklund Olesen <stoklund@2pi.dk> Revert r172719, r172721-172723, and r172725.

The r172719 patch broke the build on Mac, the others depended on it.

compiler-rt/lib/asan/asan_interceptors.cc:78:13: error: unused function
'SetThreadName' [-Werror,-Wunused-function]
static void SetThreadName(const char *name) {

Orignal headlines:

[asan] attempting to fix the Mac build
[asan] restructure read/pread/pread64 tests
[sanitizer] move write/pwrite/pwrite64 interceptors to common
[msan] start using common interceptors in msan
[tsan] move prctl interceptor from asan to common_interceptors thus enabling it for tsan too

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172763 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/msan/msan_interceptors.cc
14ea1d5351c132f96bcbe23595019377db60588e 17-Jan-2013 Kostya Serebryany <kcc@google.com> [msan] start using common interceptors in msan

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172721 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/msan/msan_interceptors.cc
e03345ba3da0450f7ff1410de6a2a00fd304089d 17-Jan-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [msan] More interceptors.

strtod and friends, dladdr, getrusage


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172720 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/msan/msan_interceptors.cc
7b719dfce8178bdfbcd8a24893153ef82ab70be5 25-Dec-2012 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [msan] Improve recvfrom interceptor.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@171071 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/msan/msan_interceptors.cc
8028c713085dd36688950f5c7c4342dc126ef206 14-Dec-2012 Alexey Samsonov <samsonov@google.com> [Sanitizer] use INTERCEPT_FUNCTION(foo) instead of CHECK(INTERCEPT_FUNCTION(foo)) - this check may fail on Linux if user program defines its own version of library function foo

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@170189 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/msan/msan_interceptors.cc
6afa1b0406f5cce7256d4f8717bfe394a16999b5 13-Dec-2012 Kostya Serebryany <kcc@google.com> [sanitizer] replace size_t with SIZE_T in interceptors (same for ssize_t, off_t and off64_t). This is done to avoid confusion and to make the code work with compilers that define size_t w/o any includes (MSVC)

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@170103 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/msan/msan_interceptors.cc
8530e2b953f0b34ecd267a6aba5f155d5c08c5c8 12-Dec-2012 Kostya Serebryany <kcc@google.com> [asan] add sanitizer_common/sanitizer_common_interceptors.h with pread/pread64/read interceptors. Use it in asan. Add asan tests for pread/etc. Add FIXME to tsan/msan interceptors

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@169966 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/msan/msan_interceptors.cc
78c56c3c407d2c92825c86e6af7a0230d6019a1c 11-Dec-2012 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [msan] MemorySanitizer runtime.

Initial commit of the MemorySanitizer runtime library.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@169858 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/msan/msan_interceptors.cc