From c7a4e3cb95f040ffc25562e15ebca297ee325604 Mon Sep 17 00:00:00 2001 From: deraadt Date: Sun, 11 Feb 2018 04:09:48 +0000 Subject: [PATCH] Can mask MAP_STACK by name rather than number --- sys/uvm/uvm_mmap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/uvm/uvm_mmap.c b/sys/uvm/uvm_mmap.c index 18c0590166b..8d581afef22 100644 --- a/sys/uvm/uvm_mmap.c +++ b/sys/uvm/uvm_mmap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uvm_mmap.c,v 1.145 2018/01/15 21:30:49 deraadt Exp $ */ +/* $OpenBSD: uvm_mmap.c,v 1.146 2018/02/11 04:09:48 deraadt Exp $ */ /* $NetBSD: uvm_mmap.c,v 1.49 2001/02/18 21:19:08 chs Exp $ */ /* @@ -375,7 +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 */ + flags &= ~MAP_STACK; /* XXX MAP_STACK coming in 2018 */ fd = SCARG(uap, fd); pos = SCARG(uap, pos); -- 2.20.1