aboutsummaryrefslogtreecommitdiff
path: root/sys/arm64/arm64/mp_machdep.c
diff options
context:
space:
mode:
authorAndrew Turner <andrew@FreeBSD.org>2017-04-13 13:46:01 +0000
committerAndrew Turner <andrew@FreeBSD.org>2017-04-13 13:46:01 +0000
commitd6a0af236d9f4241cd6cff7f6b364a18342a659f (patch)
treee20bd6505e7eda0a7ce52496ee04eb06e7952db3 /sys/arm64/arm64/mp_machdep.c
parentaec085f4d3636f5401a4cfb2224ee11456214f5f (diff)
downloadsrc-d6a0af236d9f4241cd6cff7f6b364a18342a659f.tar.gz
src-d6a0af236d9f4241cd6cff7f6b364a18342a659f.zip
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
Notes
Notes: svn path=/head/; revision=316756
Diffstat (limited to 'sys/arm64/arm64/mp_machdep.c')
-rw-r--r--sys/arm64/arm64/mp_machdep.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/arm64/arm64/mp_machdep.c b/sys/arm64/arm64/mp_machdep.c
index d6f956bb7062..a5afb3f403da 100644
--- a/sys/arm64/arm64/mp_machdep.c
+++ b/sys/arm64/arm64/mp_machdep.c
@@ -272,6 +272,7 @@ init_secondary(uint64_t cpu)
#endif
dbg_monitor_init();
+ pan_enable();
/* Enable interrupts */
intr_enable();