ppc32: Don't clobber personality flags on exec

David Miller davem at davemloft.net
Fri Apr 17 09:17:06 EST 2009


From: Andreas Schwab <schwab at linux-m68k.org>
Date: Thu, 16 Apr 2009 18:22:01 +0200

> 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 at linux-m68k.org>

Grumble, sparc has the same bugs...  thanks for finding this.



More information about the Linuxppc-dev mailing list