aboutsummaryrefslogtreecommitdiff
path: root/sys/conf
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2018-09-02 20:07:36 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2018-09-02 20:07:36 +0000
commit9eb958988a31a375385b4ff1088ab9da6e55c2de (patch)
treee90edf997549503fd5f420401b0153d30ae7cefa /sys/conf
parentd4be3789fe21e918ea3bdb498102ef12ffa21626 (diff)
downloadsrc-9eb958988a31a375385b4ff1088ab9da6e55c2de.tar.gz
src-9eb958988a31a375385b4ff1088ab9da6e55c2de.zip
Swap order of dererencing PCPU curpmap and checking for usermode in
trap_pfault() KPTI violation check. EFI RT may set curpmap to NULL for the duration of the call for some machines (PCID but no INVPCID). Since apparently EFI RT code must be ready for exceptions from the calls, avoid dereferencing curpmap until we know that this call does not come from usermode. Reviewed by: kevans Sponsored by: The FreeBSD Foundation MFC after: 1 week Approved by: re (rgrimes) Differential revision: https://reviews.freebsd.org/D16972
Notes
Notes: svn path=/head/; revision=338434
Diffstat (limited to 'sys/conf')
0 files changed, 0 insertions, 0 deletions