linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Increase AT_VECTOR_SIZE
@ 2006-01-13  3:23 Paul Mackerras
  0 siblings, 0 replies; only message in thread
From: Paul Mackerras @ 2006-01-13  3:23 UTC (permalink / raw)
  To: torvalds; +Cc: linux-kernel, linuxppc64-dev

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>
---
Linus, can this go in before 2.6.16-rc1 please?  I can't see that it
will break anything, and the glibc guys are keen to have the
AT_PLATFORM value provided by 2.6.16 and later kernels.

Thanks,
Paul.

diff --git a/include/linux/auxvec.h b/include/linux/auxvec.h
index 9a7b374..d2bc0d6 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 */

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2006-01-13  3:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-13  3:23 [PATCH] Increase AT_VECTOR_SIZE Paul Mackerras

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).