x86/emul: Avoid #UD in SIMD stubs
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 7 Mar 2017 23:32:24 +0000 (23:32 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 8 Mar 2017 13:06:09 +0000 (13:06 +0000)
commitf9adc1e66098e96861af49ca2d5a223ad654dec6
tree0504a9ffbf1bca1b86ae59db49bed1a3b664fc67
parent4361e80d228655b100bae5d19b489b39d20aa68d
x86/emul: Avoid #UD in SIMD stubs

v{,u}comis{s,d}, and vcvt{,t}s{s,d}2si are two-operand instructions, while
vzero{all,upper} take no operands.  Each require vex.reg set to ~0 to avoid
suffering #UD.

Spotted while fuzzing with AFL
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/x86_emulate/x86_emulate.c