diff options
author | kib <kib@FreeBSD.org> | 2008-08-18 08:47:27 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2008-08-18 08:47:27 +0000 |
commit | 0d74400a62306625ffa8bb35cba7925b956ec864 (patch) | |
tree | 42ad3ba8578b6509c62721c7dec184daa649fb73 /share | |
parent | bcf5f4ae388cfb02d90c9ced7c2d75c212de4ae4 (diff) | |
download | FreeBSD-src-0d74400a62306625ffa8bb35cba7925b956ec864.zip FreeBSD-src-0d74400a62306625ffa8bb35cba7925b956ec864.tar.gz |
The doreti_iret_fault code is always called with gs base MSR containing
kernel gs base, because %rip is adjusted only on kernel-mode trap caused
by iretq execution. On the other hand, the stack contains (hardware
part of) trap frame from the usermode. As a consequence, checking for
frame mode and doing swapgs causes the kernel to enter trap() with
usermode gs base.
Remove the check for mode and conditional swapgs, we already have right
gs base in the MSR.
Submitted by: Nate Eldredge <neldredge math ucsd edu>
MFC after: 3 days
Diffstat (limited to 'share')
0 files changed, 0 insertions, 0 deletions