[PATCH v6 0/3] Anonymous VMA naming patches

From: Sumit Semwal
Date: Tue Sep 01 2020 - 05:19:20 EST


Version v4 of these patches was sent by Colin Cross a long time ago [1]
and [2]. At the time, these patches were not merged, and it looks like they
just fell off the radar since.

In our efforts to run Android on mainline kernels, we realised that since past
some time, this patchset is needed for Android to boot, hence I am re-posting
it to try and get these discussed and hopefully merged.

For v5, I rebased these for v5.9-rc3 and fixed minor updates as required.

---
v6: Rebased to v5.9-rc3 and addressed review comments:
- added missing callers in fs/userfaultd.c
- simplified the union
- use the new access_remote_vm_locked() in show_map_vma() since that
already holds mmap_lock

[1]: https://lore.kernel.org/linux-mm/1383170047-21074-1-git-send-email-ccross@xxxxxxxxxxx/
[2]: https://lore.kernel.org/linux-mm/1383170047-21074-2-git-send-email-ccross@xxxxxxxxxxx/

Best,
Sumit.

Colin Cross (2):
mm: rearrange madvise code to allow for reuse
mm: add a field to store names for private anonymous memory

Sumit Semwal (1):
mm: memory: Add access_remote_vm_locked variant

Documentation/filesystems/proc.rst | 2 +
fs/proc/task_mmu.c | 24 +-
fs/userfaultfd.c | 7 +-
include/linux/mm.h | 7 +-
include/linux/mm_types.h | 25 +-
include/uapi/linux/prctl.h | 3 +
kernel/sys.c | 32 +++
mm/interval_tree.c | 2 +-
mm/madvise.c | 356 +++++++++++++++++------------
mm/memory.c | 49 +++-
mm/mempolicy.c | 3 +-
mm/mlock.c | 2 +-
mm/mmap.c | 38 +--
mm/mprotect.c | 2 +-
14 files changed, 374 insertions(+), 178 deletions(-)

--
2.28.0