ia64/xen-unstable

changeset 5424:02d442d39367

bitkeeper revision 1.1159.258.165 (42a9a534b-NRTORtgH1Qjzz6EjTo6Q)

Ensure we only handle writable pagetable faults taken in guest kernel
mode.
Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@firebug.cl.cam.ac.uk
date Fri Jun 10 14:35:32 2005 +0000 (2005-06-10)
parents 99d9ce2c0a65
children 4bcb6d1a8fc5 58658b628754
files xen/arch/x86/traps.c
line diff
     1.1 --- a/xen/arch/x86/traps.c	Wed Jun 08 17:14:35 2005 +0000
     1.2 +++ b/xen/arch/x86/traps.c	Fri Jun 10 14:35:32 2005 +0000
     1.3 @@ -422,6 +422,7 @@ asmlinkage int do_page_fault(struct xen_
     1.4          }
     1.5  
     1.6          if ( (addr < PAGE_OFFSET) &&
     1.7 +             !VM86_MODE(regs) && ((regs->cs & 3) == 1) && /* ring 1 */
     1.8               ((regs->error_code & 3) == 3) && /* write-protection fault */
     1.9               ptwr_do_page_fault(addr) )
    1.10          {