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

[Xen-changelog] Ensure we only handle writable pagetable faults taken in guest kernel



ChangeSet 1.1899, 2005/06/10 15:35:32+01:00, kaf24@xxxxxxxxxxxxxxxxxxxx

        Ensure we only handle writable pagetable faults taken in guest kernel
        mode.
        Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>



 traps.c |    1 +
 1 files changed, 1 insertion(+)


diff -Nru a/xen/arch/x86/traps.c b/xen/arch/x86/traps.c
--- a/xen/arch/x86/traps.c      2005-06-10 11:04:54 -04:00
+++ b/xen/arch/x86/traps.c      2005-06-10 11:04:54 -04:00
@@ -422,6 +422,7 @@
         }
 
         if ( (addr < PAGE_OFFSET) &&
+             !VM86_MODE(regs) && ((regs->cs & 3) == 1) && /* ring 1 */
              ((regs->error_code & 3) == 3) && /* write-protection fault */
              ptwr_do_page_fault(addr) )
         {

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

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