Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 4 Sep 2002 07:58:28 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 4 Sep 2002 07:58:28 -0400 Received: from dp.samba.org ([66.70.73.150]:55695 "EHLO lists.samba.org") by vger.kernel.org with ESMTP id ; Wed, 4 Sep 2002 07:58:27 -0400 From: Paul Mackerras MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15733.62920.624689.922248@argo.ozlabs.ibm.com> Date: Wed, 4 Sep 2002 22:00:08 +1000 (EST) To: torvalds@transmeta.com Cc: linux-kernel@vger.kernel.org Subject: [PATCH] fix create_elf_tables on PPC X-Mailer: VM 6.75 under Emacs 20.7.2 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1124 Lines: 32 Linus, As you know, 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.) Please apply this to your tree. Thanks, Paul. diff -urN linux-2.5/fs/binfmt_elf.c pmac-2.5/fs/binfmt_elf.c --- linux-2.5/fs/binfmt_elf.c Fri Aug 30 09:26:19 2002 +++ pmac-2.5/fs/binfmt_elf.c Tue Sep 3 16:54:13 2002 @@ -132,7 +132,7 @@ 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; /* - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/