Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F110219177
D26894.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
850 B
Referenced Files
None
Subscribers
None
D26894.diff
View Options
Index: head/lib/libc/sys/mmap.2
===================================================================
--- head/lib/libc/sys/mmap.2
+++ head/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 @@
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
@@ -451,6 +453,11 @@
.Dv MAP_STACK
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
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Feb 16, 7:02 AM (14 h, 47 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16670520
Default Alt Text
D26894.diff (850 B)
Attached To
Mode
D26894: mmap(2): Document guard size and related EINVAL.
Attached
Detach File
Event Timeline
Log In to Comment