Skip to content

/proc/PID/*maps* fixes/cleanups

Oleg Nesterov linux-fsdevel lkml netdev 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest7 patches 15 repliesIn review
  2. v15 patches 3 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7fs/proc/task_mmu.c: don't use task->mm in m_start() and show_*map()fs/proc/task_mmu.c+3 -53 replies
2/7fs/proc/task_mmu.c: unify/simplify do_maps_open() and numa_maps_open()fs/proc/task_mmu.c+16 -281 reply
3/7proc: introduce proc_mem_open()fs/proc/base.c fs/proc/internal.h+23 -151 reply
4/7fs/proc/task_mmu.c: shift mm_access() from m_start() to proc_maps_open()fs/proc/internal.h fs/proc/task_mmu.c+29 -95 replies
5/7fs/proc/task_mmu.c: simplify the vma_stop() logicfs/proc/task_mmu.c+18 -161 reply
6/7fs/proc/task_mmu.c: cleanup the "tail_vma" horror in m_next()fs/proc/task_mmu.c+3 -51 reply
7/7fs/proc/task_mmu.c: shift "priv->task = NULL" from m_start() to m_stop()fs/proc/task_mmu.c+3 -61 reply

Reviews trailers per patch

All 7 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchKirill A. ShutemovCyrill GorcunovGreg Ungerer
SeriesT-b A-b A-b
1/7A-b
2/7A-b
3/7A-b
4/7A-b
5/7A-b
6/7A-b
7/7A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v2 thread

Cover letter [PATCH v2 0/7] /proc/PID/*maps* fixes/cleanups

Changes:

1-4: Update the changelogs, join "introduce the stable
proc_maps_private->mm" and "change m_start() to rely on priv->mm" into a single "shift "priv->task = NULL" from m_start() to m_stop()".

Resulting code is the same. Kirill and Cyrill, you seem to agree with these changes, I'll appreciate your acks.

5-7: New. Seems to work, please review.

Todo:

- Cleanup the tail_vma horror in m_start

- Update task_nommu.c in the same way

- Fix lock_trace() users

Oleg.

 fs/proc/base.c     |   36 ++++++++------
 fs/proc/internal.h |    3 +
 fs/proc/task_mmu.c |  136 ++++++++++++++++++++++++++-------------------------
 3 files changed, 93 insertions(+), 82 deletions(-)