diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2018-01-15 21:30:50 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2018-01-15 21:30:50 +0000 |
commit | 518c7c08fad0907304021c3828a02aa019a61950 (patch) | |
tree | 403d8cce639e3924dde4dfe82742821b55e72e99 | |
parent | 10fe1d546df0889b277ba5159808c03776637a84 (diff) |
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); |