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


Date: Thu, 23 Aug 2012 14:37:59 -0500
From: Andrew Bernat <bernat@xxxxxxxxxxx>
Subject: Re: [DynInst_API:] [PATCH] Bump the Linux DYNINSTheap_loAddr to 64K
Sounds like a plan. That code is pretty fuzzy (as in logic) anyway - we clearly don't want to allocate the zero page, but we don't have any reason to get it as low as possible. I'll add the tweak. 

Is there a way to get CONFIG_LSM_... programmatically? 

Drew

On Aug 22, 2012, at 7:52 PM, Josh Stone <jistone@xxxxxxxxxx> wrote:

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

_______________________________________________
Dyninst-api mailing list
Dyninst-api@xxxxxxxxxxx
https://lists.cs.wisc.edu/mailman/listinfo/dyninst-api




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