[PATCH] D39155: [libFuzzer] Periodically purge allocator's quarantine to prolong fuzzing sessions.

Aleksey Shlyapnikov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 20 19:55:30 PDT 2017


alekseyshl created this revision.

Fuzzing targets that allocate/deallocate a lot of memory tend to consume
a lot of RSS when ASan quarantine is enabled. Purging quarantine between
iterations and returning memory to OS keeps RSS down and should not
reduce the quarantine effectiveness provided the fuzz target does not
preserve state between iterations (in this case this feature can be turned off).

Based on https://reviews.llvm.org/D39153.


https://reviews.llvm.org/D39155

Files:
  lib/fuzzer/FuzzerDriver.cpp
  lib/fuzzer/FuzzerExtFunctions.def
  lib/fuzzer/FuzzerFlags.def
  lib/fuzzer/FuzzerInternal.h
  lib/fuzzer/FuzzerLoop.cpp
  lib/fuzzer/FuzzerOptions.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D39155.119739.patch
Type: text/x-patch
Size: 4612 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171021/2e4ec3ab/attachment.bin>


More information about the llvm-commits mailing list