diff options
Diffstat (limited to 'en/devices/tech/debug/asan.html')
-rw-r--r-- | en/devices/tech/debug/asan.html | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/en/devices/tech/debug/asan.html b/en/devices/tech/debug/asan.html index 9ea32939..29df8b6d 100644 --- a/en/devices/tech/debug/asan.html +++ b/en/devices/tech/debug/asan.html @@ -44,7 +44,8 @@ HWASan is non-deterministic. There are only 256 possible tag values, so there is probability of missing any bug. HWAsan does not have ASan's limited-size redzones for detecting overflows and limited-capacity quarantine for detecting use-after-free, so it does not matter to HWAsan how large the overflow is or how long ago the memory -was deallocated. This makes HWASan better than ASan.</p> +was deallocated. This makes HWASan better than ASan. You can read more about +<a href="http://clang.llvm.org/docs/HardwareAssistedAddressSanitizerDesign.html" class="external">the design of HWAsan</a>.</p> <p>Valgrind's Memcheck tool is similar, but ASan also detects stack/global overflows in addition to heap overflows, and is much faster with less memory overhead. Conversely, @@ -60,10 +61,15 @@ instead.</p> <h2 id="using-hwasan">Using HWAsan</h2> -<p>As of December 2018 only Pixel 2 and Pixel 2 XL are supported. Supporting another device -requires backporting several kernel patches. The Android team is working on getting those into -the common kernel. -You may also need to remove some optional extras to make room on your system partition for the +<p>As of February 2019 only Pixel 2 and Pixel 2 XL support HWAsan. The Android team is working on +getting the necessary patches into the common kernel, but for now supporting another device requires +backporting these kernel patches:</p> +<ul> +<li><a href="https://lore.kernel.org/patchwork/project/lkml/list/?series=375855" class="external">arm64: untag user pointers passed to the kernel</a></li> +<li><a href="https://lore.kernel.org/patchwork/project/lkml/list/?series=375865" class="external">arm64 relaxed ABI</a></li> +</ul> + +<p>You may also need to remove some optional extras to make room on your system partition for the larger libraries. See the <code>walleye_hwasan</code> target for an example.</p> <p>Use the following commands to build the entire platform using HWASan:</p> |