[PATCH] D66377: hwasan: Untag unwound stack frames by wrapping personality functions.

Evgenii Stepanov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 22 16:51:52 PDT 2019


eugenis added a comment.

What's the binary size overhead? I assume most of it comes from adding personality functions to noexcept but !nounwind functions?



================
Comment at: llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp:1434
+      if (auto *Pers = dyn_cast<Function>(
+              F.getPersonalityFn()->stripPointerCastsNoFollowAliases()))
+        PersonalityFns[Pers].push_back(&F);
----------------
What if the personality function is an alias or an expression that does not strip down to a function? We could still wrap it.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D66377/new/

https://reviews.llvm.org/D66377





More information about the llvm-commits mailing list