git: kernel - Fix SMAP/SMEP caught user mode access part 2/2.
Matthew Dillon
dillon at crater.dragonflybsd.org
Sat Jun 15 15:08:10 PDT 2019
commit 921ef7b6495969fa8fb02d6b7ec9b34d80c01c6c
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date: Sat Jun 15 15:04:04 2019 -0700
kernel - Fix SMAP/SMEP caught user mode access part 2/2.
* Finish implementing SMAP exception handling support by
properly detecting it in trap() and generating a panic().
Otherwise the cpu just locks up in a page-fault loop without
any indication as to why on the console.
* To properly support SMAP, make sure AC is cleared on system calls
(it is already cleared on any interrupt or exception by the frame
push code but I missed the syscall entry code).
Summary of changes:
sys/platform/pc64/x86_64/machdep.c | 2 +-
sys/platform/pc64/x86_64/mp_machdep.c | 2 +-
sys/platform/pc64/x86_64/trap.c | 61 ++++++++++++++++++++++++++++-------
3 files changed, 51 insertions(+), 14 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/921ef7b6495969fa8fb02d6b7ec9b34d80c01c6c
--
DragonFly BSD source repository
More information about the Commits
mailing list