Skip to content
Commit 3abc9448 authored by Vineet Gupta's avatar Vineet Gupta
Browse files

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: default avatarVineet Gupta <vgupta@synopsys.com>
parent 2ed21dae
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment