mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Theodore Dubois <tblodt@icloud.com>
To: mtk.manpages@gmail.com
Cc: linux-man@vger.kernel.org, linux-kernel@vger.kernel.org,
	Theodore Dubois <tblodt@icloud.com>
Subject: [PATCH] mmap.2: mmap with address NULL and MAP_FIXED results in EPERM
Date: Thu, 15 Jun 2017 12:09:01 -0700	[thread overview]
Message-ID: <20170615190901.30119-1-tblodt@icloud.com> (raw)

This can be verified with a simple test program. I'm not sure if this is
a kernel bug or a documentation bug, though...
---
 man2/mmap.2 | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/man2/mmap.2 b/man2/mmap.2
index d1942b52a..58361c837 100644
--- a/man2/mmap.2
+++ b/man2/mmap.2
@@ -515,6 +515,13 @@ was mounted no-exec.
 .\" (Since 2.4.25 / 2.6.0.)
 .TP
 .B EPERM
+The
+.I addr
+argument is 0 and
+.B MAP_FIXED
+is specified.
+.TP
+.B EPERM
 The operation was prevented by a file seal; see
 .BR fcntl (2).
 .TP
-- 
2.13.1

             reply	other threads:[~2017-06-15 20:09 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-15 19:09 Theodore Dubois [this message]
2017-06-16 15:25 ` Michal Hocko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170615190901.30119-1-tblodt@icloud.com \
    --to=tblodt@icloud.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-man@vger.kernel.org \
    --cc=mtk.manpages@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®