]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
increase AT_VECTOR_SIZE to terminate saved_auxv properly
authorOlaf Hering <olaf@aepfle.de>
Wed, 17 Oct 2007 06:30:12 +0000 (23:30 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 17 Oct 2007 15:43:00 +0000 (08:43 -0700)
commit4f9a58d75bfe82ab2b8ba5b8506dfb190a267834
tree791843f8cd609cb626a65c4004009084d87170d4
parentf77e34987070a20e4b3e06b868cb39eb73670467
increase AT_VECTOR_SIZE to terminate saved_auxv properly

include/asm-powerpc/elf.h has 6 entries in ARCH_DLINFO.  fs/binfmt_elf.c
has 14 unconditional NEW_AUX_ENT entries and 2 conditional NEW_AUX_ENT
entries.  So in the worst case, saved_auxv does not get an AT_NULL entry at
the end.

The saved_auxv array must be terminated with an AT_NULL entry.  Make the
size of mm_struct->saved_auxv arch dependend, based on the number of
ARCH_DLINFO entries.

Signed-off-by: Olaf Hering <olh@suse.de>
Cc: Roland McGrath <roland@redhat.com>
Cc: Jakub Jelinek <jakub@redhat.com>
Cc: Richard Henderson <rth@twiddle.net>
Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
Cc: "Luck, Tony" <tony.luck@intel.com>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Paul Mundt <lethal@linux-sh.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
14 files changed:
fs/binfmt_elf.c
include/asm-alpha/elf.h
include/asm-alpha/system.h
include/asm-ia64/elf.h
include/asm-ia64/system.h
include/asm-powerpc/elf.h
include/asm-powerpc/system.h
include/asm-sh/elf.h
include/asm-sh/system.h
include/asm-x86/elf_32.h
include/asm-x86/system_32.h
include/linux/auxvec.h
include/linux/elf.h
include/linux/mm_types.h