On 29.08.2006 [13:13:51 -0500], Adam Litke wrote:
> One of our testers has been hitting the following problem:
> 
> When running an application linked against a libhugetlbfs-provided
> linker script, LD_PRELOAD=libhugetlbfs.so is accidentally set.  The
> library incorrectly tries to perform remapping, which results in an
> application segfault.
> 
> We must add extra checking to handle this case since our normal method
> of disabling segment remapping won't work in this scenario.  This
> patch checks for "libhugetlbfs" in the LD_PRELOAD environment
> variable.  If found, remapping is disabled and the user is warned.
> With the addition of an additional environment check, I felt it was
> time to move them into a separate function.

While it would be nice if weren't dependent upon the name
"libhugetlbfs" (perhaps it could be a macro at the top, or something?),
this looks reasonable.

> Signed-off-by: Adam Litke <[EMAIL PROTECTED]>

Acked-by: Nishanth Aravamudan <[EMAIL PROTECTED]>

Thanks,
Nish

-- 
Nishanth Aravamudan <[EMAIL PROTECTED]>
IBM Linux Technology Center

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Libhugetlbfs-devel mailing list
Libhugetlbfs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libhugetlbfs-devel

Reply via email to