[DynInst_API:] [PATCH] Bump the Linux DYNINSTheap_loAddr to 64K


Date: Wed, 22 Aug 2012 17:52:09 -0700
From: Josh Stone <jistone@xxxxxxxxxx>
Subject: [DynInst_API:] [PATCH] Bump the Linux DYNINSTheap_loAddr to 64K
The RT trymmap was triggering SELinux alerts as it tried low addresses.
I have getsebool mmap_low_allowed --> off, which means that all mmaps
are limited by the kernel's CONFIG_LSM_MMAP_MIN_ADDR, default 65536.

Dyninst RTheap is only trying such low addresses for MUTATEE64, which
being 64-bit is not hurting for address space, so starting addresses a
bit higher at DYNINSTheap_loAddr=64K shouldn't hurt.
---
 dyninstAPI_RT/src/RTheap-linux.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dyninstAPI_RT/src/RTheap-linux.c b/dyninstAPI_RT/src/RTheap-linux.c
index bdc4775..c2d1aec 100644
--- a/dyninstAPI_RT/src/RTheap-linux.c
+++ b/dyninstAPI_RT/src/RTheap-linux.c
@@ -47,7 +47,7 @@
 
 int     DYNINSTheap_align = 4; /* heaps are word-aligned */
 
-Address DYNINSTheap_loAddr = 0x4096;
+Address DYNINSTheap_loAddr = 0x10000;
 Address DYNINSTheap_hiAddr = ~0x0;
 #elif defined(arch_power)
 int     DYNINSTheap_align  = 4; /* heaps are word-aligned */
-- 
1.7.11.4

[← Prev in Thread] Current Thread [Next in Thread→]