summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPaul Mackerras <paulus@samba.org>2006-01-13 04:23:25 +0100
committerLinus Torvalds <torvalds@g5.osdl.org>2006-01-13 18:12:21 +0100
commit67daf5f11f06b9b15f8320de1d237ccc2e74fe43 (patch)
tree4dd751c65e36fb277fa7e1619279023590b05e29 /include
parent[PATCH] Fix oops in ufs_fill_super at mount time (diff)
downloadlinux-67daf5f11f06b9b15f8320de1d237ccc2e74fe43.tar.xz
linux-67daf5f11f06b9b15f8320de1d237ccc2e74fe43.zip
[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>
Diffstat (limited to 'include')
-rw-r--r--include/linux/auxvec.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/auxvec.h b/include/linux/auxvec.h
index 9a7b374c9fb4..d2bc0d66e65d 100644
--- a/include/linux/auxvec.h
+++ b/include/linux/auxvec.h
@@ -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 */