x86/pvhvm: properly range-check PHYSDEVOP_map_pirq/MAP_PIRQ_TYPE_GSI
authorIan Jackson <Ian.Jackson@eu.citrix.com>
Wed, 5 Sep 2012 11:29:52 +0000 (12:29 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Wed, 5 Sep 2012 11:29:52 +0000 (12:29 +0100)
commit76ea16276c15d89c3b1d67a58e55fa11cf42a1d7
tree3a8b840f4c0cd05a59e2c4b5e654a881cd97a1f8
parent15638f14e9a25032676960a46b5ba68079d29aaa
x86/pvhvm: properly range-check PHYSDEVOP_map_pirq/MAP_PIRQ_TYPE_GSI

This is being used as a array index, and hence must be validated before
use.

This is XSA-16 / CVE-2012-3498.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/physdev.c