lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-id: <20170615190901.30119-1-tblodt@icloud.com>
Date:   Thu, 15 Jun 2017 12:09:01 -0700
From:   Theodore Dubois <tblodt@...oud.com>
To:     mtk.manpages@...il.com
Cc:     linux-man@...r.kernel.org, linux-kernel@...r.kernel.org,
        Theodore Dubois <tblodt@...oud.com>
Subject: [PATCH] mmap.2: mmap with address NULL and MAP_FIXED results in EPERM

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ