[PATCH] D112098: [ASan] Added stack safety support in address sanitizer.

Kirill Stoimenov via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 19 15:12:27 PDT 2021


kstoimenov created this revision.
Herald added subscribers: ormris, dexonsmith, dang, hiraditya.
kstoimenov requested review of this revision.
Herald added a reviewer: jdoerfert.
Herald added subscribers: llvm-commits, cfe-commits, sstefan1.
Herald added projects: clang, LLVM.

Added and implemented -asan-use-stack-safety flag and -fsanitize-address-use-stack-safety flags,
which control if the ASan would use the Stack Safety results to emit less code for operations which are
makred as 'safe' by the static analysis.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D112098

Files:
  clang/include/clang/Basic/CodeGenOptions.def
  clang/include/clang/Driver/Options.td
  clang/include/clang/Driver/SanitizerArgs.h
  clang/lib/CodeGen/BackendUtil.cpp
  clang/lib/Driver/SanitizerArgs.cpp
  clang/test/CodeGen/asan-stack-safety-analysis.c
  clang/test/Driver/fsanitize.c
  llvm/include/llvm/Analysis/StackSafetyAnalysis.h
  llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D112098.380787.patch
Type: text/x-patch
Size: 17253 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20211019/ed02a2b1/attachment.bin>


More information about the cfe-commits mailing list