]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
powerpc/32: Don't clobber personality flags on exec
authorAndreas Schwab <schwab@linux-m68k.org>
Thu, 16 Apr 2009 06:22:01 +0000 (06:22 +0000)
committerPaul Mackerras <paulus@samba.org>
Wed, 22 Apr 2009 04:56:34 +0000 (14:56 +1000)
commit59e4c3a2fe9cb1681bb2cff508ff79466f7585ba
tree38971238bec3a2d21b70ac16c2d1dea2afa628bc
parent24f1ce803c55f645429e6a7dd94763fbace84b0a
powerpc/32: Don't clobber personality flags on exec

Now that ppc32 implements address randomization it also wants to inherit
personality flags like ADDR_NO_RANDOMIZE across exec, for things like
`setarch ppc -R' to work.  But the ppc32 version of SET_PERSONALITY
forcefully sets PER_LINUX, clearing all personality flags.  So be
careful about preserving the flags.

Signed-off-by: Andreas Schwab <schwab@linux-m68k.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/include/asm/elf.h