• Vineet Gupta's avatar
    ARC: [mm] Make stack/heap Non-executable by default · 3abc9448
    Vineet Gupta authored
    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>
    3abc9448
page.h 3.04 KB