From: Vineet Gupta Date: Wed, 5 Jun 2013 12:19:14 +0000 (+0530) Subject: ARC: [mm] Make stack/heap Non-executable by default X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~38^2~19 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3abc94480225677ea08af817d56edfb0df9e9b80;p=pandora-kernel.git 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 --- Reading git-diff-tree failed