diff options
author | Konstantin Belousov <kib@FreeBSD.org> | 2022-08-09 00:56:54 +0000 |
---|---|---|
committer | Konstantin Belousov <kib@FreeBSD.org> | 2022-08-24 19:11:40 +0000 |
commit | 95f773e59482b1a3462d2fe3901532d51fb053b3 (patch) | |
tree | e8748a090d137f9182d8221c829a367f36086297 /sys/i386/i386/gdb_machdep.c | |
parent | 0a9b374ecc85d483a52c2bfad548b1bbda496be3 (diff) | |
download | src-95f773e59482b1a3462d2fe3901532d51fb053b3.tar.gz src-95f773e59482b1a3462d2fe3901532d51fb053b3.zip |
i386 copyout_fast: improve detection of a fault on accessing userspace
Do not blindly account a page fault occuring on the trampoline area,
as the userspace access fault. Check that it occured exactly in the
instruction that does that.
This avoids unneeded switches of address space on faults not needing the
switch, effectively converting machine resets due to tripple faults,
into regular panics.
Reviewed by: jhb
Tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D36302
Diffstat (limited to 'sys/i386/i386/gdb_machdep.c')
0 files changed, 0 insertions, 0 deletions