OSDN Git Service

[PowerPC][msan] Update msan to handle changed memory layouts in newer kernels
authorBill Seurer <seurer@linux.vnet.ibm.com>
Mon, 13 Nov 2017 15:43:19 +0000 (15:43 +0000)
committerBill Seurer <seurer@linux.vnet.ibm.com>
Mon, 13 Nov 2017 15:43:19 +0000 (15:43 +0000)
commit71f0575da1706d55e090b90d3afde6f2ad5e94f0
tree8b502fc19928ec653776ecf500531719cff2cea9
parentc95900468de2382a76d9760f96de634b19db5b11
[PowerPC][msan] Update msan to handle changed memory layouts in newer kernels

In more recent Linux kernels (including those with 47 bit VMAs) the layout of
virtual memory for powerpc64 changed causing the memory sanitizer to not
work properly. This patch adjusts a bit mask in the memory sanitizer to work
on the newer kernels while continuing to work on the older ones as well.

This is the non-runtime part of the patch and finishes it. ref: r317802

Tested on several 4.x and 3.x kernel releases.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@318045 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Instrumentation/MemorySanitizer.cpp