summaryrefslogtreecommitdiff
path: root/lib/asan/lit_tests/TestCases/Linux
Commit message (Collapse)AuthorAge
* [ASan] Disable back init-order checker. Make strict_init_order imply ↵Alexey Samsonov2013-11-06
| | | | | | check_initialization_order git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@194125 91177308-0d34-0410-b5e6-96231b3b80d8
* Add a CMake option COMPILER_RT_DEBUG for building runtimes with full debug info.Peter Collingbourne2013-10-25
| | | | | | Differential Revision: http://llvm-reviews.chandlerc.com/D1984 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193449 91177308-0d34-0410-b5e6-96231b3b80d8
* [ASan] Make test from r192581 Linux-only, as wild memory contents is less ↵Alexey Samsonov2013-10-15
| | | | | | predictable on Mac git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192677 91177308-0d34-0410-b5e6-96231b3b80d8
* [asan] remove -fsanitize=use-after-return from the tests (this flag now ↵Kostya Serebryany2013-09-23
| | | | | | comes with asan by default) git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@191204 91177308-0d34-0410-b5e6-96231b3b80d8
* [asan] disable the detect_stack_use_after_return run-time flag by default ↵Kostya Serebryany2013-09-23
| | | | | | and enable it explicitly in tests. This is done in preparation to enabling the -fsanitize=use-after-return compile-time flag by default when -fsanitize=address is present. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@191184 91177308-0d34-0410-b5e6-96231b3b80d8
* [asan] hopefully make the FakeStack async-signal safe, enable the related testKostya Serebryany2013-09-12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190592 91177308-0d34-0410-b5e6-96231b3b80d8
* [asan] refactor the use-after-return API so that the size class is computed ↵Kostya Serebryany2013-09-10
| | | | | | at compile time instead of at run-time. compiler-rt part git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190406 91177308-0d34-0410-b5e6-96231b3b80d8
* [ASan] turn on leak checking for ASan tests and fix a few discovered leaksAlexey Samsonov2013-09-08
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190274 91177308-0d34-0410-b5e6-96231b3b80d8
* [sanitizer] A bunch of linux system call handlers.Evgeniy Stepanov2013-09-06
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190157 91177308-0d34-0410-b5e6-96231b3b80d8
* [asan] add a test that demonstrates why the current use-after-return is not ↵Kostya Serebryany2013-09-04
| | | | | | signal-safe git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189943 91177308-0d34-0410-b5e6-96231b3b80d8
* Enable pipefail for ASan testsAlexey Samsonov2013-08-07
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@187877 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix a veritable conucopia of bugs in the readdir_r interceptors.Chandler Carruth2013-07-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | First, the reason I came here: I forgot to look at readdir64_r which had the exact same bug as readdir_r. However, upon applying the same quick-fix and testing it I discovered that it still didn't work at all. As a consequence, I spent some time studying the code and thinking about it and fixed several other problems. Second, the code was checking for a null entry and result pointer, but there is no indication that null pointers are viable here. Certainly, the spec makes it extremely clear that there is no non-error case where the implementation of readdir_r fails to dereference the 'result' pointer and store NULL to it. Thus, our checking for a non-null 'result' pointer before reflecting that write in the instrumentation was trivially dead. Remove it. Third, the interceptor was marking the write to the actual dirent struct by looking at the entry pointer, but nothing in the spec requires that the dirent struct written is actually written into the entry structure provided. A threadlocal buffer would be just as conforming, and the spec goes out of its way to say the pointer to the *actual* result dirent struct is stored into *result, so *that* is where the interceptor should reflect a write occuring. This also obviates the need to even consider whether the 'entry' parameter is null. Fourth, I got to the bottom of why nothing at all worked in readdir64_r -- the interceptor structure for dirent64 was completely wrong in that it was the same as dirent. I fixed this struct to be correct (64-bit inode and 64-bit offset! just a 64-bit offset isn't enough!) and added several missing tests for the size and layout of this struct. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@186109 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix a bug in the readdir_r interceptor: when we reach the end of theChandler Carruth2013-07-10
| | | | | | | | | | | | | | | | | | directory stream, the entry is not written to, instead *result is set to NULL and the entry is not written to at all. I'm still somewhat suspicious of the correct instrumention here -- I feel like it should be marking the written range as the pointer in *result and the length (*result)->d_reclen in case the implementation decides not to use the passed-in entry (if that's even allowed). Finally, the definition of 'struct dirent' analog used in the interceptor is wrong in 32-bit mode with _FILE_OFFSET_BITS=64 as it hard codes the use of a pointer-sized offset. I've added a somewhat goofy test for the bug I fixed via ASan -- suggestions on how to better test the interceptor logic itself welcome. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185998 91177308-0d34-0410-b5e6-96231b3b80d8
* [ASan] Remove leading underscores from function names in output testsAlexey Samsonov2013-07-01
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185315 91177308-0d34-0410-b5e6-96231b3b80d8
* [ASan] Remove %symbolize from lit tests: we now use external symbolizer ↵Alexey Samsonov2013-06-28
| | | | | | instead of python script git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185163 91177308-0d34-0410-b5e6-96231b3b80d8
* [sanitizer] Intercept ptrace.Evgeniy Stepanov2013-06-28
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185142 91177308-0d34-0410-b5e6-96231b3b80d8
* Add cmake rules for building LSan common on Mac OSAlexey Samsonov2013-06-22
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@184639 91177308-0d34-0410-b5e6-96231b3b80d8
* [ASan] make test for LSan annotations Linux-only for nowAlexey Samsonov2013-06-21
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@184541 91177308-0d34-0410-b5e6-96231b3b80d8
* [ASan] create separate configs for running ASan lit tests in both 32- and ↵Alexey Samsonov2013-06-07
| | | | | | 64-bit mode. Clean up RUN-lines in tests. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@183498 91177308-0d34-0410-b5e6-96231b3b80d8
* [ASan] move all lit_tests under TestCasesAlexey Samsonov2013-06-06
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@183395 91177308-0d34-0410-b5e6-96231b3b80d8