summaryrefslogtreecommitdiff
path: root/lib/msan/tests
AgeCommit message (Collapse)Author
2015-02-18[MSan][MIPS] Fix for some failing tests on MIPS64Mohit K. Bhakkad
Enabling internal ptrace for mips, which fixes some ptrace related tests. Along with this fixing some other failures. Reviewers: Reviewers: eugenis, kcc, samsonov Subscribers: dsanders, sagar, lldb-commits Differential Revision: http://reviews.llvm.org/D7332 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@229656 91177308-0d34-0410-b5e6-96231b3b80d8
2015-02-17[Msan] Fix the unit tests' PathToLoadable() to work on FreeBSDViktor Kutuzov
Differential Revision: http://reviews.llvm.org/D7587 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@229491 91177308-0d34-0410-b5e6-96231b3b80d8
2015-02-16[msan] Fix UnalignedLoad/UnalignedStore tests.Evgeniy Stepanov
Add alignment attrubutes to ensure that the tests actually test unaligned access irrespective of the stack layout. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@229398 91177308-0d34-0410-b5e6-96231b3b80d8
2015-02-16[Msan] Improve the EXPECT_NOT_POISONED() macro to provide the original line ↵Viktor Kutuzov
number Differential Revision: http://reviews.llvm.org/D7341 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@229389 91177308-0d34-0410-b5e6-96231b3b80d8
2015-02-16[Msan] Make unit tests that use mempcpy() passing on FreeBSDViktor Kutuzov
Differential Revision: http://reviews.llvm.org/D7588 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@229388 91177308-0d34-0410-b5e6-96231b3b80d8
2015-02-16[Msan] Disable the fgetgrent_r unit test on FreeBSDViktor Kutuzov
Differential Revision: http://reviews.llvm.org/D7343 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@229387 91177308-0d34-0410-b5e6-96231b3b80d8
2015-02-16[Msan] Disable fcvt unit tests on FreeBSDViktor Kutuzov
Differential Revision: http://reviews.llvm.org/D7340 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@229386 91177308-0d34-0410-b5e6-96231b3b80d8
2015-02-16[Msan] Fix the getgrnam_r unit test to pass on FreeBSDViktor Kutuzov
Differential Revision: http://reviews.llvm.org/D7339 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@229385 91177308-0d34-0410-b5e6-96231b3b80d8
2015-02-16[Msan] Fix the sigaction unit test to build on FreeBSDViktor Kutuzov
Differential Revision: http://reviews.llvm.org/D7335 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@229384 91177308-0d34-0410-b5e6-96231b3b80d8
2015-02-16[Msan] Fix the ether unit test to build on FreeBSDViktor Kutuzov
Differential Revision: http://reviews.llvm.org/D7334 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@229383 91177308-0d34-0410-b5e6-96231b3b80d8
2015-02-04[Msan] Fix the pthread_attr_get unit test to build on FreeBSDViktor Kutuzov
Differential Revision: http://reviews.llvm.org/D7342 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@228125 91177308-0d34-0410-b5e6-96231b3b80d8
2015-02-02Fix missed #endif in rL227790.Viktor Kutuzov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@227797 91177308-0d34-0410-b5e6-96231b3b80d8
2015-02-02[Msan] Disable unit tests for non-FreeBSD functions on FreeBSDViktor Kutuzov
Differential Revision: http://reviews.llvm.org/D7252 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@227790 91177308-0d34-0410-b5e6-96231b3b80d8
2015-01-30[Msan] Fix the shmctl unit tests to pass on FreeBSDViktor Kutuzov
Differential Revision: http://reviews.llvm.org/D7253 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@227571 91177308-0d34-0410-b5e6-96231b3b80d8
2015-01-27[MSan] Enable MSan unit tests for all archsMohit K. Bhakkad
Reviewers: Reviewers: eugenis, kcc, samsonov, petarj Subscribers: dsanders, sagar, lldb-commits Differential Revision: http://reviews.llvm.org/D7194 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@227189 91177308-0d34-0410-b5e6-96231b3b80d8
2015-01-26[Msan] Disable the ppoll unit test on FreeBSDViktor Kutuzov
Differential Revision: http://reviews.llvm.org/D7145 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@227106 91177308-0d34-0410-b5e6-96231b3b80d8
2015-01-26[Msan] Fix the statfs unit test to pass on FreeBSDViktor Kutuzov
Differential Revision: http://reviews.llvm.org/D7144 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@227100 91177308-0d34-0410-b5e6-96231b3b80d8
2015-01-22[Msan] Fix the readv and preadv unit tests to pass on FreeBSDViktor Kutuzov
Differential Revision: http://reviews.llvm.org/D7091 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@226801 91177308-0d34-0410-b5e6-96231b3b80d8
2015-01-22[Msan] Fix the strerror_r unit test to build on FreeBSDViktor Kutuzov
Differential Revision: http://reviews.llvm.org/D7089 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@226800 91177308-0d34-0410-b5e6-96231b3b80d8
2015-01-22[Msan] Fix the DynRet unit test to build on FreeBSDViktor Kutuzov
Differential Revision: http://reviews.llvm.org/D7086 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@226799 91177308-0d34-0410-b5e6-96231b3b80d8
2015-01-21[Msan] Fix the accept unit test to pass on FreeBSDViktor Kutuzov
Differential Revision: http://reviews.llvm.org/D7083 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@226650 91177308-0d34-0410-b5e6-96231b3b80d8
2015-01-21[Sanitizers] Intercept opendir()Viktor Kutuzov
Differential Revision: http://reviews.llvm.org/D6968 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@226648 91177308-0d34-0410-b5e6-96231b3b80d8
2015-01-20[Msan] Fix the readlink unit test to pass on FreeBSDViktor Kutuzov
Differential Revision: http://reviews.llvm.org/D7052 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@226554 91177308-0d34-0410-b5e6-96231b3b80d8
2015-01-19[Msan] Intercept stat() and fstatat() on FreeBSDViktor Kutuzov
Differential Revision: http://reviews.llvm.org/D7051 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@226461 91177308-0d34-0410-b5e6-96231b3b80d8
2015-01-12[Msan] Fix use of mmap(MAP_ANONYMOUS) in the unit tests on FreeBSDViktor Kutuzov
Differential Revision: http://reviews.llvm.org/D6929 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@225688 91177308-0d34-0410-b5e6-96231b3b80d8
2015-01-12[Msan] Fix tests reading /proc files on FreeBSDViktor Kutuzov
Differential Revision: http://reviews.llvm.org/D6926 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@225686 91177308-0d34-0410-b5e6-96231b3b80d8
2015-01-06[Sanitizer] Improve unit tests in COMPILER_RT_DEBUG=ON mode.Alexey Samsonov
Propagate -DSANITIZER_DEBUG definition to unit tests. Make sure unit tests depend on compiler-rt headers. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@225298 91177308-0d34-0410-b5e6-96231b3b80d8
2014-12-22[Msan] Fix msan_test.cc inclusions to build the unit tests on FreeBSDViktor Kutuzov
Differential Revision: http://reviews.llvm.org/D6757 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@224724 91177308-0d34-0410-b5e6-96231b3b80d8
2014-12-08[msan] Intercept wcsto*.Evgeniy Stepanov
Intercept wcstod, wcstof, wcstold, wcstol, wcstoul, wcstoll, wcstoull. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@223650 91177308-0d34-0410-b5e6-96231b3b80d8
2014-12-03[msan] Re-enable one test.Evgeniy Stepanov
It has been fixed a long time ago. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@223226 91177308-0d34-0410-b5e6-96231b3b80d8
2014-11-25[msan] Remove leftover MSanDR bits in tests.Evgeniy Stepanov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@222762 91177308-0d34-0410-b5e6-96231b3b80d8
2014-11-24[compiler-rt] Make the MSAN wmemset intercepter call wmemset instead of ↵Eric Fiselier
memset. Fixes PR 21579 Summary: Exactly what the title says. I've tested this change against the libc++ test failures and it solves all of them. The check-msan rule also still passes. I'm not sure why it called memset originally. I can add tests if requested but currently there are no tests involving wide chars and they are a c++11 features. Reviewers: kcc, eugenis Reviewed By: eugenis Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D6352 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@222673 91177308-0d34-0410-b5e6-96231b3b80d8
2014-11-18[msan] Remove MSanDR and supporting code.Evgeniy Stepanov
MSanDR is a dynamic instrumentation tool that can instrument the code (prebuilt libraries and such) that could not be instrumented at compile time. This code is unused (to the best of our knowledge) and unmaintained, and starting to bit-rot. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@222232 91177308-0d34-0410-b5e6-96231b3b80d8
2014-11-12delete => delete[] for arrays.Richard Trieu
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@221769 91177308-0d34-0410-b5e6-96231b3b80d8
2014-10-15[compiler-rt] compiler-rt's CMake append_if function clashes with LLVM's, ↵Kuba Brecka
let's rename it to append_list_if Doing s/append_if/append_list_if/, no functional change. http://reviews.llvm.org/D5739 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@219860 91177308-0d34-0410-b5e6-96231b3b80d8
2014-08-07[msan] Fix fcvt interceptor.Evgeniy Stepanov
fcvt() result can be heap-allocated and must be unpoisoned. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@215106 91177308-0d34-0410-b5e6-96231b3b80d8
2014-07-22[MSan] Fix strncpy interceptorAlexey Samsonov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@213590 91177308-0d34-0410-b5e6-96231b3b80d8
2014-07-08[msan] Fix out of bounds access in origin copying.Evgeniy Stepanov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@212534 91177308-0d34-0410-b5e6-96231b3b80d8
2014-07-07Generalize sanitizer allocator public interface.Alexey Samsonov
Introduce new public header <sanitizer/allocator_interface.h> and a set of functions __sanitizer_get_ownership(), __sanitizer_malloc_hook() etc. that will eventually replace their tool-specific equivalents (__asan_get_ownership(), __msan_get_ownership() etc.). Tool-specific functions are now deprecated and implemented as stubs redirecting to __sanitizer_ versions (which are implemented differently in each tool). Replace all uses of __xsan_ versions with __sanitizer_ versions in unit and lit tests. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@212469 91177308-0d34-0410-b5e6-96231b3b80d8
2014-07-01[MSan] Fixup r212082: enable tests for _mm_ intrinsics if and only if theAlexey Samsonov
unit test source file is compiled with Clang. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@212121 91177308-0d34-0410-b5e6-96231b3b80d8
2014-07-01Add the way to disable MSan unit tests for _mm_* intrinsicsAlexey Samsonov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@212082 91177308-0d34-0410-b5e6-96231b3b80d8
2014-06-24[msan] Fix origin copying.Evgeniy Stepanov
Conditions for the first and the last origin value in range were wrong. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@211585 91177308-0d34-0410-b5e6-96231b3b80d8
2014-06-18[msan] Handle X86 *.psad.* and *.pmadd.* intrinsics.Evgeniy Stepanov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@211156 91177308-0d34-0410-b5e6-96231b3b80d8
2014-06-09[msan] Intercept __strto*_internal.Evgeniy Stepanov
This should fix strtoimax/strtoumax on newer glibc. https://code.google.com/p/memory-sanitizer/issues/detail?id=36 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@210463 91177308-0d34-0410-b5e6-96231b3b80d8
2014-06-09[msan] Add a test for mmx.packuswb.Evgeniy Stepanov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@210458 91177308-0d34-0410-b5e6-96231b3b80d8
2014-06-09[msan] Simplify tests.Evgeniy Stepanov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@210457 91177308-0d34-0410-b5e6-96231b3b80d8
2014-06-02[msan] Handle x86 vector pack intrinsics.Evgeniy Stepanov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@210020 91177308-0d34-0410-b5e6-96231b3b80d8
2014-05-21[msan] Chained origins re-design.Evgeniy Stepanov
Generalize StackDepot and create a new specialized instance of it to efficiently (i.e. without duplicating stack trace data) store the origin history tree. This reduces memory usage for chained origins roughly by an order of magnitude. Most importantly, this new design allows us to put two limits on stored history data (exposed in MSAN_OPTIONS) that help avoid exponential growth in used memory on certain workloads. See comments in lib/msan/msan_origin.h for more details. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@209284 91177308-0d34-0410-b5e6-96231b3b80d8
2014-05-09[CMake] Use ExternalProject to build MSan-ified version of libcxx for unit ↵Alexey Samsonov
tests. This change lets MSan rely on libcxx's own build system instead of manually compiling its sources and setting up all the necessary compile flags. It would also simplify compiling libcxx with another sanitizers (in particular, TSan). The tricky part is to make sure libcxx is reconfigured/rebuilt when Clang or MSan runtime library is changed. "clobber" step used in this patch works well for me, but it's possible it would break for other configurations - will watch the buildbots. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@208451 91177308-0d34-0410-b5e6-96231b3b80d8
2014-04-18[msan] Add missing quotes.Evgeniy Stepanov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@206589 91177308-0d34-0410-b5e6-96231b3b80d8