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>
This commit is contained in:
kaf24@firebug.cl.cam.ac.uk committed 2005-06-10 14:35:32 +00:00
1 parent 3dbc2b49f3
commit f88b78b9b6
1 file changed
+1
+1
View File
@@ -422,6 +422,7 @@ asmlinkage int do_page_fault(struct xen_regs *regs)
}
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) )
{
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.