[PATCH 2/2] ARM: fix personality flag propagation across an exec
Nicolas Pitre
nicolas.pitre at linaro.org
Fri Apr 8 09:00:07 EDT 2011
On Fri, 8 Apr 2011, Russell King - ARM Linux wrote:
> 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
mailing list