aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/sys
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2020-10-21 21:40:33 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2020-10-21 21:40:33 +0000
commit69c09181d422f733e133280473a3450d0c249776 (patch)
treeb8d188115f40e01efa622ee76569d13178d1d5ad /lib/libc/sys
parentc7cffd65c5d858425e90b847d2e8e583e3b13bf7 (diff)
Notes
Diffstat (limited to 'lib/libc/sys')
-rw-r--r--lib/libc/sys/mmap.29
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/libc/sys/mmap.2 b/lib/libc/sys/mmap.2
index 32cb9f09e43fe..7d739e000b31e 100644
--- a/lib/libc/sys/mmap.2
+++ b/lib/libc/sys/mmap.2
@@ -28,7 +28,7 @@
.\" @(#)mmap.2 8.4 (Berkeley) 5/11/95
.\" $FreeBSD$
.\"
-.Dd February 26, 2020
+.Dd October 21, 2020
.Dt MMAP 2
.Os
.Sh NAME
@@ -351,6 +351,8 @@ Stacks created with
automatically grow.
Guards prevent inadvertent use of the regions into which those
stacks can grow without requiring mapping the whole stack in advance.
+The size of the guard, in pages, is specified by sysctl
+.Dv security.bsd.stack_guard_page .
.El
.Pp
The
@@ -452,6 +454,11 @@ or
was specified.
At least one of these flags must be included.
.It Bq Er EINVAL
+.Dv MAP_STACK
+was specified and
+.Va len
+is less than or equal to the guard size.
+.It Bq Er EINVAL
.Dv MAP_FIXED
was specified and the
.Fa addr