x86/alternatives: correct near branch check
authorJan Beulich <jbeulich@suse.com>
Wed, 9 Mar 2016 15:51:16 +0000 (16:51 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 9 Mar 2016 15:51:16 +0000 (16:51 +0100)
commitcd29140ef0e65a33d62e7f5ee843077e51913f01
treefb657f68c0117668bb619d9b217ef55440a2df15
parent882b186d56f1b294b57ea95dd1d83bc25def3c60
x86/alternatives: correct near branch check

Make sure the near JMP/CALL check doesn't consume uninitialized
data, not even in a benign way. And relax the length check at once.

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