summaryrefslogtreecommitdiffstats
path: root/compiler-rt/test/dfsan
Commit message (Collapse)AuthorAgeFilesLines
* compiler-rt: Rename .cc file in test/dfsan to cppNico Weber2019-08-052-1/+1
| | | | | | See r367849 et al. llvm-svn: 367854
* [compiler-rt] Rename lit.*.cfg.* -> lit.*.cfg.py.*Reid Kleckner2019-06-273-3/+3
| | | | | | | | | | | | | 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
* [dfsan] Introduce dfsan_flush().Kostya Serebryany2019-06-131-0/+28
| | | | | | | | | | | | | | | | | | | Summary: dfsan_flush() allows to restart tain tracking from scratch in the same process. The primary purpose right now is to allow more efficient data flow tracing for DFT fuzzing: https://github.com/google/oss-fuzz/issues/1632 Reviewers: pcc Reviewed By: pcc Subscribers: delcypher, #sanitizers, llvm-commits Tags: #llvm, #sanitizers Differential Revision: https://reviews.llvm.org/D63037 llvm-svn: 363321
* Experimantal dfsan mode "fast16labels=1"Kostya Serebryany2019-06-081-0/+25
| | | | | | | | | | | | | | | | | | Summary: dfsan mode "fast16labels=1". In this mode the labels are treated as 16-bit bit masks. Reviewers: pcc Reviewed By: pcc Subscribers: delcypher, #sanitizers, llvm-commits Tags: #llvm, #sanitizers Differential Revision: https://reviews.llvm.org/D62870 llvm-svn: 362859
* Add weak definitions of trace-cmp hooks to dfsanKostya Serebryany2018-06-011-0/+50
| | | | | | | | | | | | | | | | | | | | | 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 llvm-svn: 333796
* [compiler-rt][dfsan][mips] UnXPASS a consistently passing testSimon Dardis2018-04-061-2/+0
| | | | llvm-svn: 329422
* [mips] XFAIL dfsan's custom.cc test on mips64.Simon Dardis2017-05-091-1/+1
| | | | | | | Test was already marked as failing for mips64el. Now that it's being tested on mips64, it has to be XFAILed there as well. llvm-svn: 302570
* [DFSAN] Another unstable test in AArch64 breaking bots unnecessarilyRenato Golin2016-12-091-0/+1
| | | | llvm-svn: 289253
* [sanitizer] Add macOS minimum deployment target to all compiler invocations ↵Kuba Mracek2016-11-291-10/+1
| | | | | | | | | | 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 llvm-svn: 288186
* [mips] XFAIL the new mips64el compiler-rt tests that fail on clang-cmake-mipsel.Daniel Sanders2016-08-121-0/+2
| | | | | | | | | | | | | | 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
* [compiler-rt] Fix VisualStudio virtual folders layoutEtienne Bergeron2016-07-111-1/+1
| | | | | | | | | | | | | | | | | | | | 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 llvm-svn: 275111
* Replace hardcoded comment at 'lit.site.cfg.in'Alex Denisov2016-04-161-2/+1
| | | | | | | | | | | | 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. llvm-svn: 266520
* [DFSan] Fix test_inet_pton for big endian archsMohit K. Bhakkad2016-03-091-1/+1
| | | | | | | | | | Reviewers: samsonov Subscribers: ed, jaydeep, sagar, llvm-commits Differential Revision: http://reviews.llvm.org/D17751 llvm-svn: 263001
* [tests] Always specify correct config.target_arch when configuring test suite.Alexey Samsonov2016-02-232-3/+5
| | | | llvm-svn: 261601
* [dfsan] Run the tests for each supported arch and suffix each one to ↵Daniel Sanders2016-02-093-6/+37
| | | | | | | | | | | | | | | | | | | | | | | 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 llvm-svn: 260231
* [AArch64|DFSAN] XPASS custom.cc, as it got fixed by r243686Renato Golin2015-07-311-3/+0
| | | | llvm-svn: 243743
* [dfsan] Enable dfsan for aarch64Adhemerval Zanella2015-07-301-0/+3
| | | | | | | | | | | | | 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. llvm-svn: 243688
* Extend s{,n}printf custom wrappers to support '*' in the format specifiersLorenzo Martignoni2015-04-101-0/+5
| | | | | | Differential Revision: http://reviews.llvm.org/D8966 llvm-svn: 234633
* Revert r234477, "Differential Revision: http://reviews.llvm.org/D7249"Peter Collingbourne2015-04-091-5/+0
| | | | | | Should unbreak fuzzer buildbot. llvm-svn: 234542
* Differential Revision: http://reviews.llvm.org/D7249Lorenzo Martignoni2015-04-091-0/+5
| | | | llvm-svn: 234477
* [DFSan] Remove explicit -m64 from RUN lines.Alexey Samsonov2015-03-0210-25/+25
| | | | | | Target-specific flags should usually be configured by CMake/lit. llvm-svn: 230997
* [DFSan] Add flag to dump the labels when the program terminates.Lorenzo Martignoni2014-11-201-0/+69
| | | | | | Differential Revision: http://reviews.llvm.org/D6306 llvm-svn: 222425
* [dfsan] Add runtime function for aborting on indirect calls toPeter Collingbourne2014-11-051-0/+24
| | | | | | uninstrumented vararg functions. llvm-svn: 221364
* Update __dfsw_s{,n}printf custom functions for new calling convention.Peter Collingbourne2014-10-301-0/+5
| | | | | | Differential Revision: http://reviews.llvm.org/D6029 llvm-svn: 220907
* Custom wrappers for DFSanitizing sprintf & snprintf.Lorenzo Martignoni2014-10-081-9/+129
| | | | | | Differential Revision: http://reviews.llvm.org/D5561 llvm-svn: 219293
* [dfsan] Fix the declaration of dfsan_add_label.Peter Collingbourne2014-06-041-0/+7
| | | | llvm-svn: 210202
* Add %run to all lit testsGreg Fitzgerald2014-04-307-17/+17
| | | | llvm-svn: 207709
* Add user-defined callback on write() calls.Peter Collingbourne2014-04-242-0/+185
| | | | | | | | | | | 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 llvm-svn: 207131
* Add function to get the number of DFSan labels allocated.Peter Collingbourne2014-03-261-0/+75
| | | | | | | | | | 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 llvm-svn: 204854
* [CMake] lit tests shouldn't depend on runtimes in standalone buildAlexey Samsonov2014-02-201-3/+5
| | | | llvm-svn: 201771
* Add rudimentary support for running compiler-rt lit tests with GCCAlexey Samsonov2014-02-191-1/+1
| | | | llvm-svn: 201680
* Simplify defining Clang compile flags in lit configsAlexey Samsonov2014-02-171-7/+7
| | | | llvm-svn: 201513
* Move DFSan test suite under test/Alexey Samsonov2014-02-149-0/+930
llvm-svn: 201403
OpenPOWER on IntegriCloud