[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH] x86/PV: fix off-by-one in I/O bitmap limit check



Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>

--- a/xen/arch/x86/pv/emul-priv-op.c
+++ b/xen/arch/x86/pv/emul-priv-op.c
@@ -136,7 +136,7 @@ static bool guest_io_okay(unsigned int p
     if ( iopl_ok(v, regs) )
         return true;
 
-    if ( v->arch.pv_vcpu.iobmp_limit > (port + bytes) )
+    if ( v->arch.pv_vcpu.iobmp_limit >= (port + bytes) )
     {
         union { uint8_t bytes[2]; uint16_t mask; } x;
 




_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.