diff options
author | 2018-01-15 21:30:49 +0000 | |
---|---|---|
committer | 2018-01-15 21:30:49 +0000 | |
commit | 6ded9c0a6d8f26504b28d619171360cd999a4d96 (patch) | |
tree | ee9b60c7abc63cf9f4ca8611f40d1586bfc91b6c | |
parent | We have no deprecated regress variables in our tree. Remove the (diff) | |
download | wireguard-openbsd-6ded9c0a6d8f26504b28d619171360cd999a4d96.tar.xz wireguard-openbsd-6ded9c0a6d8f26504b28d619171360cd999a4d96.zip |
mask out (ie. ignore) the bit which will be MAP_STACK in the future,
so diffs in snapshots can exercise the change in a less disruptive way
idea with sthen, ok kettenis tom others
-rw-r--r-- | sys/uvm/uvm_mmap.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/uvm/uvm_mmap.c b/sys/uvm/uvm_mmap.c index 634d1228aa9..18c0590166b 100644 --- a/sys/uvm/uvm_mmap.c +++ b/sys/uvm/uvm_mmap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uvm_mmap.c,v 1.144 2018/01/02 06:38:45 guenther Exp $ */ +/* $OpenBSD: uvm_mmap.c,v 1.145 2018/01/15 21:30:49 deraadt Exp $ */ /* $NetBSD: uvm_mmap.c,v 1.49 2001/02/18 21:19:08 chs Exp $ */ /* @@ -375,6 +375,7 @@ sys_mmap(struct proc *p, void *v, register_t *retval) size = (vsize_t) SCARG(uap, len); prot = SCARG(uap, prot); flags = SCARG(uap, flags); + flags &= ~0x4000; /* XXX MAP_STACK coming in 2018 */ fd = SCARG(uap, fd); pos = SCARG(uap, pos); |