]> xenbits.xensource.com Git - xen.git/commit
x86/HVM: don't crash guest in hvmemul_find_mmio_cache()
authorJan Beulich <jbeulich@suse.com>
Fri, 3 May 2019 09:04:32 +0000 (11:04 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 3 May 2019 09:04:32 +0000 (11:04 +0200)
commit3f5490d7e442db3dc65d784ee3c087f7e41f5a06
treef6ca272bcf1298e8c209acd1ce43a3a3ad83dac2
parentd06f5613e5df529f3e6aea94d648a3c62e65a403
x86/HVM: don't crash guest in hvmemul_find_mmio_cache()

Commit 35a61c05ea ("x86emul: adjust handling of AVX2 gathers") builds
upon the fact that the domain will actually survive running out of MMIO
result buffer space. Drop the domain_crash() invocation. Also delay
incrementing of the usage counter, such that the function can't possibly
use/return an out-of-bounds slot/pointer in case execution subsequently
makes it into the function again without a prior reset of state.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Paul Durrant <paul.durrant@citrix.com>
master commit: a43c1dec246bdee484e6a3de001cc6850a107abe
master date: 2019-03-12 14:39:46 +0100
xen/arch/x86/hvm/emulate.c