From: ebiederm@xmission.com (Eric W. Biederman)
To: Andrew Morton <akpm@linux-foundation.org>
Cc: Hugh Dickins <hugh@veritas.com>,
linux-mm@kvack.org, linux-kernel@vger.kernel.org,
Rik van Riel <riel@redhat.com>
Subject: [PATCH 0/3] Generic support for revoking mappings
Date: Sat, 25 Sep 2010 16:33:09 -0700 [thread overview]
Message-ID: <m1sk0x9z62.fsf@fess.ebiederm.org> (raw)
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 majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next reply other threads:[~2010-09-25 23:33 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-25 23:33 Eric W. Biederman [this message]
2010-09-25 23:33 ` [PATCH 1/3] mm: Introduce revoke_mappings Eric W. Biederman
2010-09-27 10:49 ` Pekka Enberg
2010-09-27 14:23 ` Eric W. Biederman
2010-09-25 23:34 ` [PATCH 2/3] mm: Consolidate vma destruction into remove_vma Eric W. Biederman
2010-09-27 6:37 ` Pekka Enberg
2010-09-27 6:39 ` Pekka Enberg
2010-09-27 6:44 ` Eric W. Biederman
2010-09-27 7:11 ` Pekka Enberg
2010-09-25 23:34 ` [PATCH 3/3] mm: Cause revoke_mappings to wait until all close methods have completed Eric W. Biederman
2010-09-27 7:15 ` Pekka Enberg
2010-09-27 8:04 ` Eric W. Biederman
2010-09-27 8:52 ` [PATCH 0/3] Generic support for revoking mappings CAI Qian
2010-09-27 9:12 ` Américo Wang
[not found] <86925983.2027701285578620865.JavaMail.root@zmail06.collab.prod.int.phx2.redhat.com>
2010-09-27 9:10 ` caiqian
[not found] <1345860830.2030761285581270894.JavaMail.root@zmail06.collab.prod.int.phx2.redhat.com>
2010-09-27 9:55 ` caiqian
2010-09-27 13:52 ` Eric W. Biederman
2010-09-28 6:25 ` Eric W. Biederman
[not found] <1586726953.2193271285663810410.JavaMail.root@zmail06.collab.prod.int.phx2.redhat.com>
2010-09-28 8:51 ` caiqian
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m1sk0x9z62.fsf@fess.ebiederm.org \
--to=ebiederm@xmission.com \
--cc=akpm@linux-foundation.org \
--cc=hugh@veritas.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=riel@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox