kernel - Intel user/kernel separation MMU bug fix part 5
commit6a65d560f496559af75d4ea183f3812352c313aa
authorMatthew Dillon <dillon@apollo.backplane.com>
Sat, 6 Jan 2018 07:53:47 +0000 (5 23:53 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sat, 6 Jan 2018 08:00:39 +0000 (6 00:00 -0800)
tree75ce5f7a8fb44b13c2bcce4bdd542bee19ef9564
parent6d08986d6abb25d6e9e524c8cbefd3e513259531
kernel - Intel user/kernel separation MMU bug fix part 5

* Fix iretq fault handling.  As I thought, I messed it up with
  the trampoline patches.  Fixing it involves issuing the correct
  KMMU* macros to ensure that the code is on the correct stack
  and has the correct mmu context.

  Revalidate with a test program that uses a signal handler to
  change the stack segment descriptor to something it shouldn't
  be.

* Get rid of the "kernel trap 9..." console message for the iretq
  fault case.
sys/cpu/x86_64/include/asmacros.h
sys/platform/pc64/x86_64/exception.S
sys/platform/pc64/x86_64/ipl.s
sys/platform/pc64/x86_64/trap.c