In ARMv8.1 ARM has added a process state bit to disable access to userspace
authorandrew <andrew@FreeBSD.org>
Thu, 13 Apr 2017 13:46:01 +0000 (13:46 +0000)
committerandrew <andrew@FreeBSD.org>
Thu, 13 Apr 2017 13:46:01 +0000 (13:46 +0000)
commitd73bb06e63891e9a9ceb0dfddaded039a7424948
treee20bd6505e7eda0a7ce52496ee04eb06e7952db3
parenta19f569aadd741316cd76ec1766d63054d65793f
In ARMv8.1 ARM has added a process state bit to disable access to userspace
from the kernel. Make use of this to restrict accessing userspace to just
the functions that explicitly handle crossing the user kernel boundary.

Reported by: kib
Sponsored by: DARPA, AFRL
Differential Revision: https://reviews.freebsd.org/D10371
sys/arm64/arm64/copyinout.S
sys/arm64/arm64/machdep.c
sys/arm64/arm64/mp_machdep.c
sys/arm64/arm64/support.S
sys/arm64/include/armreg.h
sys/arm64/include/asm.h
sys/arm64/include/cpufunc.h