summaryrefslogtreecommitdiffstats
path: root/sys/vm
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2014-06-04 15:18:46 +0000
committerkib <kib@FreeBSD.org>2014-06-04 15:18:46 +0000
commitff1d21a86cd2787db5c4e551cc4ef6dbb3abc0e8 (patch)
tree86f8a92312c26f98183f01767cb34f2ac36ef642 /sys/vm
parent912232c83bca1ddabcacea0b9fd9a631dd9976eb (diff)
downloadFreeBSD-src-ff1d21a86cd2787db5c4e551cc4ef6dbb3abc0e8.zip
FreeBSD-src-ff1d21a86cd2787db5c4e551cc4ef6dbb3abc0e8.tar.gz
MFC r266780:
Remove the assert which can be triggered by the userspace.
Diffstat (limited to 'sys/vm')
-rw-r--r--sys/vm/vm_map.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/vm/vm_map.c b/sys/vm/vm_map.c
index 9093ea5..1e1c567 100644
--- a/sys/vm/vm_map.c
+++ b/sys/vm/vm_map.c
@@ -1986,11 +1986,8 @@ vm_map_protect(vm_map_t map, vm_offset_t start, vm_offset_t end,
*/
if ((current->eflags & MAP_ENTRY_USER_WIRED) != 0 &&
(current->protection & VM_PROT_WRITE) != 0 &&
- (old_prot & VM_PROT_WRITE) == 0) {
- KASSERT(old_prot != VM_PROT_NONE,
- ("vm_map_protect: inaccessible wired map entry"));
+ (old_prot & VM_PROT_WRITE) == 0)
vm_fault_copy_entry(map, map, current, current, NULL);
- }
/*
* When restricting access, update the physical map. Worry
OpenPOWER on IntegriCloud