Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Please login to access the resource
openSUSE:Leap:15.0:Rings:1-MinimalX
xen
5a856a2b-x86-emul-fix-64bit-decoding-of-segment...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 5a856a2b-x86-emul-fix-64bit-decoding-of-segment-overrides.patch of Package xen
# Commit b7dce29d9faf3597d009c853ed1fcbed9f7a7f68 # Date 2018-02-15 11:08:27 +0000 # Author Andrew Cooper <andrew.cooper3@citrix.com> # Committer Andrew Cooper <andrew.cooper3@citrix.com> x86/emul: Fix the decoding of segment overrides in 64bit mode Explicit segment overides other than %fs and %gs are documented as ignored by both Intel and AMD. In practice, this means that: * Explicit uses of %ss don't actually yield #SS[0] for non-canonical memory references. * Explicit uses of %{e,c,d}s don't override %rbp/%rsp-based memory references to yield #GP[0] for non-canonical memory references. Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com> Reviewed-by: Jan Beulich <jbeulich@suse.com> --- a/xen/arch/x86/x86_emulate/x86_emulate.c +++ b/xen/arch/x86/x86_emulate/x86_emulate.c @@ -2463,6 +2463,10 @@ x86_decode( } done_prefixes: + /* %{e,c,s,d}s overrides are ignored in 64bit mode. */ + if ( mode_64bit() && override_seg < x86_seg_fs ) + override_seg = x86_seg_none; + if ( rex_prefix & REX_W ) op_bytes = 8;
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor