linux/arch/openrisc/include/asm
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
..
bitops OpenRISC: Headers 2011-07-22 18:46:39 +02:00
asm-offsets.h OpenRISC: Headers 2011-07-22 18:46:39 +02:00
bitops.h OpenRISC: Headers 2011-07-22 18:46:39 +02:00
byteorder.h OpenRISC: Headers 2011-07-22 18:46:39 +02:00
cache.h OpenRISC: Memory management 2011-07-22 18:46:28 +02:00
cpuinfo.h OpenRISC: Headers 2011-07-22 18:46:39 +02:00
delay.h OpenRISC: Headers 2011-07-22 18:46:39 +02:00
dma-mapping.h openrisc: provide dma_map_ops 2012-05-08 11:43:51 +02:00
elf.h cross-arch: don't corrupt personality flags upon exec() 2012-10-06 03:04:47 +09:00
fixmap.h OpenRISC: Memory management 2011-07-22 18:46:28 +02:00
gpio.h gpiolib/arches: Centralise bolierplate asm/gpio.h 2012-05-11 18:00:14 -06:00
io.h OpenRISC: Headers 2011-07-22 18:46:39 +02:00
irq.h OpenRISC: IRQ 2011-07-22 18:46:33 +02:00
irqflags.h OpenRISC: IRQ 2011-07-22 18:46:33 +02:00
Kbuild Remove useless wrappers of asm-generic/rmap.h 2012-06-28 11:29:26 +02:00
kvm_para.h kvmclock: Add functions to check if the host has stopped the vm 2012-04-08 12:48:59 +03:00
linkage.h OpenRISC: Headers 2011-07-22 18:46:39 +02:00
mmu.h OpenRISC: Memory management 2011-07-22 18:46:28 +02:00
mmu_context.h OpenRISC: Memory management 2011-07-22 18:46:28 +02:00
mutex.h OpenRISC: Headers 2011-07-22 18:46:39 +02:00
page.h OpenRISC: Remove memory_start/end prototypes 2012-03-06 10:37:21 +01:00
param.h OpenRISC: Headers 2011-07-22 18:46:39 +02:00
pgalloc.h OpenRISC: Memory management 2011-07-22 18:46:28 +02:00
pgtable.h Remove remaining bits of io_remap_page_range() 2012-03-23 16:58:31 -07:00
processor.h fork: move the real prepare_to_copy() users to arch_dup_task_struct() 2012-05-16 15:16:26 -07:00
prom.h irq_domain: Centralize definition of irq_dispose_mapping() 2012-02-26 16:48:06 -07:00
ptrace.h openrisc: header file cleanups 2012-05-08 11:43:30 +02:00
serial.h OpenRISC: Headers 2011-07-22 18:46:39 +02:00
sigcontext.h openrisc: don't use pt_regs in struct sigcontext 2011-09-05 14:29:12 +02:00
spinlock.h OpenRISC: Headers 2011-07-22 18:46:39 +02:00
spr.h OpenRISC: Headers 2011-07-22 18:46:39 +02:00
spr_defs.h OpenRISC: Headers 2011-07-22 18:46:39 +02:00
syscall.h openrisc: sanitize use of orig_gpr11 2012-03-06 10:37:00 +01:00
syscalls.h OpenRISC: System calls 2011-07-22 18:46:34 +02:00
thread_info.h OpenRISC: Scheduling/Process management 2011-07-22 18:46:36 +02:00
timex.h OpenRISC: Timekeeping 2011-07-22 18:46:32 +02:00
tlb.h OpenRISC: Memory management 2011-07-22 18:46:28 +02:00
tlbflush.h OpenRISC: Memory management 2011-07-22 18:46:28 +02:00
uaccess.h openrisc: use generic strnlen_user() function 2012-05-27 21:00:32 -07:00
unaligned.h OpenRISC: Headers 2011-07-22 18:46:39 +02:00
unistd.h OpenRISC: System calls 2011-07-22 18:46:34 +02:00