2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-24 05:04:00 +08:00
linux-next/arch
Jiri Kosina 16f3e95b32 cross-arch: don't corrupt personality flags 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 tries to fix all architectures that forcefully overwrite
personality flags during exec() (ppc32 and s390 have been fixed recently
by commits f9783ec862 ("[S390] Do not clobber personality flags on
exec") and 59e4c3a2fe ("powerpc/32: Don't clobber personality flags on
exec") in a similar way already).

Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Cc: Haavard Skinnemoen <hskinnemoen@gmail.com>
Cc: Hans-Christian Egtvedt <egtvedt@samfundet.no>
Cc: Mike Frysinger <vapier@gentoo.org>
Cc: Mark Salter <msalter@redhat.com>
Cc: Mikael Starvik <starvik@axis.com>
Cc: Jesper Nilsson <jesper.nilsson@axis.com>
Cc: David Howells <dhowells@redhat.com>
Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
Cc: Richard Kuo <rkuo@codeaurora.org>
Cc: Hirokazu Takata <takata@linux-m32r.org>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Michal Simek <monstr@monstr.eu>
Cc: Koichi Yasutake <yasutake.koichi@jp.panasonic.com>
Cc: Jonas Bonn <jonas@southpole.se>
Cc: Chen Liqin <liqin.chen@sunplusct.com>
Cc: Lennox Wu <lennox.wu@gmail.com>
Cc: Paul Mundt <lethal@linux-sh.org>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Chris Zankel <chris@zankel.net>
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 Prepared for main script 2012-10-03 13:45:43 -07: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