summaryrefslogtreecommitdiff
path: root/test/dfsan
AgeCommit message (Collapse)Author
2018-06-01Add weak definitions of trace-cmp hooks to dfsanKostya Serebryany
Summary: This allows to build and link the code with e.g. -fsanitize=dataflow -fsanitize-coverage=trace-pc-guard,pc-table,func,trace-cmp w/o providing (all) the definitions of trace-cmp hooks. This is similar to dummy hooks provided by asan/ubsan/msan for the same purpose, except that some of the hooks need to have the __dfsw_ prefix since we need dfsan to replace them. Reviewers: pcc Reviewed By: pcc Subscribers: delcypher, #sanitizers, llvm-commits Differential Revision: https://reviews.llvm.org/D47605 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@333796 91177308-0d34-0410-b5e6-96231b3b80d8
2018-04-06[compiler-rt][dfsan][mips] UnXPASS a consistently passing testSimon Dardis
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@329422 91177308-0d34-0410-b5e6-96231b3b80d8
2017-05-09[mips] XFAIL dfsan's custom.cc test on mips64.Simon Dardis
Test was already marked as failing for mips64el. Now that it's being tested on mips64, it has to be XFAILed there as well. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@302570 91177308-0d34-0410-b5e6-96231b3b80d8
2016-12-09[DFSAN] Another unstable test in AArch64 breaking bots unnecessarilyRenato Golin
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@289253 91177308-0d34-0410-b5e6-96231b3b80d8
2016-11-29[sanitizer] Add macOS minimum deployment target to all compiler invocations ↵Kuba Mracek
in lit tests The Clang driver on macOS decides the deployment target based on various things, like your host OS version, the SDK version and some environment variables, which makes lit tests pass or fail based on your environment. Let's make sure we run all lit tests with `-mmacosx-version-min=${SANITIZER_MIN_OSX_VERSION}` (10.9 unless overriden). Differential Revision: https://reviews.llvm.org/D26929 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@288186 91177308-0d34-0410-b5e6-96231b3b80d8
2016-08-12[mips] XFAIL the new mips64el compiler-rt tests that fail on clang-cmake-mipsel.Daniel Sanders
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. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@278504 91177308-0d34-0410-b5e6-96231b3b80d8
2016-07-11[compiler-rt] Fix VisualStudio virtual folders layoutEtienne Bergeron
Summary: This patch is a refactoring of the way cmake 'targets' are grouped. It won't affect non-UI cmake-generators. Clang/LLVM are using a structured way to group targets which ease navigation through Visual Studio UI. The Compiler-RT projects differ from the way Clang/LLVM are grouping targets. This patch doesn't contain behavior changes. Reviewers: kubabrecka, rnk Subscribers: wang0109, llvm-commits, kubabrecka, chrisha Differential Revision: http://reviews.llvm.org/D21952 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@275111 91177308-0d34-0410-b5e6-96231b3b80d8
2016-04-16Replace hardcoded comment at 'lit.site.cfg.in'Alex Denisov
At the moment almost every lit.site.cfg.in contains two lines comment: ## Autogenerated by LLVM/Clang configuration. # Do not edit! The patch adds variable LIT_SITE_CFG_IN_HEADER, that is replaced from configure_lit_site_cfg with the note and some useful information. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@266520 91177308-0d34-0410-b5e6-96231b3b80d8
2016-03-09[DFSan] Fix test_inet_pton for big endian archsMohit K. Bhakkad
Reviewers: samsonov Subscribers: ed, jaydeep, sagar, llvm-commits Differential Revision: http://reviews.llvm.org/D17751 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@263001 91177308-0d34-0410-b5e6-96231b3b80d8
2016-02-23[tests] Always specify correct config.target_arch when configuring test suite.Alexey Samsonov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@261601 91177308-0d34-0410-b5e6-96231b3b80d8
2016-02-09[dfsan] Run the tests for each supported arch and suffix each one to ↵Daniel Sanders
distinguish them. Summary: Previously, the tests only ran for the 64-bit equivalent of the default target (see -m64). Given the supported architecture list only contains 64-bit targets, this happens to work out the same as the supported targets in most cases but may matter for X86_64/X86_64h on Darwin. For other targets, the practical effect is that the test names contain the architecture. This resolves some confusion when msan tests fail since their name no longer implies that they are trying to test the default target. Reviewers: samsonov Subscribers: tberghammer, danalbert, llvm-commits, srhines Differential Revision: http://reviews.llvm.org/D16856 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@260231 91177308-0d34-0410-b5e6-96231b3b80d8
2015-07-31[AArch64|DFSAN] XPASS custom.cc, as it got fixed by r243686Renato Golin
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@243743 91177308-0d34-0410-b5e6-96231b3b80d8
2015-07-30[dfsan] Enable dfsan for aarch64Adhemerval Zanella
This patch enable DFSan for AArch64 (39-bit VMA). All tests are passing but: * test/dfsan/custom.cc Due an invalid access in dl_iterate_phdr instrumentation (commenting out this function make the testcase to pass). The test is XFAIL for aarch64 for now. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@243688 91177308-0d34-0410-b5e6-96231b3b80d8
2015-04-10Extend s{,n}printf custom wrappers to support '*' in the format specifiersLorenzo Martignoni
Differential Revision: http://reviews.llvm.org/D8966 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@234633 91177308-0d34-0410-b5e6-96231b3b80d8
2015-04-09Revert r234477, "Differential Revision: http://reviews.llvm.org/D7249"Peter Collingbourne
Should unbreak fuzzer buildbot. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@234542 91177308-0d34-0410-b5e6-96231b3b80d8
2015-04-09Differential Revision: http://reviews.llvm.org/D7249Lorenzo Martignoni
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@234477 91177308-0d34-0410-b5e6-96231b3b80d8
2015-03-02[DFSan] Remove explicit -m64 from RUN lines.Alexey Samsonov
Target-specific flags should usually be configured by CMake/lit. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@230997 91177308-0d34-0410-b5e6-96231b3b80d8
2014-11-20[DFSan] Add flag to dump the labels when the program terminates.Lorenzo Martignoni
Differential Revision: http://reviews.llvm.org/D6306 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@222425 91177308-0d34-0410-b5e6-96231b3b80d8
2014-11-05[dfsan] Add runtime function for aborting on indirect calls toPeter Collingbourne
uninstrumented vararg functions. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@221364 91177308-0d34-0410-b5e6-96231b3b80d8
2014-10-30Update __dfsw_s{,n}printf custom functions for new calling convention.Peter Collingbourne
Differential Revision: http://reviews.llvm.org/D6029 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@220907 91177308-0d34-0410-b5e6-96231b3b80d8
2014-10-08Custom wrappers for DFSanitizing sprintf & snprintf.Lorenzo Martignoni
Differential Revision: http://reviews.llvm.org/D5561 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@219293 91177308-0d34-0410-b5e6-96231b3b80d8
2014-06-04[dfsan] Fix the declaration of dfsan_add_label.Peter Collingbourne
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@210202 91177308-0d34-0410-b5e6-96231b3b80d8
2014-04-30Add %run to all lit testsGreg Fitzgerald
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@207709 91177308-0d34-0410-b5e6-96231b3b80d8
2014-04-24Add user-defined callback on write() calls.Peter Collingbourne
Add dfsan_set_write_callback(), which sets a callback to be invoked when a write() call is invoked within DFSan instrumented code. Patch by Sam Kerner! Differential Revision: http://reviews.llvm.org/D3268 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@207131 91177308-0d34-0410-b5e6-96231b3b80d8
2014-03-26Add function to get the number of DFSan labels allocated.Peter Collingbourne
Expose the number of DFSan labels allocated by adding function dfsan_get_label_count(). Patch by Sam Kerner! Differential Revision: http://llvm-reviews.chandlerc.com/D3109 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@204854 91177308-0d34-0410-b5e6-96231b3b80d8
2014-02-20[CMake] lit tests shouldn't depend on runtimes in standalone buildAlexey Samsonov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201771 91177308-0d34-0410-b5e6-96231b3b80d8
2014-02-19Add rudimentary support for running compiler-rt lit tests with GCCAlexey Samsonov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201680 91177308-0d34-0410-b5e6-96231b3b80d8
2014-02-17Simplify defining Clang compile flags in lit configsAlexey Samsonov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201513 91177308-0d34-0410-b5e6-96231b3b80d8
2014-02-14Move DFSan test suite under test/Alexey Samsonov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201403 91177308-0d34-0410-b5e6-96231b3b80d8