linux-hardened/arch
Jiri Kosina 9f6547a320 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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2012-10-06 03:04:47 +09:00
..
alpha Prepared for main script 2012-10-03 13:45:43 -07:00
arm sections: fix section conflicts in arch/arm/ 2012-10-06 03:04:38 +09:00
arm64 UAPI: (Scripted) Set up UAPI Kbuild files 2012-10-02 18:01:35 +01:00
avr32 cross-arch: don't corrupt personality flags upon exec() 2012-10-06 03:04:47 +09:00
blackfin cross-arch: don't corrupt personality flags upon exec() 2012-10-06 03:04:47 +09:00
c6x cross-arch: don't corrupt personality flags upon exec() 2012-10-06 03:04:47 +09:00
cris cross-arch: don't corrupt personality flags upon exec() 2012-10-06 03:04:47 +09:00
frv cross-arch: don't corrupt personality flags upon exec() 2012-10-06 03:04:47 +09:00
h8300 cross-arch: don't corrupt personality flags upon exec() 2012-10-06 03:04:47 +09:00
hexagon cross-arch: don't corrupt personality flags upon exec() 2012-10-06 03:04:47 +09:00
ia64 sections: fix section conflicts in arch/ia64 2012-10-06 03:04:39 +09:00
m32r cross-arch: don't corrupt personality flags upon exec() 2012-10-06 03:04:47 +09:00
m68k cross-arch: don't corrupt personality flags upon exec() 2012-10-06 03:04:47 +09:00
microblaze cross-arch: don't corrupt personality flags upon exec() 2012-10-06 03:04:47 +09:00
mips sections: fix section conflicts in arch/mips 2012-10-06 03:04:39 +09:00
mn10300 cross-arch: don't corrupt personality flags upon exec() 2012-10-06 03:04:47 +09:00
openrisc cross-arch: don't corrupt personality flags upon exec() 2012-10-06 03:04:47 +09:00
parisc sections: disable const sections for PA-RISC v2 2012-10-06 03:04:37 +09:00
powerpc sections: fix section conflicts in arch/powerpc 2012-10-06 03:04:39 +09:00
s390 KVM updates for the 3.7 merge window 2012-10-04 09:30:33 -07:00
score cross-arch: don't corrupt personality flags upon exec() 2012-10-06 03:04:47 +09:00
sh cross-arch: don't corrupt personality flags upon exec() 2012-10-06 03:04:47 +09:00
sparc cross-arch: don't corrupt personality flags upon exec() 2012-10-06 03:04:47 +09:00
tile tile: fix personality bits handling upon exec() 2012-10-06 03:04:47 +09:00
um Prepared for main script 2012-10-03 13:45:43 -07:00
unicore32 unicore32: select generic atomic64_t support 2012-10-06 03:04:37 +09:00
x86 sections: fix section conflicts in arch/x86 2012-10-06 03:04:40 +09:00
xtensa cross-arch: don't corrupt personality flags upon exec() 2012-10-06 03:04:47 +09:00
.gitignore
Kconfig Merge branch 'sched-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2012-10-01 10:43:39 -07:00