linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Konstantin Khlebnikov <koct9i@gmail.com>
To: linux-mm@kvack.org, Andrew Morton <akpm@linux-foundation.org>,
	Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
Cc: linux-api@vger.kernel.org,
	Mark Williamson <mwilliamson@undo-software.com>,
	linux-kernel@vger.kernel.org,
	"Kirill A. Shutemov" <kirill@shutemov.name>
Subject: [PATCHSET v3 0/4] pagemap: make useable for non-privilege users
Date: Tue, 09 Jun 2015 23:00:13 +0300	[thread overview]
Message-ID: <20150609195333.21971.58194.stgit@zurg> (raw)

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

--
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>

             reply	other threads:[~2015-06-09 20:00 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-09 20:00 Konstantin Khlebnikov [this message]
2015-06-09 20:00 ` [PATCH v3 1/4] pagemap: check permissions and capabilities at open time Konstantin Khlebnikov
2015-06-12 18:44   ` Mark Williamson
2015-06-17  7:58   ` Naoya Horiguchi
2015-06-09 20:00 ` [PATCH v3 2/4] pagemap: add mmap-exclusive bit for marking pages mapped only here Konstantin Khlebnikov
2015-06-12 18:46   ` Mark Williamson
2015-06-17  8:11   ` Naoya Horiguchi
2015-06-09 20:00 ` [PATCH v3 3/4] pagemap: hide physical addresses from non-privileged users Konstantin Khlebnikov
2015-06-12 18:47   ` Mark Williamson
2015-06-09 20:00 ` [PATCH v3 4/4] pagemap: switch to the new format and do some cleanup Konstantin Khlebnikov
2015-06-12 18:49   ` Mark Williamson
2015-06-15  5:56   ` [PATCH v4] " Konstantin Khlebnikov
2015-06-15 14:57     ` Mark Williamson
2015-06-16 21:29     ` Andrew Morton
2015-06-17  4:59       ` Konstantin Khlebnikov
2015-06-17  6:40         ` Konstantin Khlebnikov
2015-06-12 18:59 ` [PATCHSET v3 0/4] pagemap: make useable for non-privilege users Mark Williamson

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=20150609195333.21971.58194.stgit@zurg \
    --to=koct9i@gmail.com \
    --cc=akpm@linux-foundation.org \
    --cc=kirill@shutemov.name \
    --cc=linux-api@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=mwilliamson@undo-software.com \
    --cc=n-horiguchi@ah.jp.nec.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;
as well as URLs for NNTP newsgroup(s).