git: kernel - Implement spectre mitigations part 3 (stabilization)

Matthew Dillon dillon at crater.dragonflybsd.org
Thu Jan 11 12:51:27 PST 2018


commit 26c7e964f6a833dbc90ca58e29fc63bccecc0b55
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Thu Jan 11 12:48:18 2018 -0800

    kernel - Implement spectre mitigations part 3 (stabilization)
    
    * Fix a bug in the system call entry code.  The wrong stack pointer
      was being loaded for KMMUENTRY_SYSCALL and KMMUENTRY_SYSCALL was
      using an offset that did not exist in certain situations.
    
    * Load the correct stack pointer, but also change KMMUENTRY_CORE
      to not use stack-relative loads and stores.  Instead it uses
      the trampframe directly via %gs:BLAH
    
    Reported-by: zrj

Summary of changes:
 sys/cpu/x86_64/include/asmacros.h    | 4 ++--
 sys/platform/pc64/x86_64/exception.S | 7 +++++++
 2 files changed, 9 insertions(+), 2 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/26c7e964f6a833dbc90ca58e29fc63bccecc0b55


-- 
DragonFly BSD source repository


More information about the Commits mailing list