]> xenbits.xensource.com Git - people/tklengyel/xen.git/commit
x86/gdbsx: convert "user" to "guest" accesses
authorJan Beulich <jbeulich@suse.com>
Thu, 25 Feb 2021 14:36:54 +0000 (15:36 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 25 Feb 2021 14:36:54 +0000 (15:36 +0100)
commitef20ffd13d76c9be6f14c01296d44fc1a9e055f8
treed3efa8a5ddca6de6111f66af95f96e26f54af026
parenta70f4935b4ff4b3b46ae4ec7645717777271062b
x86/gdbsx: convert "user" to "guest" accesses

Using copy_{from,to}_user(), this code was assuming to be called only by
PV guests. Use copy_{from,to}_guest() instead, transforming the incoming
structure field into a guest handle (the field should really have been
one in the first place). Also do not transform the debuggee address into
a pointer.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Roger Pau Monné <roger.pau@citrix.com>
Release-Acked-by: Ian Jackson <iwj@xenproject.org>
xen/arch/x86/debug.c
xen/arch/x86/domctl.c
xen/include/asm-x86/debugger.h