From 6ded9c0a6d8f26504b28d619171360cd999a4d96 Mon Sep 17 00:00:00 2001 From: deraadt Date: Mon, 15 Jan 2018 21:30:49 +0000 Subject: [PATCH] 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 --- sys/uvm/uvm_mmap.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- 2.20.1