Thread (12 messages) flat view 12 messages, 4 authors, 2017-09-01

Re: [PATCH 2/2] mm: introduce MAP_VALIDATE, a mechanism for for safely defining new mmap flags

From: Dan Williams <hidden>
Date: 2017-09-01 01:01:04
Also in: linux-mm, nvdimm

On Thu, Aug 31, 2017 at 3:03 AM, Christoph Hellwig [off-list ref] wrote:
quoted
+/*
+ * The historical set of flags that all mmap implementations implicitly
+ * support when file_operations.mmap_supported_mask is zero. With the
+ * mmap3 syscall the deprecated MAP_DENYWRITE and MAP_EXECUTABLE bit
+ * values are explicitly rejected with EOPNOTSUPP rather than being
+ * silently accepted.
+ */
no mmap3 syscall here :)
True, that's stale.
Do you also need to update the nommu mmap implementation?
Ugh, nommu defeats the MAP_SHARED_VALIDATE proposal from Linus.

        if ((flags & MAP_TYPE) != MAP_PRIVATE &&
            (flags & MAP_TYPE) != MAP_SHARED)
                return -EINVAL;

...parisc strikes again.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help