linux/arch/blackfin/include/asm
Mike Frysinger 04e4f2b18c FDPIC: Respect PT_GNU_STACK exec protection markings when creating NOMMU stack
The current code will load the stack size and protection markings, but
then only use the markings in the MMU code path.  The NOMMU code path
always passes PROT_EXEC to the mmap() call.  While this doesn't matter
to most people whilst the code is running, it will cause a pointless
icache flush when starting every FDPIC application.  Typically this
icache flush will be of a region on the order of 128KB in size, or may
be the entire icache, depending on the facilities available on the CPU.

In the case where the arch default behaviour seems to be desired
(EXSTACK_DEFAULT), we probe VM_STACK_FLAGS for VM_EXEC to determine
whether we should be setting PROT_EXEC or not.

For arches that support an MPU (Memory Protection Unit - an MMU without
the virtual mapping capability), setting PROT_EXEC or not will make an
important difference.

It should be noted that this change also affects the executability of
the brk region, since ELF-FDPIC has that share with the stack.  However,
this is probably irrelevant as NOMMU programs aren't likely to use the
brk region, preferring instead allocation via mmap().

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-01-06 18:16:02 -08:00
..
asm-offsets.h
atomic.h
auxvec.h
bfin-global.h Blackfin: support smaller uncached DMA chunks for memory constrained systems 2009-12-15 00:15:48 -05:00
bfin-lq035q1.h fbdev: bfin-lq035q1-fb: new Blackfin Landscape LCD EZ-Extender driver 2009-12-16 07:20:01 -08:00
bfin5xx_spi.h
bfin_rotary.h
bfin_sdh.h
bfin_simple_timer.h
bfin_sport.h
bfrom.h
bitops.h
bitsperlong.h
blackfin.h
bug.h Blackfin: Convert BUG() to use unreachable() 2009-12-15 08:38:35 -05:00
bugs.h
byteorder.h
cache.h
cacheflush.h
cdef_LPBlackfin.h
checksum.h
clocks.h Blackfin: pull in asm/dpmc.h for power defines 2009-12-15 00:14:50 -05:00
context.S
cplb.h
cplbinit.h
cpu.h
cputime.h
current.h
def_LPBlackfin.h
delay.h
device.h
div64.h
dma-mapping.h Blackfin: dma-mapping.h: flesh out missing DMA mapping functions 2009-12-15 00:16:01 -05:00
dma.h Blackfin: dma-mapping.h: flesh out missing DMA mapping functions 2009-12-15 00:16:01 -05:00
dpmc.h Blackfin: unify duplicated power masks 2009-12-15 00:14:53 -05:00
early_printk.h
elf.h elf: kill USE_ELF_CORE_DUMP 2009-12-16 07:20:12 -08:00
emergency-restart.h
entry.h
errno.h
fb.h
fcntl.h
fixed_code.h
flat.h
ftrace.h
futex.h
gpio.h
gptimers.h Blackfin: gptimers: use unsigned timer/group ids 2009-12-15 00:15:30 -05:00
hardirq.h
hw_irq.h
io.h Blackfin: io.h: fix random busted whitespace 2009-12-15 00:16:04 -05:00
ioctl.h
ioctls.h
ipcbuf.h
ipipe.h Blackfin/ipipe: update version stamp 2009-12-15 00:15:21 -05:00
ipipe_base.h Blackfin/ipipe: prepare status bitops for SMP support 2009-12-15 00:15:12 -05:00
irq.h
irq_handler.h
irq_regs.h
irqflags.h Blackfin/ipipe: fix forward ref to barrier() 2009-12-15 00:15:15 -05:00
Kbuild
kdebug.h
kgdb.h Blackfin: kgdb: punt dead code 2009-12-15 00:15:40 -05:00
kmap_types.h
l1layout.h
linkage.h
local.h
mem_init.h Blackfin: punt dead/unused flash mem_init settings 2009-12-15 00:15:33 -05:00
mem_map.h
mman.h
mmu.h
mmu_context.h Blackfin/ipipe: introduce support for CONFIG_MPU 2009-12-15 00:15:18 -05:00
module.h module: make MODULE_SYMBOL_PREFIX into a CONFIG option 2009-12-15 16:28:26 +10:30
msgbuf.h
mutex.h
nand.h
page.h FDPIC: Respect PT_GNU_STACK exec protection markings when creating NOMMU stack 2010-01-06 18:16:02 -08:00
page_offset.h
param.h
pci.h Blackfin: convert to asm-generic pci headers 2009-12-15 00:16:07 -05:00
pda.h
percpu.h
pgalloc.h
pgtable.h
poll.h
portmux.h
posix_types.h
processor.h
ptrace.h Blackfin: comment the FDPIC PTRACE defines 2009-12-15 00:15:23 -05:00
reboot.h
resource.h
rwlock.h
scatterlist.h
sections.h
segment.h
sembuf.h
serial.h
setup.h
shmbuf.h
shmparam.h
sigcontext.h
siginfo.h
signal.h
smp.h
socket.h
sockios.h
spinlock.h
spinlock_types.h
stat.h
statfs.h
string.h
swab.h
system.h
termbits.h
termios.h
thread_info.h Blackfin: add support for TIF_NOTIFY_RESUME 2009-12-15 00:16:52 -05:00
time.h
timex.h
tlb.h
tlbflush.h
topology.h
trace.h
traps.h
types.h
uaccess.h
ucontext.h
unaligned.h
unistd.h Blackfin: define __NR_recvmmsg 2009-12-15 04:07:32 -05:00
user.h
xor.h