freebsd-dev/sys/riscv
John Baldwin d198cb6d83 Restrict setting PTE execute permissions on RISC-V.
Previously, RISC-V was enabling execute permissions in PTEs for any
readable page.  Now, execute permissions are only enabled if they were
explicitly specified (e.g. via PROT_EXEC to mmap).  The one exception
is that the initial kernel mapping in locore still maps all of the
kernel RWX.

While here, change the fault type passed to vm_fault and
pmap_fault_fixup to only include a single VM_PROT_* value representing
the faulting access to match other architectures rather than passing a
bitmask.

Reviewed by:	markj
Sponsored by:	DARPA
Differential Revision:	https://reviews.freebsd.org/D17783
2018-11-01 22:23:15 +00:00
..
conf Compile in VERBOSE_SYSINIT support by default, remain silent by default 2018-10-31 22:38:19 +00:00
include Restrict setting PTE execute permissions on RISC-V. 2018-11-01 22:23:15 +00:00
riscv Restrict setting PTE execute permissions on RISC-V. 2018-11-01 22:23:15 +00:00