]> git.hungrycats.org Git - linux/commitdiff
[PATCH] fix create_elf_tables on PPC
authorPaul Mackerras <paulus@au1.ibm.com>
Wed, 4 Sep 2002 03:00:23 +0000 (20:00 -0700)
committerPaul Mackerras <paulus@au1.ibm.com>
Wed, 4 Sep 2002 03:00:23 +0000 (20:00 -0700)
create_elf_tables in fs/binfmt_elf.c now sets up the list of aux table
entries in a buffer on the kernel stack before copying it to the user
stack.

Unfortunately, while the buffer is big enough for most architectures, it
isn't big enough on PPC, which uses 5 extra aux table entries (put on
with ARCH_DLINFO).  The following patch increases the buffer to be big
enough for PPC.  (Note that each aux table entry uses two elements of
the elf_info array.)

fs/binfmt_elf.c

index 3a4a052e8348b9e8af878b44e217132c4730e571..aa71b1c83cd26777fe2179e682bd5721d72e91bb 100644 (file)
@@ -132,7 +132,7 @@ create_elf_tables(struct linux_binprm *bprm, struct elfhdr * exec,
        elf_addr_t *sp, *u_platform;
        const char *k_platform = ELF_PLATFORM;
        int items;
-       elf_addr_t elf_info[30];
+       elf_addr_t elf_info[40];
        int ei_index = 0;
 
        /*