Skip to content

Generic support for revoking mappings

Eric W. Biederman linux-mm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 10 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3mm: Introduce revoke_mappings.include/linux/mm.h mm/Makefile mm/nommu.c +1 more+188 -12 replies
2/3mm: Consolidate vma destruction into remove_vma.mm/mmap.c+5 -164 replies
3/3mm: Cause revoke_mappings to wait until all close methods have completed.include/linux/fs.h mm/mmap.c mm/revoke.c+29 -42 replies

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by.

PatchPekka Enberg
1/3
2/3A-b
3/3

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

Read the v1 thread

Cover letter [PATCH 0/3] Generic support for revoking mappings

During hotplug or rmmod if a device or file is mmaped, it's mapping needs to be removed and future access need to return SIGBUS almost like truncate. This case is rare enough that it barely gets tested, and making a generic implementation warranted. I have tried with sysfs but a complete and generic implementation does not seem possible without mm support.

It looks like a fully generic implementation with mm knowledge is shorter and easier to get right than what I have in sysfs today.

So here is that fully generic implementation.

Eric W. Biederman (3):
mm: Introduce revoke_mappings.
mm: Consolidate vma destruction into remove_vma.
mm: Cause revoke_mappings to wait until all close methods have completed.

---
 include/linux/fs.h |    2 +
 include/linux/mm.h |    2 +
 mm/Makefile        |    2 +-
 mm/mmap.c          |   34 +++++-----
 mm/nommu.c         |    5 ++
 mm/revoke.c        |  192 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 6 files changed, 219 insertions(+), 18 deletions(-)

Eric

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>