| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
Like r367463, but for test/msan.
llvm-svn: 367653
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
llvm-svn: 358145
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
llvm-svn: 355214
|
|
|
|
|
|
| |
Udev supports name_to_handle_at. Use /dev/null instead of /bin/cat.
llvm-svn: 354402
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
Reviewers: eugenis
Subscribers: llvm-commits
Differential Revision: https://reviews.llvm.org/D31896
llvm-svn: 299862
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
Reviewers: eugenis
Subscribers: kubabrecka, llvm-commits
Differential Revision: https://reviews.llvm.org/D24375
llvm-svn: 281116
|
|
|
|
|
|
|
| |
All msan tests are now passing for mipsel and mips64el except for
allocator_mapping.cc which is marked unsupported.
llvm-svn: 279048
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
llvm-svn: 274074
|
|
|
|
| |
llvm-svn: 273748
|
|
|
|
| |
llvm-svn: 273746
|
|
|
|
|
|
| |
These syscalls write two file descriptors into the output buffer, not one.
llvm-svn: 273728
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
llvm-svn: 273204
|
|
|
|
|
|
|
| |
A runtime flag to enable checking in send* interceptors.
Checking is enabled by default.
llvm-svn: 273174
|
|
|
|
|
|
| |
send/sendmsg moved from tsan to sanitizer_common; sendto is new.
llvm-svn: 272980
|
|
|
|
|
|
|
|
|
|
| |
Reviewers: eugenis
Subscribers: jaydeep, sagar, llvm-commits
Differential Revision: http://reviews.llvm.org/D17560
llvm-svn: 261723
|
|
|
|
| |
llvm-svn: 251372
|
|
|
|
|
|
|
| |
The check for the glibc version was not working as expected (dlsym
was finding the interceptor instead of the libc implementation).
llvm-svn: 251345
|
|
|
|
|
|
|
| |
Includes a workaround for glibc < 2.15, which does not provide the
function under test.
llvm-svn: 251079
|
|
|
|
|
|
| |
The test requires a newer glibc version that the one on the bot.
llvm-svn: 251077
|
|
|
|
| |
llvm-svn: 251059
|
|
|
|
| |
llvm-svn: 250761
|
|
|
|
| |
llvm-svn: 248014
|
|
|
|
|
|
|
| |
various places. Let me know if you need more details about a
reproduction.
llvm-svn: 245417
|
|
|
|
| |
llvm-svn: 245345
|
|
|
|
| |
llvm-svn: 242193
|
|
|
|
|
|
| |
https://code.google.com/p/memory-sanitizer/issues/detail?id=86
llvm-svn: 240107
|
|
|
|
|
|
| |
Differential Revision: http://reviews.llvm.org/D9552
llvm-svn: 236831
|
|
|
|
|
|
| |
Differential Revision: http://reviews.llvm.org/D9461
llvm-svn: 236718
|
|
|
|
|
|
| |
Differential Revision: http://reviews.llvm.org/D9460
llvm-svn: 236717
|
|
|
|
|
|
| |
Target-specific flags should usually be configured by CMake/lit.
llvm-svn: 230999
|
|
|
|
| |
llvm-svn: 217362
|
|
|
|
| |
llvm-svn: 207709
|