]> xenbits.xensource.com Git - xen.git/commit
x86/traps: Fix %dr6 handing in #DB handler
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 26 Mar 2018 08:02:34 +0000 (09:02 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 8 May 2018 17:13:13 +0000 (18:13 +0100)
commitf7d457524c7d4fbf8fba635452e12c057fe71e60
treec6c6fe39c705555a28e828b79e46af9d1b386532
parentb190f0c0c1dff13ce92c5f056a87d6c81d3ee8f9
x86/traps: Fix %dr6 handing in #DB handler

Most bits in %dr6 accumulate, rather than being set directly based on the
current source of #DB.  Have the handler follow the manuals guidance, which
avoids leaking hypervisor debugging activities into guest context.

This is part of XSA-260 / CVE-2018-8897

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/traps.c
xen/include/asm-x86/debugreg.h