summaryrefslogtreecommitdiffstats
path: root/compiler-rt/test/msan/Linux
Commit message (Collapse)AuthorAgeFilesLines
* compiler-rt: Rename .cc file in test/msan to .cppFangrui Song2019-08-0226-4/+4
| | | | | | Like r367463, but for test/msan. llvm-svn: 367653
* [compiler-rt] Rename lit.*.cfg.* -> lit.*.cfg.py.*Reid Kleckner2019-06-271-0/+0
| | | | | | | | | | | | | These lit configuration files are really Python source code. Using the .py file extension helps editors and tools use the correct language mode. LLVM and Clang already use this convention for lit configuration, this change simply applies it to all of compiler-rt. Reviewers: vitalybuka, dberris Differential Revision: https://reviews.llvm.org/D63658 llvm-svn: 364591
* [NFC] Use clearer naming for local variablesJF Bastien2019-04-101-9/+9
| | | | llvm-svn: 358145
* [sanitizer] Intercept bzero.Evgeniy Stepanov2019-03-041-0/+16
| | | | | | | | | | | | | | | | Summary: Intercept bzero and enable existing __bzero interceptor in Linux. bzero is deprecated but still used occasionally. Reviewers: vitalybuka Subscribers: srhines, kubamracek, #sanitizers, llvm-commits Tags: #sanitizers, #llvm Differential Revision: https://reviews.llvm.org/D58850 llvm-svn: 355347
* [msan] Add an interceptor for ttyname().Evgeniy Stepanov2019-03-011-3/+6
| | | | llvm-svn: 355214
* [msan] Fix name_to_handle_at test on overlayfs.Evgeniy Stepanov2019-02-191-1/+1
| | | | | | Udev supports name_to_handle_at. Use /dev/null instead of /bin/cat. llvm-svn: 354402
* [test] Disable sunrpc tests when rpc/xdr.h is missingMichal Gorny2019-01-143-0/+6
| | | | | | | | | | | | | | | | | Disable tests requiring sunrpc when the relevant headers are missing. In order to accommodate that, move the header check from sanitizer_common to base-config-ix, and define the check result as a global variable there. Use it afterwards both for definition needed by sanitizer_common, and to control 'sunrpc' test feature. While at it, remove the append_have_file_definition macro that was used only once, and no longer fits the split check-definition. Bug report: https://github.com/google/sanitizers/issues/974 Differential Revision: https://reviews.llvm.org/D47819 llvm-svn: 351109
* [sanitizer] Use AT_EXECFN in ReExec() if availableBenjamin Kramer2018-11-061-0/+23
| | | | | | | | | | execve("/proc/self/exe") will not work if the binary relies on $EXEC_ORIGIN in an rpath. Query AT_EXECFN instead, which will give the same string that the current binary was exec'd with. Differential Revision: https://reviews.llvm.org/D54113 llvm-svn: 346215
* [MSan] Switch to common aligned allocs tests.Alex Shlyapnikov2018-06-091-26/+0
| | | | | | | | | | | | | | Summary: Switch to aligned_alloc and posix_memalign tests in sanitizer_common and delete the MSan-specific ones. Reviewers: vitalybuka Subscribers: srhines, kubamracek, delcypher, #sanitizers, llvm-commits Differential Revision: https://reviews.llvm.org/D47968 llvm-svn: 334340
* [MSan] Report proper error on allocator failures instead of CHECK(0)-ingAlex Shlyapnikov2018-06-081-0/+26
| | | | | | | | | | | | | | | | | | Summary: Following up on and complementing D44404. Currently many allocator specific errors (OOM, for example) are reported as a text message and CHECK(0) termination, not stack, no details, not too helpful nor informative. To improve the situation, detailed and structured errors were defined and reported under the appropriate conditions. Reviewers: eugenis Subscribers: srhines, delcypher, #sanitizers, llvm-commits Differential Revision: https://reviews.llvm.org/D47793 llvm-svn: 334338
* [sanitizer] Add interceptors for readlinkat, name_to_handle_at, ↵Vitaly Buka2018-01-301-0/+28
| | | | | | | | | | | | | | | | | | | | | open_by_handle_at Summary: Also move existing readlink msan interceptor to sanitizer_common. Fixes google/sanitizers#908 Patch by Oliver Chang Reviewers: vitalybuka, eugenis Reviewed By: vitalybuka Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D42630 llvm-svn: 323825
* [msan] Intercept sendmmsg, recvmmsg.Evgeniy Stepanov2018-01-031-40/+97
| | | | | | | | | | | | Summary: Extend the sendmsg test to cover all recv*. Reviewers: vitalybuka Subscribers: llvm-commits, kubamracek Differential Revision: https://reviews.llvm.org/D41620 llvm-svn: 321774
* Factor out "stable-runtime" feature and enable it on all android.Evgeniy Stepanov2017-10-101-1/+1
| | | | | | | This is a very poorly named feature. I think originally it meant to cover linux only, but the use of it in msan seems to be about any aarch64 platform. Anyway, this change should be NFC on everything except Android. llvm-svn: 315389
* [msan] Check sigset_t and sigaction arguments.Evgeniy Stepanov2017-09-051-0/+42
| | | | | | | | | | | | | | | | Summary: Check sigset_t arguments in ppoll, sig*wait*, sigprocmask interceptors, and the entire "struct sigaction" in sigaction. This can be done because sigemptyset/sigfullset are intercepted and signal masks should be correctly marked as initialized. Reviewers: vitalybuka Subscribers: kubamracek, llvm-commits Differential Revision: https://reviews.llvm.org/D37367 llvm-svn: 312576
* [tsan]: Fix GNU version of strerror_r interceptorVitaly Buka2017-06-071-0/+18
| | | | | | | | | | GNU version of strerror_r returns a result pointer that doesn't match the input buffer. The result pointer is in fact a pointer to some internal storage. TSAN was recording a write to this location, which was incorrect. Fixed https://github.com/google/sanitizers/issues/696 llvm-svn: 304858
* [msan] Make test to fall-back to IPv6 if IPv4 is not available.Vitaly Buka2017-04-101-9/+22
| | | | | | | | | | Reviewers: eugenis Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D31896 llvm-svn: 299862
* Replace "|&" with "2>&1 |" to support bash pre-4Evgeniy Stepanov2016-12-062-2/+2
| | | | | | | | | | | | | | Summary: Old bash release (3.2) on SLES11 chokes on new redirection shortcut. Patch by Brian Cain. Reviewers: eugenis Subscribers: llvm-commits, kubabrecka Differential Revision: https://reviews.llvm.org/D27443 llvm-svn: 288854
* [MSAN][MIPS] Fix test Linux/syscalls_sigaction.cc on mips64Sagar Thakur2016-11-111-0/+8
| | | | | | | | | Changed the kernel sigaction structure in test syscalls_sigaction.cc for MIPS according to the structure defined in kernel. Reviewed by eugenis. Differential: https://reviews.llvm.org/D25814 llvm-svn: 286583
* [sanitizer] Add interceptor for ttyname_rKeno Fischer2016-09-091-0/+6
| | | | | | | | | | Reviewers: eugenis Subscribers: kubabrecka, llvm-commits Differential Revision: https://reviews.llvm.org/D24375 llvm-svn: 281116
* [mips][msan] Fix all the XPASSes following r278793 and r278795Daniel Sanders2016-08-1821-42/+0
| | | | | | | All msan tests are now passing for mipsel and mips64el except for allocator_mapping.cc which is marked unsupported. llvm-svn: 279048
* [msan] Correct @LINE expression in obstack.ccDaniel Sanders2016-08-151-1/+3
| | | | | | | | | | | | | | | Summary: [[@LINE-30]] only worked because the resulting 3 matches the first character of 30. With the additional blank lines the resulting 5 no longer matches 30. Reviewers: eugenis Subscribers: eugenis, llvm-commits Differential Revision: https://reviews.llvm.org/D23515 llvm-svn: 278715
* [mips] XFAIL mips64el tests that fail on clang-cmake-mipselDaniel Sanders2016-08-155-1/+9
| | | | | | | | | | | | | | These tests were recently enabled and have never worked on this builder. Three tests were sensitive to line number changes: test/msan/Linux/obstack.cc test/msan/chained_origin.cc test/msan/chained_origin_memcpy.cc and this sensitivity will be addressed in a follow-up patch. Of these, obstack.cc's sensitivity to line numbers is unexplained since it already uses [[@LINE]]. llvm-svn: 278671
* [mips] Remove obstack.cc XFAIL added in r278504 since it broke X86 and PPC ↵Daniel Sanders2016-08-121-2/+0
| | | | | | | | | | | somehow. Adding the XFAIL has caused msan to report a different line number in the call stack (@LINE-3 rather than @LINE-30). The new line number looks more correct at first glance since it's the line that uses uninitialized memory rather than the first non-whitespace line of the file but this needs investigating. llvm-svn: 278516
* [mips] XFAIL the new mips64el compiler-rt tests that fail on clang-cmake-mipsel.Daniel Sanders2016-08-1217-0/+35
| | | | | | | | | | | | | | The mips64el compiler-rt build has recently been enabled. XFAIL the failing tests to make the buildbot green again. The two asan tests require the integrated assembler. This will be fixed soon for Debian mips64el but not for any other mips64el targets since doing so requires triple-related issues to be fixed.. The msan tests are largely failing because caused by a kernel update (a patch has already been posted for this). I'm not sure why the dfsan test fails yet. llvm-svn: 278504
* [msan] Fix handling of padding in sendmsg control data.Evgeniy Stepanov2016-06-281-0/+101
| | | | llvm-svn: 274074
* [msan] Intercept eventfd_read, eventfd_write.Evgeniy Stepanov2016-06-241-0/+18
| | | | llvm-svn: 273748
* [sanitizer] Add syscall handlers for sigaction and rt_sigaction.Evgeniy Stepanov2016-06-241-0/+40
| | | | llvm-svn: 273746
* [msan] Fix syscall handlers for pipe, pipe2, socketpair.Evgeniy Stepanov2016-06-241-1/+13
| | | | | | These syscalls write two file descriptors into the output buffer, not one. llvm-svn: 273728
* [msan] Don't check dstaddr in sendto() interceptor.Evgeniy Stepanov2016-06-201-16/+7
| | | | | | | | Dstaddr may contain uninitialized padding at the end (common implementations accept larger addrlen and ignore the extra bytes). Also, depending on the socket state, dstaddr argument may be ignored. llvm-svn: 273205
* [msan] Allow uninitialized padding in struct msghdr.Evgeniy Stepanov2016-06-201-1/+3
| | | | llvm-svn: 273204
* Hide send/sendto/sendmsg interptors under a flag.Evgeniy Stepanov2016-06-201-0/+7
| | | | | | | A runtime flag to enable checking in send* interceptors. Checking is enabled by default. llvm-svn: 273174
* [msan] Intercept send/sendto/sendmsg.Evgeniy Stepanov2016-06-171-0/+83
| | | | | | send/sendmsg moved from tsan to sanitizer_common; sendto is new. llvm-svn: 272980
* [MSan] fix process_vm_readv test: Exit silently if syscall is not implemetedMohit K. Bhakkad2016-02-241-7/+15
| | | | | | | | | | Reviewers: eugenis Subscribers: jaydeep, sagar, llvm-commits Differential Revision: http://reviews.llvm.org/D17560 llvm-svn: 261723
* [msan] Yet another attempt to fix process_vm_readv test.Evgeniy Stepanov2015-10-271-3/+8
| | | | llvm-svn: 251372
* [msan] Fix process_vm_readv test.Evgeniy Stepanov2015-10-261-8/+4
| | | | | | | The check for the glibc version was not working as expected (dlsym was finding the interceptor instead of the libc implementation). llvm-svn: 251345
* [msan] Re-submit test for process_vm_readv.Evgeniy Stepanov2015-10-231-0/+66
| | | | | | | Includes a workaround for glibc < 2.15, which does not provide the function under test. llvm-svn: 251079
* [msan] Temporarily remove a failing test to fix the bot.Evgeniy Stepanov2015-10-221-43/+0
| | | | | | The test requires a newer glibc version that the one on the bot. llvm-svn: 251077
* [msan] Intercept process_vm_readv/writev.Evgeniy Stepanov2015-10-221-0/+43
| | | | llvm-svn: 251059
* [msan] Intercept mincore.Evgeniy Stepanov2015-10-191-0/+36
| | | | llvm-svn: 250761
* Disable final MSAN test in AArch64 to get the bots greenRenato Golin2015-09-181-0/+1
| | | | llvm-svn: 248014
* Remove forkpty test with -Wl,-as-needed. This currently breaks inDaniel Jasper2015-08-191-1/+0
| | | | | | | various places. Let me know if you need more details about a reproduction. llvm-svn: 245417
* [msan] Intercept openpty and forkpty.Evgeniy Stepanov2015-08-181-0/+19
| | | | llvm-svn: 245345
* [Sanitizer] Fix fopencookie() interceptor to work with null hook functions.Alexey Samsonov2015-07-141-0/+6
| | | | llvm-svn: 242193
* [msan] Intercept fopencookie.Evgeniy Stepanov2015-06-191-0/+59
| | | | | | https://code.google.com/p/memory-sanitizer/issues/detail?id=86 llvm-svn: 240107
* [Msan] Make the obstack.cc test Linux-specificViktor Kutuzov2015-05-081-0/+37
| | | | | | Differential Revision: http://reviews.llvm.org/D9552 llvm-svn: 236831
* [Msan] Make the mallinfo.cc test Linux-specificViktor Kutuzov2015-05-071-0/+12
| | | | | | Differential Revision: http://reviews.llvm.org/D9461 llvm-svn: 236718
* [Msan] Make the ioctl_sound.cc test Linux-specificViktor Kutuzov2015-05-071-0/+29
| | | | | | Differential Revision: http://reviews.llvm.org/D9460 llvm-svn: 236717
* [MSan] Remove explicit -m64 from RUN lines.Alexey Samsonov2015-03-0210-27/+27
| | | | | | Target-specific flags should usually be configured by CMake/lit. llvm-svn: 230999
* [msan] Fix wrong array index in io_submit interceptor.Evgeniy Stepanov2014-09-081-7/+15
| | | | llvm-svn: 217362
* Add %run to all lit testsGreg Fitzgerald2014-04-3010-27/+27
| | | | llvm-svn: 207709
OpenPOWER on IntegriCloud