]> xenbits.xensource.com Git - xen.git/commit
multicall: deal with early exit conditions
authorJan Beulich <jbeulich@suse.com>
Tue, 2 May 2017 12:45:02 +0000 (14:45 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 2 May 2017 12:45:02 +0000 (14:45 +0200)
commit22c096c99d8c05833c3c19870e36efb2dd4e8013
tree93de51e431cf5d681704427879d09d29f693d432
parentba39e9b2108319d2b7b842781106386b8ed62fab
multicall: deal with early exit conditions

In particular changes to guest privilege level require the multicall
sequence to be aborted, as hypercalls are permitted from kernel mode
only. While likely not very useful in a multicall, also properly handle
the return value in the HYPERVISOR_iret case (which should be the guest
specified value).

This is XSA-213.

Reported-by: Jann Horn <jannh@google.com>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Julien Grall <julien.grall@arm.com>
xen/arch/arm/traps.c
xen/arch/x86/pv/hypercall.c
xen/common/multicall.c
xen/include/xen/multicall.h