Generic support for revoking mappings
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 10 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | mm: Introduce revoke_mappings.include/ mm/ mm/ +1 more | +188 | 2 replies | |
| 2/3 | mm: Consolidate vma destruction into remove_vma.mm/ | +5 | 4 replies | |
| 3/3 | mm: Cause revoke_mappings to wait until all close methods have completed.include/ mm/ mm/ | +29 | 2 replies |
Reviews trailers per patch
1 of 3 patches has a Reviewed-by or Acked-by.
| Patch | Pekka Enberg |
|---|---|
| 1/3 | |
| 2/3 | A-b |
| 3/3 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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>