>>> On 23.11.16 at 16:38, <andrew.coop...@citrix.com> wrote: > All system segments (GDT/IDT/LDT and TR) describe a linear address and limit, > and act similarly to user segments. However all current uses of these tables > in the emulator opencode the address calculations and limit checks. In > particular, no care is taken for access which wrap around the 4GB or > non-canonical boundaries. > > Alter hvm_virtual_to_linear_addr() to cope with performing segmentation checks > on system segments. This involves restricting access checks in the 32bit case > to user segments only, and adding presence/limit checks in the 64bit case. > > When suffering a segmentation fault for a system segments, return > X86EMUL_EXCEPTION but leave the fault injection to the caller. The fault type > depends on the higher level action being performed. > > Signed-off-by: Andrew Cooper <andrew.coop...@citrix.com> > Signed-off-by: Jan Beulich <jbeul...@suse.com>
I think the code that this covered has been moved elsewhere, so please use Reviewed-by: Jan Beulich <jbeul...@suse.com> here instead. Jan _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org https://lists.xen.org/xen-devel