Re: [PATCH] mmap.2: mmap with address NULL and MAP_FIXED results in EPERM

2017-06-16 Thread Michal Hocko
On Thu 15-06-17 12:09:01, Theodore Dubois wrote: > This can be verified with a simple test program. I'm not sure if this is > a kernel bug or a documentation bug, though... THis is not a bug. You are not allowed to mmap anything below /proc/sys/vm/mmap_min_addr. So your patch to update documentati

[PATCH] mmap.2: mmap with address NULL and MAP_FIXED results in EPERM

2017-06-15 Thread Theodore Dubois
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