asan_mapping.h (kMidMemEnd): Increase to 0x4fffffffffULL.
authorJakub Jelinek <jakub@redhat.com>
Thu, 28 Feb 2013 19:55:40 +0000 (20:55 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 28 Feb 2013 19:55:40 +0000 (20:55 +0100)
* asan/asan_mapping.h (kMidMemEnd): Increase to 0x4fffffffffULL.
* asan/asan_rtl.cc (__asan_init): Increase kMidMemEnd to
0x4fffffffffULL.

From-SVN: r196355

libsanitizer/ChangeLog
libsanitizer/asan/asan_mapping.h
libsanitizer/asan/asan_rtl.cc

index 608ffab0851ff9de642b1543d788ee83b0d5b5d0..4e3facc1a8e97269be21093b16a34789546cba04 100644 (file)
@@ -1,3 +1,9 @@
+2013-02-28  Jakub Jelinek  <jakub@redhat.com>
+
+       * asan/asan_mapping.h (kMidMemEnd): Increase to 0x4fffffffffULL.
+       * asan/asan_rtl.cc (__asan_init): Increase kMidMemEnd to
+       0x4fffffffffULL.
+
 2013-02-22  Jakub Jelinek  <jakub@redhat.com>
 
        PR sanitizer/56393
index df952363893ea66c0447f5da5b2b65ce3bd820a4..9b4dd35f1eb52098ab37a36ee488a6c95c9a2db4 100644 (file)
 // || `[0x000000040000, 0x01ffffffffff]` || ShadowGap  ||
 //
 // Special case when something is already mapped between
-// 0x003000000000 and 0x004000000000 (e.g. when prelink is installed):
+// 0x003000000000 and 0x005000000000 (e.g. when prelink is installed):
 // || `[0x10007fff8000, 0x7fffffffffff]` || HighMem    ||
 // || `[0x02008fff7000, 0x10007fff7fff]` || HighShadow ||
-// || `[0x004000000000, 0x02008fff6fff]` || ShadowGap3 ||
-// || `[0x003000000000, 0x003fffffffff]` || MidMem     ||
-// || `[0x00087fff8000, 0x002fffffffff]` || ShadowGap2 ||
-// || `[0x00067fff8000, 0x00087fff7fff]` || MidShadow  ||
+// || `[0x005000000000, 0x02008fff6fff]` || ShadowGap3 ||
+// || `[0x003000000000, 0x004fffffffff]` || MidMem     ||
+// || `[0x000a7fff8000, 0x002fffffffff]` || ShadowGap2 ||
+// || `[0x00067fff8000, 0x000a7fff7fff]` || MidShadow  ||
 // || `[0x00008fff7000, 0x00067fff7fff]` || ShadowGap  ||
 // || `[0x00007fff8000, 0x00008fff6fff]` || LowShadow  ||
 // || `[0x000000000000, 0x00007fff7fff]` || LowMem     ||
@@ -129,7 +129,7 @@ extern uptr AsanMappingProfile[];
 // difference between fixed and non-fixed mapping is below the noise level.
 static uptr kHighMemEnd = 0x7fffffffffffULL;
 static uptr kMidMemBeg =    0x3000000000ULL;
-static uptr kMidMemEnd =    0x3fffffffffULL;
+static uptr kMidMemEnd =    0x4fffffffffULL;
 #else
 SANITIZER_INTERFACE_ATTRIBUTE
 extern uptr kHighMemEnd, kMidMemBeg, kMidMemEnd;  // Initialized in __asan_init.
index e551b6fbc26dc65ba722109156fea4ed3f5cf2b5..6ddb01329adf501622c8b82c21632c4c3d5c97cd 100644 (file)
@@ -455,7 +455,7 @@ void __asan_init() {
 #if ASAN_LINUX && defined(__x86_64__) && !ASAN_FIXED_MAPPING
   if (!full_shadow_is_available) {
     kMidMemBeg = kLowMemEnd < 0x3000000000ULL ? 0x3000000000ULL : 0;
-    kMidMemEnd = kLowMemEnd < 0x3000000000ULL ? 0x3fffffffffULL : 0;
+    kMidMemEnd = kLowMemEnd < 0x3000000000ULL ? 0x4fffffffffULL : 0;
   }
 #endif