[PATCH] D36839: [SanitizerCoverage] Add stack depth tracing instrumentation.
Matt Morehouse via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 17 10:38:51 PDT 2017
morehouse created this revision.
Herald added subscribers: hiraditya, kubamracek.
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 __sanitizer_cov_lowest_stack
https://reviews.llvm.org/D36839
Files:
clang/include/clang/Driver/CC1Options.td
clang/include/clang/Frontend/CodeGenOptions.def
clang/lib/CodeGen/BackendUtil.cpp
clang/lib/Driver/SanitizerArgs.cpp
clang/lib/Frontend/CompilerInvocation.cpp
compiler-rt/test/sanitizer_common/TestCases/sanitizer_coverage_stack_depth.cc
llvm/include/llvm/Transforms/Instrumentation.h
llvm/lib/Fuzzer/FuzzerTracePC.cpp
llvm/lib/Fuzzer/FuzzerTracePC.h
llvm/lib/Transforms/Instrumentation/SanitizerCoverage.cpp
llvm/test/Instrumentation/SanitizerCoverage/stack-depth.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D36839.111534.patch
Type: text/x-patch
Size: 15436 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170817/60bef080/attachment.bin>
More information about the cfe-commits
mailing list