VirtualBox

Changeset 1163 in vbox for trunk


Ignore:
Timestamp:
Mar 2, 2007 2:43:58 PM (18 years ago)
Author:
vboxsync
Message:

Extended assertions to check for v86 mode

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/PATM/VMMGC/PATMGC.cpp

    r1134 r1163  
    161161
    162162    /* Very important check -> otherwise we have a security leak. */
    163     AssertReturn((pRegFrame->ss & X86_SEL_RPL) == 1, VERR_ACCESS_DENIED);
     163    AssertReturn(!pRegFrame->eflags.Bits.u1VM && (pRegFrame->ss & X86_SEL_RPL) == 1, VERR_ACCESS_DENIED);
    164164    Assert(PATMIsPatchGCAddr(pVM, (RTGCPTR)pRegFrame->eip));
    165165
     
    413413    int rc;
    414414
    415     Assert((pRegFrame->ss & X86_SEL_RPL) == 1);
     415    AssertReturn(!pRegFrame->eflags.Bits.u1VM && (pRegFrame->ss & X86_SEL_RPL) == 1, VERR_ACCESS_DENIED);
    416416
    417417    /* Int 3 in PATM generated code? (most common case) */
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette