[PATCH] D137992: [asan] -fsanitize-address-outline-instrumentation -> -asan-max-inline-poisoning-size=0
    Roy Sundahl via Phabricator via cfe-commits 
    cfe-commits at lists.llvm.org
       
    Mon Nov 14 15:23:44 PST 2022
    
    
  
rsundahl created this revision.
Herald added a project: All.
rsundahl requested review of this revision.
Herald added subscribers: cfe-commits, MaskRay.
Herald added a project: clang.
The clang flag -fsanitize-address-outline-instrumentation should not only pass
-asan-instrumentation-with-call-threshold=0 to the sanitizer, but should also
pass -asan-max-inline-poisoning-size=0. Both flags' cutoff values need to be set
to zero to suppress inlining in favor of making calls into compiler-rt.
Repository:
  rG LLVM Github Monorepo
https://reviews.llvm.org/D137992
Files:
  clang/lib/Driver/SanitizerArgs.cpp
Index: clang/lib/Driver/SanitizerArgs.cpp
===================================================================
--- clang/lib/Driver/SanitizerArgs.cpp
+++ clang/lib/Driver/SanitizerArgs.cpp
@@ -1256,6 +1256,9 @@
   if (AsanOutlineInstrumentation) {
     CmdArgs.push_back("-mllvm");
     CmdArgs.push_back("-asan-instrumentation-with-call-threshold=0");
+    CmdArgs.push_back("-mllvm");
+    CmdArgs.push_back("-asan-max-inline-poisoning-size=0");
+
   }
 
   // Only pass the option to the frontend if the user requested,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D137992.475294.patch
Type: text/x-patch
Size: 522 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20221114/0787407d/attachment.bin>
    
    
More information about the cfe-commits
mailing list