[PATCH] D63586: [ASan] Use dynamic shadow on 32-bit iOS and simulators

Julian Lettner via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 19 17:44:11 PDT 2019


yln created this revision.
Herald added subscribers: llvm-commits, Sanitizers, hiraditya, kubamracek.
Herald added projects: Sanitizers, LLVM.

The VM layout on iOS is not stable between releases. On 64-bit iOS and
its derivatives we use a dynamic shadow offset that enables ASan to
search for a valid location for the shadow heap on process launch rather
than hardcode it.

This commit extends that approach for 32-bit iOS plus derivatives and
their simulators.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D63586

Files:
  compiler-rt/lib/asan/asan_mapping.h
  compiler-rt/lib/sanitizer_common/sanitizer_mac.cc
  llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
  llvm/test/Instrumentation/AddressSanitizer/dynamic-shadow-darwin.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D63586.205730.patch
Type: text/x-patch
Size: 8413 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190620/13b0c486/attachment.bin>


More information about the llvm-commits mailing list