Skip to content

pagemap: make useable for non-privilege users

Konstantin Khlebnikov linux-api linux-mm lkml 1 version In review

Get series with b4
b4 am 20150609195333.21971.58194.stgit@zurg

Versions newest first

  1. v3 Latest4 patches 7 repliesIn review

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4pagemap: check permissions and capabilities at open timefs/proc/task_mmu.c+28 -202 replies
2/4pagemap: add mmap-exclusive bit for marking pages mapped only hereDocumentation/vm/pagemap.txt fs/proc/task_mmu.c tools/vm/page-types.c+24 -12 replies
3/4pagemap: hide physical addresses from non-privileged usersfs/proc/task_mmu.c+22 -141 reply
4/4pagemap: switch to the new format and do some cleanupfs/proc/task_mmu.c tools/vm/page-types.c+58 -1186 replies

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

Patch[email protected]Naoya Horiguchi
1/4R-b T-b R-b
2/4R-b T-b
3/4R-b T-b
4/4R-b T-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCHSET v3 0/4] pagemap: make useable for non-privilege users

This patchset makes pagemap useable again in the safe way. It adds bit 'map-exlusive' which is set if page is mapped only here and restores access for non-privileged users but hides pfn from them.

Last patch removes page-shift bits and completes migration to the new pagemap format: flags soft-dirty and mmap-exlusive are available only in the new format.

v3: check permissions in ->open

---

Konstantin Khlebnikov (4):
pagemap: check permissions and capabilities at open time
pagemap: add mmap-exclusive bit for marking pages mapped only here
pagemap: hide physical addresses from non-privileged users
pagemap: switch to the new format and do some cleanup

 Documentation/vm/pagemap.txt |    3 -
 fs/proc/task_mmu.c           |  219 +++++++++++++++++++-----------------------
 tools/vm/page-types.c        |   35 +++----
 3 files changed, 118 insertions(+), 139 deletions(-)

--
Signature