]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] Increase AT_VECTOR_SIZE
authorPaul Mackerras <paulus@samba.org>
Fri, 13 Jan 2006 03:23:25 +0000 (14:23 +1100)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 13 Jan 2006 17:12:21 +0000 (09:12 -0800)
commitcae7ff98773639f1311a33fe4eb8fd648441ee35
tree4dd751c65e36fb277fa7e1619279023590b05e29
parent6758da9446ed745f12c25223d02c993e37f36790
[PATCH] Increase AT_VECTOR_SIZE

On PowerPC, we want to be able to provide an AT_PLATFORM aux table
entry to userspace, so that glibc can choose optimized libraries for
the processor we're running on.  Unfortunately that would be the 21st
aux table entry on powerpc, meaning that the aux table including the
terminating null entry would overflow the mm->saved_auxv[] array,
leading to userland programs segfaulting.

This increases the size of the mm->saved_auxv array to be large enough
to accommodate an AT_PLATFORM entry on powerpc.

Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/linux/auxvec.h