MIPS: Randomize mmap if randomize_va_space is set
authorDavid Daney <ddaney@caviumnetworks.com>
Mon, 19 Jul 2010 20:14:56 +0000 (13:14 -0700)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 5 Aug 2010 12:26:05 +0000 (13:26 +0100)
commit1091458d09e1a0788268578001f279250d2c0844
tree9a02e6153d6658cab4b653ba845e68b161cac908
parentb3b3c176d9150af542d9ba5e5b292d233883ff85
MIPS: Randomize mmap if randomize_va_space is set

Fairly straight forward: For 32-bit address spaces randomize within a
16MB space, for 64-bit within a 256MB space.

Signed-off-by: David Daney <ddaney@caviumnetworks.com>
To: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/1480/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/asm/processor.h
arch/mips/kernel/syscall.c