]> Pileus Git - ~andy/linux/commit
ARC: [mm] Make stack/heap Non-executable by default
authorVineet Gupta <vgupta@synopsys.com>
Wed, 5 Jun 2013 12:19:14 +0000 (17:49 +0530)
committerVineet Gupta <vgupta@synopsys.com>
Sat, 22 Jun 2013 13:53:20 +0000 (19:23 +0530)
commit3abc94480225677ea08af817d56edfb0df9e9b80
tree364c3c03f33d3934f53621669aba62023d5a5633
parent2ed21dae021db1f9f988494ceee519290217520d
ARC: [mm] Make stack/heap Non-executable by default

1. For VM_EXEC based delayed dcache/icache flush, reduces the number of
   flushes.

2. Makes this security feature ON by default rather than OFF before.

3. Applications can use mprotect() to selectively override this.

4. ELF binaries have a GNU_STACK segment which can easily override the
   kernel default permissions.
   For nested-functions/trampolines, gcc already auto-enables executable
   stack in elf. Others needing this can use -Wl,-z,execstack option.

Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
arch/arc/Kconfig
arch/arc/include/asm/page.h