Skip to content

Commit

Permalink
[PATCH] Increase AT_VECTOR_SIZE
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Paul Mackerras authored and Linus Torvalds committed Jan 13, 2006
1 parent 8a430d7 commit 67daf5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/linux/auxvec.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@

#define AT_SECURE 23 /* secure mode boolean */

#define AT_VECTOR_SIZE 42 /* Size of auxiliary table. */
#define AT_VECTOR_SIZE 44 /* Size of auxiliary table. */

#endif /* _LINUX_AUXVEC_H */

0 comments on commit 67daf5f

Please sign in to comment.