]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit - sys/i386/isa/npx.c
Revert r323722. A better fix will be committed shortly, as well as
authorKonstantin Belousov <kib@FreeBSD.org>
Thu, 28 Sep 2017 08:38:24 +0000 (08:38 +0000)
committerKonstantin Belousov <kib@FreeBSD.org>
Thu, 28 Sep 2017 08:38:24 +0000 (08:38 +0000)
commitd3c968bf844340d6f8c7171650e28364ac2ef20a
treeb2a623f87eb18639d5904f78574df45f8b14554a
parent352035746fc8eb7617067aa41837f4cbef16a2a3
Revert r323722.  A better fix will be committed shortly, as well as
some still useful bits of the reverted revision.

The problem with the committed fix is that there are still issues with
returning from NMI, when NMI interrupted kernel in a moment where the
kernel segments selectors were still not loaded into registers.  If
this happens, the NMI return would loose the userspace selectors
because r323722 does not reload segment registers on return to kernel
mode.

Fixing the problem is complicated.  Since an alternative approach to
handle the original bug exists, it makes sence to stop adding more
complexity.

Discussed with: bde
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
sys/i386/i386/apic_vector.s
sys/i386/i386/db_trace.c
sys/i386/i386/exception.s
sys/i386/i386/locore.s
sys/i386/i386/machdep.c
sys/i386/i386/trap.c
sys/i386/include/md_var.h
sys/i386/isa/npx.c
sys/kern/imgact_aout.c