Change pmap_protect() so that execute access can be removed without
simultaneously removing write access.
This commit is contained in:
parent
671d7d80a4
commit
5f9e5adf8b
@ -1480,7 +1480,8 @@ pmap_protect(pmap_t pmap, vm_offset_t sva, vm_offset_t eva, vm_prot_t prot)
|
||||
return;
|
||||
}
|
||||
|
||||
if (prot & VM_PROT_WRITE)
|
||||
if ((prot & (VM_PROT_WRITE|VM_PROT_EXECUTE)) ==
|
||||
(VM_PROT_WRITE|VM_PROT_EXECUTE))
|
||||
return;
|
||||
|
||||
if ((sva & PAGE_MASK) || (eva & PAGE_MASK))
|
||||
|
Loading…
x
Reference in New Issue
Block a user