[PATCH] D40932: Hardware-assisted AddressSanitizer (llvm part).

Evgenii Stepanov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 6 16:57:34 PST 2017


eugenis created this revision.
Herald added subscribers: hiraditya, eraman, javed.absar, mgorny, mehdi_amini, srhines.

This is LLVM instrumentation for the new HWASan tool. It is basically
a stripped down copy of ASan at this point, w/o stack or global
support. Instrumenation adds a global constructor + runtime callbacks
for every load and store.

HWASan comes with its own IR attribute.

A brief design document can be found in
clang/docs/HardwareAssistedAddressSanitizerDesign.rst (submitted earlier).


https://reviews.llvm.org/D40932

Files:
  llvm/include/llvm/Bitcode/LLVMBitCodes.h
  llvm/include/llvm/IR/Attributes.td
  llvm/include/llvm/InitializePasses.h
  llvm/include/llvm/Transforms/Instrumentation.h
  llvm/lib/Analysis/MemoryDependenceAnalysis.cpp
  llvm/lib/Analysis/ValueTracking.cpp
  llvm/lib/AsmParser/LLLexer.cpp
  llvm/lib/AsmParser/LLParser.cpp
  llvm/lib/AsmParser/LLToken.h
  llvm/lib/Bitcode/Reader/BitcodeReader.cpp
  llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
  llvm/lib/CodeGen/ShrinkWrap.cpp
  llvm/lib/IR/Attributes.cpp
  llvm/lib/IR/Verifier.cpp
  llvm/lib/Transforms/IPO/ForceFunctionAttrs.cpp
  llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
  llvm/lib/Transforms/Instrumentation/CMakeLists.txt
  llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp
  llvm/lib/Transforms/Instrumentation/Instrumentation.cpp
  llvm/lib/Transforms/Scalar/GVN.cpp
  llvm/test/Bitcode/attributes.ll
  llvm/test/Instrumentation/HWAddressSanitizer/atomic.ll
  llvm/test/Instrumentation/HWAddressSanitizer/basic.ll
  llvm/test/Transforms/GVN/no_speculative_loads_with_asan.ll
  llvm/test/Transforms/Inline/attributes.ll
  llvm/test/Transforms/InstCombine/lifetime-asan.ll
  llvm/test/Transforms/NewGVN/no_speculative_loads_with_asan.ll
  llvm/test/Transforms/SimplifyCFG/no_speculative_loads_with_asan.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D40932.125849.patch
Type: text/x-patch
Size: 37911 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171207/3a01090a/attachment-0001.bin>


More information about the llvm-commits mailing list