x86: validate VM assist value in arch_set_info_guest()
authorJan Beulich <jbeulich@suse.com>
Wed, 22 Apr 2020 11:01:10 +0000 (13:01 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 22 Apr 2020 11:01:10 +0000 (13:01 +0200)
commita62c6fe05c4ae905b7d4cb0ca946508b7f96d522
tree0568e8d7564bf60ebde74a16875938c5f9448b9f
parentf13404d57f55a97838f1c16a366fbc3231ec21f1
x86: validate VM assist value in arch_set_info_guest()

While I can't spot anything that would go wrong, just like the
respective hypercall only permits applicable bits to be set, we should
also do so when loading guest context.

Reported-by: Andrew Cooper <andrew.cooper3@citrix.com>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/domain.c