diff options
| author | Mike Kravetz <[email protected]> | 2017-09-06 23:20:55 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2017-09-07 00:27:26 +0000 |
| commit | dba58d3b8c5045ad89c1c95d33d01451e3964db7 (patch) | |
| tree | 39a5693fa2844a073a85be7ad9482fc4d55dfb51 /Documentation/filesystems | |
| parent | mm, page_owner: don't grab zone->lock for init_pages_in_zone() (diff) | |
| download | kernel-dba58d3b8c5045ad89c1c95d33d01451e3964db7.tar.gz kernel-dba58d3b8c5045ad89c1c95d33d01451e3964db7.zip | |
mm/mremap: fail map duplication attempts for private mappings
mremap will attempt to create a 'duplicate' mapping if old_size == 0 is
specified. In the case of private mappings, mremap will actually create
a fresh separate private mapping unrelated to the original. This does
not fit with the design semantics of mremap as the intention is to
create a new mapping based on the original.
Therefore, return EINVAL in the case where an attempt is made to
duplicate a private mapping. Also, print a warning message (once) if
such an attempt is made.
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Mike Kravetz <[email protected]>
Acked-by: Michal Hocko <[email protected]>
Cc: Andrea Arcangeli <[email protected]>
Cc: Aaron Lu <[email protected]>
Cc: "Kirill A . Shutemov" <[email protected]>
Cc: Vlastimil Babka <[email protected]>
Cc: Anshuman Khandual <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'Documentation/filesystems')
0 files changed, 0 insertions, 0 deletions
