[PATCH 2/2] ARM: fix personality flag propagation across an exec
Russell King - ARM Linux
linux at arm.linux.org.uk
Fri Apr 8 03:29:31 EDT 2011
On Thu, Apr 07, 2011 at 10:52:53PM -0400, Nicolas Pitre wrote:
> + * Inherit most personality flags from parent, except for those
> + * we're about to choose. Beware: PER_LINUX_32BIT carries flag bits
> + * outside of PER_MASK.
> + */
> + personality &= ~(PER_MASK | PER_LINUX | PER_LINUX_32BIT);
PER_LINUX and PER_LINUX_32BIT aren't bitflags - the LSB is a numeric
personality ID. So this looks wrong.
More information about the linux-arm-kernel