ARM: 6878/1: fix personality flag propagation across an exec
authorNicolas Pitre <nicolas.pitre@linaro.org>
Wed, 13 Apr 2011 03:59:36 +0000 (04:59 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 14 Apr 2011 08:15:24 +0000 (09:15 +0100)
commit5e143436d04465c937c1a242808a99c46393af3e
tree882b80a1a208776f32180bf735a9cecf013a5637
parentdf5419a9a90ac4ea2d853d68cc788e32cfe71278
ARM: 6878/1: fix personality flag propagation across an exec

Our SET_PERSONALITY() implementation was overwriting all existing
personality flags, including ADDR_NO_RANDOMIZE, making them unavailable
to processes being exec'd after a call to personality() in user space.
This prevents the gdb test suite from running successfully.

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/elf.c