[PATCH] D36587: Add NetBSD ASAN shadow mapping for x86-64

Kamil Rytarowski via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 28 14:57:04 PDT 2017


krytarowski added a comment.

In https://reviews.llvm.org/D36587#854657, @eugenis wrote:

> It's just an address where a shadow-sized hole is most like to be found.
>  But there are other considerations. For example,  0x7FFF8000 is the highest (or close to highest) address that allows shorter instruction encoding on x86_64.  Zero offset is typically not used (even though it is usually the fastest option) because it conflicts with MAP_32BIT.


MAP_32BIT is Linux/FreeBSD specific, it's absent in NetBSD... does it mean that the shadowoffset should be 0?

How about i386?

For 32-bit kernel the maximal user address:
0xfffff000
For 64-bit kernel the maximal user address of 32-bit application:
0xbfbff000


Repository:
  rL LLVM

https://reviews.llvm.org/D36587





More information about the llvm-commits mailing list