Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1183794
| Path | csiph.com!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Konstantin Khlebnikov <khlebnikov@yandex-team.ru> |
| Newsgroups | linux.kernel |
| Subject | [PATCHSET v4 0/5] pagemap: make useable for non-privilege users |
| Date | Tue, 14 Jul 2015 17:40:02 +0200 |
| Message-ID | <pMatj-4pB-3@gated-at.bofh.it> (permalink) |
| X-Original-To | linux-mm@kvack.org, Andrew Morton <akpm@linux-foundation.org>, Naoya Horiguchi <n-horiguchi@ah.jp.nec.com> |
| Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex-team.ru; s=default; t=1436888254; bh=Qo1WhnHKuyWRh9XgdYREXQ64qgTLLGpusBf2mVTiT30=; h=Subject:From:To:Cc:Date:Message-ID:User-Agent:MIME-Version: Content-Type:Content-Transfer-Encoding; b=CbnYAwaTqwHigGxeFGgxbWXjUJeW1KdaZbD+j/IuniVqp7oLGJM6dzbSaCKY0xTUJ HlckiHFK/VtEKSgVsFRSbMxl2G8JvvzFcHvJWX4d/FRyT2CSVVKS1eCv3hQheFuljF U3cc9d/Ffog3hr/oFUZqONsGrVOfTVzQ/yAoLxxs= |
| Authentication-Results | smtpcorp4.mail.yandex.net; dkim=pass header.i=@yandex-team.ru |
| User-Agent | StGit/0.17.1-dirty |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset="utf-8" |
| Content-Transfer-Encoding | 7bit |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 39 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | "Kirill A. Shutemov" <kirill@shutemov.name>, Mark Williamson <mwilliamson@undo-software.com>, linux-kernel@vger.kernel.org, linux-api@vger.kernel.org |
| X-Original-Date | Tue, 14 Jul 2015 18:37:34 +0300 |
| X-Original-Message-ID | <20150714152516.29844.69929.stgit@buzz> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | aioe.org linux.kernel:1183794 |
Show key headers only | View raw
This patchset makes pagemap useable again in the safe way (after row hammer
bug it was made CAP_SYS_ADMIN-only). This patchset restores access for
non-privileged users but hides PFNs from them.
Also it adds bit 'map-exlusive' which is set if page is mapped only here:
it helps in estimation of working set without exposing pfns and allows to
distinguish CoWed and non-CoWed private anonymous pages.
Second 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.
Changes since v3:
* patches reordered: cleanup now in second patch
* update pagemap for hugetlb, add missing 'FILE' bit
* fix PM_PFRAME_BITS: its 55 not 54 as was in previous versions
---
Konstantin Khlebnikov (5):
pagemap: check permissions and capabilities at open time
pagemap: switch to the new format and do some cleanup
pagemap: rework hugetlb and thp report
pagemap: hide physical addresses from non-privileged users
pagemap: add mmap-exclusive bit for marking pages mapped only here
Documentation/vm/pagemap.txt | 3
fs/proc/task_mmu.c | 267 ++++++++++++++++++------------------------
tools/vm/page-types.c | 35 +++---
3 files changed, 137 insertions(+), 168 deletions(-)
--
Konstantin
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCHSET v4 0/5] pagemap: make useable for non-privilege users Konstantin Khlebnikov <khlebnikov@yandex-team.ru> - 2015-07-14 17:40 +0200 [PATCH v4 2/5] pagemap: switch to the new format and do some cleanup Konstantin Khlebnikov <khlebnikov@yandex-team.ru> - 2015-07-14 17:50 +0200 Re: [PATCHSET v4 0/5] pagemap: make useable for non-privilege users Konstantin Khlebnikov <koct9i@gmail.com> - 2015-07-14 22:20 +0200 [PATCH] pagemap: update documentation Konstantin Khlebnikov <khlebnikov@yandex-team.ru> - 2015-07-16 20:50 +0200
csiph-web