Konstantin Belousov cef5e2bd91 Use the known valid segment when accessing memory in #UD handler.
Make sure that %eflags.D flag is cleared for hook.
Improve comments.

When #UD dtrace code checks for a registered hook before checking that
the exception was raised from kernel mode, we might run with the user
%ds, trapping on access.  Exception entry from userspace automatically
load valid %ss, which we can use there instead.

Noted and reviewed by:	bde
Sponsored by:	The FreeBSD Foundation
MFC after:	3 days
2017-08-19 21:00:02 +00:00
..
2017-08-18 16:38:33 +00:00
2017-08-16 22:54:35 +00:00
2017-07-09 13:53:32 +00:00
2017-08-16 19:40:07 +00:00
2017-08-16 08:49:11 +00:00