]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
tile: fix personality bits handling upon exec()
authorJiri Kosina <jkosina@suse.cz>
Fri, 28 Sep 2012 00:20:11 +0000 (10:20 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 3 Oct 2012 06:50:39 +0000 (16:50 +1000)
commit37a6b2741cc5e47674f60f9f820fb7ed840c72e0
treefdd4c005fc4b71676fab344aa56c489a22937ef5
parentcc0370cf582d4b6302fe295d71d8af193d3898e9
tile: fix personality bits handling upon exec()

Historically, the top three bytes of personality have been used for things
such as ADDR_NO_RANDOMIZE, which made sense only for specific
architectures.

We now however have a flag there that is general no matter the
architecture (UNAME26); generally we have to be careful to preserve the
personality flags across exec().

This patch fixes tile architecture not to forcefully overwrite personality
flags during exec().

In addition to that, we fix two other things along the way:

- exec_domain switching is fixed -- set_personality() should always
  be used instead of directly assigning to current->personality.
- as pointed out by Arnd Bergmann, PER_LINUX_32BIT is not used anywhere
  by tile, so let's just drop that in favor of PER_LINUX

Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Acked-by: Chris Metcalf <cmetcalf@tilera.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
arch/tile/include/asm/elf.h