[PATCH] D85061: [msan] Respect no_huge_pages_for_shadow.
Evgenii Stepanov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 31 17:20:51 PDT 2020
eugenis created this revision.
eugenis added a reviewer: vitalybuka.
Herald added a project: Sanitizers.
Herald added a subscriber: Sanitizers.
eugenis requested review of this revision.
Disable huge pages in the MSan shadow region when
no_huge_pages_for_shadow == true (default).
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D85061
Files:
compiler-rt/lib/msan/msan_linux.cpp
Index: compiler-rt/lib/msan/msan_linux.cpp
===================================================================
--- compiler-rt/lib/msan/msan_linux.cpp
+++ compiler-rt/lib/msan/msan_linux.cpp
@@ -142,7 +142,7 @@
if (map) {
if (!CheckMemoryRangeAvailability(start, size))
return false;
- if (!MmapFixedNoReserve(start, size, kMemoryLayout[i].name))
+ if (!MmapFixedSuperNoReserve(start, size, kMemoryLayout[i].name))
return false;
if (common_flags()->use_madv_dontdump)
DontDumpShadowMemory(start, size);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D85061.282356.patch
Type: text/x-patch
Size: 559 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200801/71c94c06/attachment.bin>
More information about the llvm-commits
mailing list