summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorbluhm <bluhm@openbsd.org>2017-07-20 18:22:25 +0000
committerbluhm <bluhm@openbsd.org>2017-07-20 18:22:25 +0000
commit6f360336fda34e8ce427bd623fc3124cf8920864 (patch)
tree9370c92567959bb2b9e2a4eb303bc59dae1d8e5c /lib/libc
parentRestore RTM_DELADDR/RTM_NEWADDR monitoring to the (diff)
downloadwireguard-openbsd-6f360336fda34e8ce427bd623fc3124cf8920864.tar.xz
wireguard-openbsd-6f360336fda34e8ce427bd623fc3124cf8920864.zip
Accessing a mmap(2)ed file behind its end should result in a SIGBUS
according to POSIX. Bring regression test and kernel in line for amd64 and i386. Other architectures have to follow. OK deraadt@ kettenis@
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/sys/mmap.26
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/sys/mmap.2 b/lib/libc/sys/mmap.2
index 51094a46967..cd796385838 100644
--- a/lib/libc/sys/mmap.2
+++ b/lib/libc/sys/mmap.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: mmap.2,v 1.55 2017/04/05 18:15:43 millert Exp $
+.\" $OpenBSD: mmap.2,v 1.56 2017/07/20 18:22:25 bluhm Exp $
.\" $NetBSD: mmap.2,v 1.5 1995/06/24 10:48:59 cgd Exp $
.\"
.\" Copyright (c) 1991, 1993
@@ -30,7 +30,7 @@
.\"
.\" @(#)mmap.2 8.1 (Berkeley) 6/4/93
.\"
-.Dd $Mdocdate: April 5 2017 $
+.Dd $Mdocdate: July 20 2017 $
.Dt MMAP 2
.Os
.Sh NAME
@@ -313,7 +313,7 @@ system call first appeared in
specifies that references to pages beyond the end of a mapped object
shall generate a
.Dv SIGBUS
-signal; however,
+signal; however, on some architectures
.Ox
generates a
.Dv SIGSEGV