riscv: default to non-executable stack

There's no need to worry about potential backwards compatibility issues
in a brand-new architecture, so avoid stack PROT_EXEC as with arm64.

Discussed with:	br
This commit is contained in:
Ed Maste 2019-02-06 19:22:15 +00:00
parent 0235d5e283
commit ac979af451

View File

@ -77,7 +77,7 @@ struct sysentvec elf64_freebsd_sysvec = {
.sv_maxuser = VM_MAXUSER_ADDRESS, .sv_maxuser = VM_MAXUSER_ADDRESS,
.sv_usrstack = USRSTACK, .sv_usrstack = USRSTACK,
.sv_psstrings = PS_STRINGS, .sv_psstrings = PS_STRINGS,
.sv_stackprot = VM_PROT_ALL, .sv_stackprot = VM_PROT_READ | VM_PROT_WRITE,
.sv_copyout_strings = exec_copyout_strings, .sv_copyout_strings = exec_copyout_strings,
.sv_setregs = exec_setregs, .sv_setregs = exec_setregs,
.sv_fixlimit = NULL, .sv_fixlimit = NULL,