A page fault on a non-pageable map is always fatal.

This commit is contained in:
thorpej 1999-06-02 23:26:21 +00:00
parent f2393e39f3
commit acf81da21e

View File

@ -1,4 +1,4 @@
/* $NetBSD: uvm_fault.c,v 1.31 1999/05/28 20:49:51 thorpej Exp $ */
/* $NetBSD: uvm_fault.c,v 1.32 1999/06/02 23:26:21 thorpej Exp $ */
/*
*
@ -615,6 +615,17 @@ ReFault:
return (KERN_PROTECTION_FAILURE);
}
/*
* if the map is not a pageable map, a page fault always fails.
*/
if ((ufi.map->flags & VM_MAP_PAGEABLE) == 0) {
UVMHIST_LOG(maphist,
"<- map %p not pageable", ufi.map, 0, 0, 0);
uvmfault_unlockmaps(&ufi, FALSE);
return (KERN_FAILURE);
}
/*
* "enter_prot" is the protection we want to enter the page in at.
* for certain pages (e.g. copy-on-write pages) this protection can