linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* increase AT_VECTOR_SIZE to terminate saved_auxv properly
@ 2007-09-14 11:00 Olaf Hering
  2007-09-15 14:01 ` Jakub Jelinek
  2007-09-18 11:55 ` [PATCH] " Olaf Hering
  0 siblings, 2 replies; 7+ messages in thread
From: Olaf Hering @ 2007-09-14 11:00 UTC (permalink / raw)
  To: linux-kernel

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.

Is an AT_NULL entry required or must userspace use the AT_VECTOR_SIZE
to not loop past the end of the array?
If AT_NULL is required, AT_VECTOR_SIZE should be changed from 44 to 46.


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2007-09-20 20:22 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-14 11:00 increase AT_VECTOR_SIZE to terminate saved_auxv properly Olaf Hering
2007-09-15 14:01 ` Jakub Jelinek
2007-09-17  8:54   ` Olaf Hering
2007-09-18 11:55 ` [PATCH] " Olaf Hering
2007-09-20  6:44   ` Andrew Morton
2007-09-20 19:19     ` Olaf Hering
2007-09-20 20:22       ` Andrew Morton

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).