[PATCH] D137666: [msan] Increase size of app/shadow/origin mappings on aarch64

Thurston Dang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 8 12:58:59 PST 2022


thurston created this revision.
thurston added reviewers: vitalybuka, kda, kstoimenov, kcc.
thurston added a project: Sanitizers.
Herald added subscribers: Enna1, hiraditya, kristof.beyls.
Herald added a project: All.
thurston requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

The app memory mappings for aarch64 are limited to 64GB, sometimes smaller in practice. This leads to a crash with the error message "MemorySanitizer can not mmap the shadow memory." (because an "invalid" region cannot be mapped).

This patch makes the app/shadow/origin memory mappings considerably larger, along with corresponding changes to the MEM_TO_SHADOW and SHADOW_TO_ORIGIN constants.

      

Note that this deprecates compatibility with 39- and 42-bit VMAs.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D137666

Files:
  compiler-rt/lib/msan/msan.h
  llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D137666.474074.patch
Type: text/x-patch
Size: 9596 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221108/4d9932e0/attachment.bin>


More information about the llvm-commits mailing list