[PATCH] D58195: [HWASAN] Updated HWASAN design document to better portray the chance of missing a bug.

Mitch Phillips via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Feb 13 10:46:16 PST 2019


hctim created this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

Provided rule of thumb percentage chances of miss for 4 and 8 bit tag sizes.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D58195

Files:
  clang/docs/HardwareAssistedAddressSanitizerDesign.rst


Index: clang/docs/HardwareAssistedAddressSanitizerDesign.rst
===================================================================
--- clang/docs/HardwareAssistedAddressSanitizerDesign.rst
+++ clang/docs/HardwareAssistedAddressSanitizerDesign.rst
@@ -131,7 +131,8 @@
     https://www.kernel.org/doc/Documentation/arm64/tagged-pointers.txt).
   * **Does not require redzones to detect buffer overflows**,
     but the buffer overflow detection is probabilistic, with roughly
-    `(2**TS-1)/(2**TS)` probability of catching a bug.
+    `1/(2**TS)` chance of missing a bug (6.25% or 0.39% with 4 and 8-bit TS
+    respectively).
   * **Does not require quarantine to detect heap-use-after-free,
     or stack-use-after-return**.
     The detection is similarly probabilistic.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D58195.186695.patch
Type: text/x-patch
Size: 772 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190213/5ed62287/attachment.bin>


More information about the cfe-commits mailing list