summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2011-06-03 16:20:29 +0000
committerderaadt <deraadt@openbsd.org>2011-06-03 16:20:29 +0000
commit1a7340635e4f627f47110bf0d40df5fce68c45ac (patch)
tree465b88f177ef3e211d107618565d1dd3d8c1ae65
parentClarify that the ratio between sample rate and block size (diff)
downloadwireguard-openbsd-1a7340635e4f627f47110bf0d40df5fce68c45ac.tar.xz
wireguard-openbsd-1a7340635e4f627f47110bf0d40df5fce68c45ac.zip
randomness might be broken, but this change
a) chooses incorrect kernel memory on the macppc b) perhaps on zaurus too, which does not make it to copyright c) was not tested on those platforms before commit
-rw-r--r--sys/uvm/uvm_map.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/uvm/uvm_map.c b/sys/uvm/uvm_map.c
index 1d22ee61ec6..2f4359c49d6 100644
--- a/sys/uvm/uvm_map.c
+++ b/sys/uvm/uvm_map.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uvm_map.c,v 1.139 2011/06/01 22:29:25 ariane Exp $ */
+/* $OpenBSD: uvm_map.c,v 1.140 2011/06/03 16:20:29 deraadt Exp $ */
/* $NetBSD: uvm_map.c,v 1.86 2000/11/27 08:40:03 chs Exp $ */
/*
@@ -924,8 +924,7 @@ pmap_prefer_retry:
* a page.
*/
sel_addr &= ~(align - 1);
- if (pmap_align != 0)
- sel_addr &= ~(pmap_align - 1);
+ sel_addr &= ~(pmap_align - 1);
KDASSERT(sel_addr <= sel_max - sel_min);
/*