ARM: 8155/1: place sigpage at a random offset above stack
authorNathan Lynch <nathan_lynch@mentor.com>
Mon, 22 Sep 2014 21:12:35 +0000 (22:12 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 26 Sep 2014 13:40:01 +0000 (14:40 +0100)
The sigpage is currently placed alongside shared libraries etc in the
address space.  Similar to what x86_64 does for its VDSO, place the
sigpage at a randomized offset above the stack so that learning the
base address of the sigpage doesn't help expose where shared libraries
are loaded in the address space (and vice versa).

Signed-off-by: Nathan Lynch <nathan_lynch@mentor.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/process.c

Simple merge