Thread (19 messages) 19 messages, 5 authors, 2017-09-25

Re: [patch] mremap.2: Add description of old_size == 0 functionality

From: Jann Horn <hidden>
Date: 2017-09-18 01:53:09
Also in: linux-api, linux-mm, lkml

On Fri, Sep 15, 2017 at 2:37 PM, Mike Kravetz [off-list ref] wrote:
[...]
A recent change was made to mremap so that an attempt to create a
duplicate a private mapping will fail.

commit dba58d3b8c5045ad89c1c95d33d01451e3964db7
Author: Mike Kravetz [off-list ref]
Date:   Wed Sep 6 16:20:55 2017 -0700

    mm/mremap: fail map duplication attempts for private mappings

This return code is also documented here.
[...]
quoted hunk ↗ jump to hunk
diff --git a/man2/mremap.2 b/man2/mremap.2
[...]
quoted hunk ↗ jump to hunk
@@ -174,7 +189,12 @@ and
 or
 .B MREMAP_FIXED
 was specified without also specifying
-.BR MREMAP_MAYMOVE .
+.BR MREMAP_MAYMOVE ;
+or \fIold_size\fP was zero and \fIold_address\fP does not refer to a
+private anonymous mapping;
Shouldn't this be the other way around? "or old_size was zero and
old_address refers to a private anonymous mapping"?
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help