| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
| |
An upcoming change for ld in binutils 2.26 causes this test to
always fail.
llvm-svn: 270223
|
|
|
|
| |
llvm-svn: 269571
|
|
|
|
|
|
|
|
|
|
| |
In recovery mode, when ASan detects stack overflow (say, when infinite recursion detected),
it tries to continue program execution and hangs on repetitive error reports. There isn't any
sense to do it, we can just bail out on stack overflow error, because the program would crash soon anyway.
Differential Revision: http://reviews.llvm.org/D19958
llvm-svn: 268713
|
|
|
|
|
|
|
|
|
|
| |
On s390*-linux, sigcontext just doesn't contain any information that could
be used to recover the type of access, so there's no way to fix this, short
of emulating the faulting instruction.
Differential Revision: http://reviews.llvm.org/D19655
llvm-svn: 267960
|
|
|
|
|
|
| |
Differential Revision: http://reviews.llvm.org/D19134
llvm-svn: 267548
|
|
|
|
|
|
|
|
|
| |
This reverts commit r267477.
It broke our bots that enables the AArch64 backends, it seems that
this code is using a Darwin *X86 specific* field.
From: Mehdi Amini <mehdi.amini@apple.com>
llvm-svn: 267526
|
|
|
|
|
|
|
|
| |
Subscribers: kubabrecka
Differential Revision: http://reviews.llvm.org/D19495
llvm-svn: 267477
|
|
|
|
|
|
|
|
| |
With -fsized-deallocation, new[] vs delete mismatch is reported as
new-delete-type-mismatch. This is technically true, but
alloc-dealloc-mismatch describes it better.
llvm-svn: 266246
|
|
|
|
|
|
| |
Fixes PR27191
llvm-svn: 265322
|
|
|
|
|
|
| |
the Chrome security team)
llvm-svn: 264481
|
|
|
|
|
|
|
|
|
|
|
| |
Summary:
Adds another global to asan's odr_c_test to help force the target global to
not lie at the start of bss with the gold linker where it is always
aligned.
Patch by Derek Bruening!
llvm-svn: 262678
|
|
|
|
| |
llvm-svn: 262210
|
|
|
|
|
|
|
|
|
|
|
| |
This testcase failed on sanitizer-x86_64-linux buildbot in large parallel build due to race on
port 1234 between AddressSanitizer-i386-linux and AddressSanitizer-x86_64-linux instances of recvfrom.cc.
This patch tries to resolve the issue by relying on kernel to choose available port instead of hardcoding
its number in testcase.
Differential Revision: http://reviews.llvm.org/D17639
llvm-svn: 262204
|
|
|
|
|
|
|
|
|
|
|
| |
and recvfrom interceptors.
Pass res instead of len as third parameter to COMMON_INTERCEPTOR_WRITE_RANGE,
because otherwise we can write to unrelated memory (in MSan) or get wrong report (in ASan).
Differential Revision: http://reviews.llvm.org/D17608
llvm-svn: 261898
|
|
|
|
| |
llvm-svn: 261870
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Trying to fix following error on Android:
FAIL: AddressSanitizer-arm-android :: TestCases/Linux/recvfrom.cc (47 of 350)
...
Command Output (stderr):
--
/mnt/b/sanitizer-buildbot1/sanitizer-x86_64-linux/build/llvm/projects/compiler-rt/test/asan/TestCases/Linux/recvfrom.cc:22:22: error: variable has incomplete type 'struct sockaddr_in'
struct sockaddr_in serveraddr; // server's addr
^
/mnt/b/sanitizer-buildbot1/sanitizer-x86_64-linux/build/llvm/projects/compiler-rt/test/asan/TestCases/Linux/recvfrom.cc:22:10: note: forward declaration of 'sockaddr_in'
struct sockaddr_in serveraddr; // server's addr
^
/mnt/b/sanitizer-buildbot1/sanitizer-x86_64-linux/build/llvm/projects/compiler-rt/test/asan/TestCases/Linux/recvfrom.cc:29:38: error: use of undeclared identifier 'INADDR_ANY'
serveraddr.sin_addr.s_addr = htonl(INADDR_ANY);
^
/mnt/b/sanitizer-buildbot1/sanitizer-x86_64-linux/build/llvm/projects/compiler-rt/test/asan/TestCases/Linux/recvfrom.cc:30:25: error: use of undeclared identifier 'htons'
serveraddr.sin_port = htons(kPortNum);
^
/mnt/b/sanitizer-buildbot1/sanitizer-x86_64-linux/build/llvm/projects/compiler-rt/test/asan/TestCases/Linux/recvfrom.cc:45:22: error: variable has incomplete type 'struct sockaddr_in'
struct sockaddr_in serveraddr; // server's addr
^
/mnt/b/sanitizer-buildbot1/sanitizer-x86_64-linux/build/llvm/projects/compiler-rt/test/asan/TestCases/Linux/recvfrom.cc:45:10: note: forward declaration of 'sockaddr_in'
struct sockaddr_in serveraddr; // server's addr
^
/mnt/b/sanitizer-buildbot1/sanitizer-x86_64-linux/build/llvm/projects/compiler-rt/test/asan/TestCases/Linux/recvfrom.cc:69:25: error: use of undeclared identifier 'htons'
serveraddr.sin_port = htons(kPortNum);
llvm-svn: 261855
|
|
|
|
|
|
|
|
|
| |
This patch moves recv and recvfrom interceptors from MSan and TSan to
sanitizer_common to enable them in ASan.
Differential Revision: http://reviews.llvm.org/D17479
llvm-svn: 261841
|
|
|
|
|
|
|
|
|
|
| |
Test cases definitely should not care about the complete set of architectures
supported by compiler-rt - they should only care about current
architecture that the test suite was configured for.
Introduce new lit feature to reflect this, and convert tests to use it.
llvm-svn: 261603
|
|
|
|
| |
llvm-svn: 261362
|
|
|
|
|
|
|
| |
We are not able to recover coverage points from dynamically linked
binaries at this point without symbols in @plt tables.
llvm-svn: 261352
|
|
|
|
| |
llvm-svn: 261157
|
|
|
|
| |
llvm-svn: 260717
|
|
|
|
|
|
|
|
|
|
| |
Updating sancov invocation on html_cov_dump.
sancov change: http://reviews.llvm.org/D17169
Differential Revision: http://reviews.llvm.org/D17171
llvm-svn: 260629
|
|
|
|
| |
llvm-svn: 260327
|
|
|
|
| |
llvm-svn: 260163
|
|
|
|
| |
llvm-svn: 260128
|
|
|
|
|
|
| |
sanitizer-x86_64-linux buildbot.
llvm-svn: 260090
|
|
|
|
|
|
| |
https://llvm.org/bugs/show_bug.cgi?id=26525.
llvm-svn: 260079
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
indicator symbols.
This is a compiler-rt part of this http://reviews.llvm.org/D15642 patch. Here,
we add a new approach for ODR violation detection.
Instead of using __asan_region_is_poisoned(g->beg, g->size_with_redzone) on
global address (that would return false now due to using private alias), we can
use new globally visible indicator symbol to perform the check.
Differential Revision: http://reviews.llvm.org/D15644
llvm-svn: 260076
|
|
|
|
| |
llvm-svn: 259979
|
|
|
|
| |
llvm-svn: 259745
|
|
|
|
|
|
| |
READ or a WRITE. This touches win/mac files which I have not tested, if a win/mac bot fails I'll try to quick-fix
llvm-svn: 259741
|
|
|
|
| |
llvm-svn: 259012
|
|
|
|
| |
llvm-svn: 259006
|
|
|
|
| |
llvm-svn: 259004
|
|
|
|
|
|
|
| |
ASan does not really do anything interesting with mincore, but this
test verifies that the function still works correctly.
llvm-svn: 256207
|
|
|
|
|
|
|
|
|
|
| |
Calloc interceptor initially allocates memory from temp buffer (to serve dlsyms called during asan_init). There is a chance that some non-instrumented library (or executable) has allocated memory with calloc before asan_init and got pointer from the same temporary buffer which later caused problems with free.
Inspired by https://github.com/google/sanitizers/issues/626
Differential Revision: http://reviews.llvm.org/D14979
llvm-svn: 254395
|
|
|
|
| |
llvm-svn: 253342
|
|
|
|
| |
llvm-svn: 253204
|
|
|
|
| |
llvm-svn: 253037
|
|
|
|
| |
llvm-svn: 253035
|
|
|
|
| |
llvm-svn: 253025
|
|
|
|
| |
llvm-svn: 253021
|
|
|
|
|
|
| |
Android libc is missing rand_r until API 21. ASan supports API 19.
llvm-svn: 252930
|
|
|
|
| |
llvm-svn: 252805
|
|
|
|
| |
llvm-svn: 252742
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary: This is enough to get the asan static_tls.cc test case working.
Reviewers: eugenis, samsonov
Subscribers: llvm-commits
Differential Revision: http://reviews.llvm.org/D14574
llvm-svn: 252738
|
|
|
|
|
|
| |
Differential Revision: http://reviews.llvm.org/D14241
llvm-svn: 252729
|
|
|
|
|
|
| |
Differential Revision: http://reviews.llvm.org/D12318
llvm-svn: 252723
|
|
|
|
|
|
|
| |
It was recently enabled for non-x86 targets and doesn't seem to work for MIPS.
The reason is currently unclear so XFAILing while I investigate.
llvm-svn: 251466
|