summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2018-02-11 04:09:48 +0000
committerderaadt <deraadt@openbsd.org>2018-02-11 04:09:48 +0000
commitc7a4e3cb95f040ffc25562e15ebca297ee325604 (patch)
tree01c8cf702d44666cef1d2c9ece289d69df86a9ad
parentAdd MAP_STACK flag. Currently masked by mmap() (diff)
downloadwireguard-openbsd-c7a4e3cb95f040ffc25562e15ebca297ee325604.tar.xz
wireguard-openbsd-c7a4e3cb95f040ffc25562e15ebca297ee325604.zip
Can mask MAP_STACK by name rather than number
-rw-r--r--sys/uvm/uvm_mmap.c4
1 files 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);