git: DragonFly_RELEASE_5_6 kernel - Fix SMAP/SMEP caught user mode access part 2/2.
Matthew Dillon
dillon at crater.dragonflybsd.org
Sat Jun 15 15:08:31 PDT 2019
commit 5119e9d2dbae1d865ef34eaa923c1e40d50c76a1
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/5119e9d2dbae1d865ef34eaa923c1e40d50c76a1
--
DragonFly BSD source repository
More information about the Commits
mailing list