All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] MIPS memory space randomization
@ 2010-07-19 20:14 David Daney
  2010-07-19 20:14 ` [PATCH 1/2] MIPS: Randomize mmap if randomize_va_space is set David Daney
  2010-07-19 20:14 ` [PATCH 2/2] MIPS: Enable heap randomization David Daney
  0 siblings, 2 replies; 5+ messages in thread
From: David Daney @ 2010-07-19 20:14 UTC (permalink / raw)
  To: linux-mips, ralf; +Cc: David Daney

x86, PPC and SPARC will randomize the application heap and library
load addresses depending on the value of randomize_va_space.  This
patch set implements address space randomization for MIPS.

Tested with a 64-bit kernel (OCTEON) and verified, for all three ABIs,
that the result of 'cat /proc/self/maps' gives different values for
[heap] and shared libraries with each invocation.  The stack was
already randomized and also gets a different value for each
invocation.

Someone may want to test it on a 32-bit kernel, but it should work
there as well.

I will reply with the two patches.


David Daney (2):
  MIPS: Randomize mmap if randomize_va_space is set
  MIPS: Enable heap randomization.

 arch/mips/include/asm/elf.h       |    5 ++++
 arch/mips/include/asm/processor.h |   11 ++++++++
 arch/mips/kernel/syscall.c        |   49 ++++++++++++++++++++++++++++++++++++-
 3 files changed, 64 insertions(+), 1 deletions(-)

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

end of thread, other threads:[~2010-07-23  5:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-19 20:14 [PATCH 0/2] MIPS memory space randomization David Daney
2010-07-19 20:14 ` [PATCH 1/2] MIPS: Randomize mmap if randomize_va_space is set David Daney
2010-07-23  5:11   ` Ralf Baechle
2010-07-19 20:14 ` [PATCH 2/2] MIPS: Enable heap randomization David Daney
2010-07-23  5:12   ` Ralf Baechle

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.