diff options
| author | Kostya Serebryany <kcc@google.com> | 2019-02-21 00:32:30 +0000 |
|---|---|---|
| committer | Kostya Serebryany <kcc@google.com> | 2019-02-21 00:32:30 +0000 |
| commit | 9c9a8a96d367ca086877bb2a59ece748c17c4986 (patch) | |
| tree | e1e73eb55fca25457f367a8f85b7a524867ec3ca /llvm/docs | |
| parent | 71f2a5e60f44e2e7bf868cb98e2c1aea39277fd8 (diff) | |
| download | bcm5719-llvm-9c9a8a96d367ca086877bb2a59ece748c17c4986.tar.gz bcm5719-llvm-9c9a8a96d367ca086877bb2a59ece748c17c4986.zip | |
[libFuzzer] document -fork=N
llvm-svn: 354533
Diffstat (limited to 'llvm/docs')
| -rw-r--r-- | llvm/docs/LibFuzzer.rst | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/llvm/docs/LibFuzzer.rst b/llvm/docs/LibFuzzer.rst index 36d52dba052..906375620f5 100644 --- a/llvm/docs/LibFuzzer.rst +++ b/llvm/docs/LibFuzzer.rst @@ -178,6 +178,28 @@ worker processes can be overridden by the ``-workers=N`` option. For example, running with ``-jobs=30`` on a 12-core machine would run 6 workers by default, with each worker averaging 5 bugs by completion of the entire process. +Fork mode +--------- + +**Experimental** mode ``-fork=N`` (where ``N`` is the number of parallel jobs) +enables oom-, timeout-, and crash-resistant +fuzzing with separate processes (using ``fork-exec``, not just ``fork``). + +The top libFuzzer process will not do any fuzzing itself, but will +spawn up to ``N`` concurrent child processes providing them +small random subsets of the corpus. After a child exits, the top process +merges the corpus generated by the child back to the main corpus. + +Related flags: +``-ignore_ooms`` + True by default. If an OOM happens during fuzzing in one of the child processes, + the reproducer is saved on disk, and fuzzing continues. +``-ignore_timeouts`` + True by default, same as ``-ignore_ooms``, but for timeouts. +``-ignore_crashes`` + False by default, same as ``-ignore_ooms``, but for all other crashes. + +The plan is to eventually replace ``-jobs=N`` and ``-workers=N`` with ``-fork=N``. Resuming merge -------------- |

