x86emul: fix huge bit offset handling
authorJan Beulich <jbeulich@suse.com>
Tue, 22 Nov 2016 12:49:06 +0000 (13:49 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 22 Nov 2016 12:49:06 +0000 (13:49 +0100)
commit1c6c2d60d205f71ede0fbbd9047e459112f576db
treef3388039091dc2932ae2636dc895bb4f30ce9434
parentfb08f7d009a64b96efa4462c9d19ed6881936859
x86emul: fix huge bit offset handling

We must never chop off the high 32 bits.

This is CVE-2016-9383 / XSA-195.

Reported-by: George Dunlap <george.dunlap@citrix.com>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/x86_emulate/x86_emulate.c