Re: Virtual memory leaking through IA32 emulation layer for mmap and munmap

From: Arun Sharma <arun.sharma_at_intel.com>
Date: 2004-03-10 07:32:24
H. J. Lu wrote:
> 
> getpagesize () isn't hardcoded to 4K in glibc. You can change it with
> AT_PAGESZ. The problem is the x86 executable is aligned at 4K page
> size, which is specified by the i386 ABI. The dynamic linker in glibc
> won't load the normal x86 executables with a bigger page size. I have
> a glibc patch which allows >4K page size. It may work for you.

I did some very light testing with HJ's glibc patch with this kernel 
change a few months ago and didn't find any obvious breakages. YMMV.

	-Arun

--- 1.21/fs/binfmt_elf.c        Sat May  4 10:05:24 2002
+++ edited/fs/binfmt_elf.c      Fri Jun 13 12:25:10 2003
@@ -184,7 +184,7 @@
         }
         sp -= DLINFO_ITEMS*2;
         NEW_AUX_ENT( 0, AT_HWCAP, hwcap);
-       NEW_AUX_ENT( 1, AT_PAGESZ, ELF_EXEC_PAGESIZE);
+       NEW_AUX_ENT( 1, AT_PAGESZ, PAGE_SIZE);
         NEW_AUX_ENT( 2, AT_CLKTCK, CLOCKS_PER_SEC);
         NEW_AUX_ENT( 3, AT_PHDR, load_addr + exec->e_phoff);
         NEW_AUX_ENT( 4, AT_PHENT, sizeof (struct elf_phdr));

-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Tue Mar 9 15:34:04 2004

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:24 EST