From: deraadt Date: Sun, 11 Feb 2018 04:09:48 +0000 (+0000) Subject: Can mask MAP_STACK by name rather than number X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=c7a4e3cb95f040ffc25562e15ebca297ee325604;p=openbsd Can mask MAP_STACK by name rather than number --- 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);