diff options
author | 2002-04-22 16:25:46 +0000 | |
---|---|---|
committer | 2002-04-22 16:25:46 +0000 | |
commit | 34f3406df40b31008eba426076e34a32c7818421 (patch) | |
tree | 350a8e7260846c5d113c5a1b55b908cfcb40ba43 | |
parent | do not auto-enable KerberosAuthentication; ok djm@, provos@, deraadt@ (diff) | |
download | wireguard-openbsd-34f3406df40b31008eba426076e34a32c7818421.tar.xz wireguard-openbsd-34f3406df40b31008eba426076e34a32c7818421.zip |
Uncommit. Since this came out of the blue, without anyone else having
known of it; and since the commit message does not give the rest of us
any feeling that this was tested by anyone, this is being removed. This
is not an area where one commits because just art agrees. And that is
what the commit message says.
-rw-r--r-- | sys/uvm/uvm_km.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/uvm/uvm_km.c b/sys/uvm/uvm_km.c index 5ba6b314d17..99367a74feb 100644 --- a/sys/uvm/uvm_km.c +++ b/sys/uvm/uvm_km.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uvm_km.c,v 1.29 2002/04/22 12:50:34 mickey Exp $ */ +/* $OpenBSD: uvm_km.c,v 1.30 2002/04/22 16:25:46 deraadt Exp $ */ /* $NetBSD: uvm_km.c,v 1.42 2001/01/14 02:10:01 thorpej Exp $ */ /* @@ -507,7 +507,7 @@ uvm_km_kmemalloc(map, obj, size, flags) */ if (__predict_false(uvm_map(map, &kva, size, obj, UVM_UNKNOWN_OFFSET, - 0, UVM_MAPFLAG(UVM_PROT_RW, UVM_PROT_RW, UVM_INH_NONE, + 0, UVM_MAPFLAG(UVM_PROT_ALL, UVM_PROT_ALL, UVM_INH_NONE, UVM_ADV_RANDOM, (flags & UVM_KMF_TRYLOCK))) != KERN_SUCCESS)) { UVMHIST_LOG(maphist, "<- done (no VM)",0,0,0,0); @@ -569,10 +569,11 @@ uvm_km_kmemalloc(map, obj, size, flags) if (UVM_OBJ_IS_INTRSAFE_OBJECT(obj)) { pmap_kenter_pa(loopva, VM_PAGE_TO_PHYS(pg), - UVM_PROT_RW); + VM_PROT_ALL); } else { pmap_enter(map->pmap, loopva, VM_PAGE_TO_PHYS(pg), - UVM_PROT_RW, PMAP_WIRED | UVM_PROT_RW); + UVM_PROT_ALL, + PMAP_WIRED | VM_PROT_READ | VM_PROT_WRITE); } loopva += PAGE_SIZE; offset += PAGE_SIZE; |