| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
| |
Summary: Code is already in compiler-rt
Reviewers: kcc
Subscribers: krytarowski, llvm-commits, hiraditya
Differential Revision: https://reviews.llvm.org/D38912
llvm-svn: 315937
|
|
|
|
|
|
|
|
|
| |
This is because lib/Fuzzer doesn't really depend on llvm infrastucture.
It's not easy to access the llvm hardware_concurrency here.
Differential Reivision: https://reviews.llvm.org/D38481
llvm-svn: 314870
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The issue with std::thread::hardware_concurrency is that it forwards
to libc and some implementations (like glibc) don't take thread
affinity into consideration.
With this change a llvm program that can execute in only 2 cores will
use 2 threads, even if the machine has 32 cores.
This makes benchmarking a lot easier, but should also help if someone
doesn't want to use all cores for compilation for example.
llvm-svn: 314809
|
|
|
|
|
|
|
|
|
| |
This change only removes libFuzzer tests and CMake machinery,
the source copy temporarily remains at the old location.
Differential Revision: https://reviews.llvm.org/D36980
llvm-svn: 311405
|
|
|
|
|
|
|
|
| |
Do not compile libFuzzer itself with coverage, regardless of LLVM variables
Differential Revision: https://reviews.llvm.org/D36887
llvm-svn: 311374
|
|
|
|
| |
llvm-svn: 311294
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary:
Augment SanitizerCoverage to insert maximum stack depth tracing for
use by libFuzzer. The new instrumentation is enabled by the flag
-fsanitize-coverage=stack-depth and is compatible with the existing
trace-pc-guard coverage. The user must also declare the following
global variable in their code:
thread_local uintptr_t __sancov_lowest_stack
https://bugs.llvm.org/show_bug.cgi?id=33857
Reviewers: vitalybuka, kcc
Reviewed By: vitalybuka
Subscribers: kubamracek, hiraditya, cfe-commits, llvm-commits
Differential Revision: https://reviews.llvm.org/D36839
llvm-svn: 311186
|
|
|
|
|
|
|
|
| |
This allows including LLVMFuzzer as distribution component.
Differential Revision: https://reviews.llvm.org/D36540
llvm-svn: 310897
|
|
|
|
| |
llvm-svn: 310881
|
|
|
|
|
|
| |
test/dump_coverage.test; mark print_coverage/dump_coverage as To-be-deprecated
llvm-svn: 310877
|
|
|
|
|
|
| |
(fprofile-instr-generate), Linux-only
llvm-svn: 310771
|
|
|
|
| |
llvm-svn: 310750
|
|
|
|
|
|
|
|
|
|
| |
Added the _sanitizer_cov_trace_const_cmp[1248] callbacks.
For now they are implemented the same way as _sanitizer_cov_trace_cmp[1248].
For more details, please see https://reviews.llvm.org/D36465.
Patch by Victor Chibotaru.
llvm-svn: 310592
|
|
|
|
| |
llvm-svn: 310326
|
|
|
|
| |
llvm-svn: 310325
|
|
|
|
| |
llvm-svn: 310324
|
|
|
|
|
|
|
|
| |
Fixes regression from https://reviews.llvm.org/D36295
Differential Revision: https://reviews.llvm.org/D36428
llvm-svn: 310305
|
|
|
|
|
|
| |
to implement -exit_on_src_pos
llvm-svn: 310151
|
|
|
|
|
|
| |
captured at run-time
llvm-svn: 310148
|
|
|
|
| |
llvm-svn: 310126
|
|
|
|
| |
llvm-svn: 310113
|
|
|
|
| |
llvm-svn: 310110
|
|
|
|
| |
llvm-svn: 310106
|
|
|
|
|
|
| |
-DLIBFUZZER_ENABLE_TESTS=ON is set.
llvm-svn: 310100
|
|
|
|
| |
llvm-svn: 310091
|
|
|
|
|
|
| |
present.
llvm-svn: 310077
|
|
|
|
|
|
| |
Differential Revision: https://reviews.llvm.org/D36205
llvm-svn: 310076
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This revision ports all libFuzzer tests apart from the unittest to LIT.
The advantages of doing so include:
- Tests being self-contained
- Much easier debugging of a single test
- No need for using a two-stage compilation
The unit-test is still compiled using CMake, but it does not need a
freshly built compiler.
NOTE: The previous two-stage bot configuration will NOT work, as in the
second stage build LLVM_USE_SANITIZER is set, which disables ASAN from
being built.
Thus bots will be reconfigured in the next few commits.
Differential Revision: https://reviews.llvm.org/D36295
llvm-svn: 310075
|
|
|
|
|
|
| |
Differential Revision: https://reviews.llvm.org/D36297
llvm-svn: 310009
|
|
|
|
|
|
| |
Differential Revision: https://reviews.llvm.org/D36242
llvm-svn: 309982
|
|
|
|
|
|
|
|
| |
This reverts commit 3592d8049660dcdd07f7c2e797f2de9790f93111.
Breaks the bots, reverting for now.
llvm-svn: 309899
|
|
|
|
|
|
|
|
|
| |
LIT launches executables with absolute, and not relative, path.
strncmp would try to do exact comparison and fail.
Differential Revision: https://reviews.llvm.org/D36242
llvm-svn: 309889
|
|
|
|
|
|
| |
test/fuzzer-printcovpcs.test until this can be fixed on Windows
llvm-svn: 309716
|
|
|
|
|
|
| |
Inline8bitCounters
llvm-svn: 309647
|
|
|
|
| |
llvm-svn: 309646
|
|
|
|
|
|
| |
flags for one test (for now)
llvm-svn: 309615
|
|
|
|
|
|
| |
and faster)
llvm-svn: 309443
|
|
|
|
|
|
| |
cause false positives in msan. No tests for libFuzzer+msan yet -- tests will need to wait until we move libFuzzer to compiler-rt
llvm-svn: 309038
|
|
|
|
| |
llvm-svn: 308945
|
|
|
|
|
|
|
|
|
|
| |
tests""
This reverts commit 15425f2bc6eac6249ee957a2a280511306c07547.
Should work now that atos is a default symbolizer on Darwin.
llvm-svn: 308910
|
|
|
|
|
|
| |
max_len every time we failed to find new coverage during the last 1000 runs and 1 second. Also fix FileToVector to not load unfinished files
llvm-svn: 308811
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary:
Implements https://github.com/google/sanitizers/issues/835.
Flush stdout before exiting in test cases.
Since the atexit hook is used for exit reports, pending prints to
stdout can be lost if they aren't flushed before calling exit().
Expect tests to have non-zero exit code if exit() is called.
Reviewers: vitalybuka, kcc
Reviewed By: kcc
Subscribers: eraman, llvm-commits, hiraditya
Differential Revision: https://reviews.llvm.org/D35602
llvm-svn: 308669
|
|
|
|
| |
llvm-svn: 308663
|
|
|
|
|
|
| |
is saved to the corpus
llvm-svn: 308653
|
|
|
|
|
|
| |
(commented out; real implementation needs to use inlined instrumentation)
llvm-svn: 308577
|
|
|
|
|
|
| |
https://guidovranken.wordpress.com/2017/07/08/libfuzzer-gv-new-techniques-for-dramatically-faster-fuzzing/ (Stack-depth-guided fuzzing). libFuzzer does not solve it yet.
llvm-svn: 308571
|
|
|
|
| |
llvm-svn: 308568
|
|
|
|
| |
llvm-svn: 308560
|
|
|
|
|
|
| |
reduce_inputs=1 they are now fast enough even w/o this
llvm-svn: 308553
|
|
|
|
|
|
|
|
|
|
|
| |
The optional external function callbacks have to be exported in order
for them to be called. The test was failing because libFuzzer wasn't
calling LLVMFuzzerInitialize.
We can reconsider if this is the best way to mark these optional
callbacks exported later.
llvm-svn: 308548
|