Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753252AbbELJnM (ORCPT ); Tue, 12 May 2015 05:43:12 -0400 Received: from forward-corp1g.mail.yandex.net ([95.108.253.251]:55053 "EHLO forward-corp1g.mail.yandex.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753204AbbELJnJ (ORCPT ); Tue, 12 May 2015 05:43:09 -0400 Authentication-Results: smtpcorp1m.mail.yandex.net; dkim=pass header.i=@yandex-team.ru Subject: [PATCH RFC 0/3] pagemap: make useable for non-privilege users From: Konstantin Khlebnikov To: linux-mm@kvack.org, Naoya Horiguchi , linux-kernel@vger.kernel.org, Andrew Morton Cc: Mark Williamson , Pavel Emelyanov , linux-api@vger.kernel.org, Andy Lutomirski , Vlastimil Babka , Pavel Machek , Mark Seaborn , "Kirill A. Shutemov" , Linus Torvalds , Daniel James , Finn Grimwood Date: Tue, 12 May 2015 12:43:02 +0300 Message-ID: <20150512090156.24768.2521.stgit@buzz> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1111 Lines: 24 This patchset tries to make pagemap useable again in the safe way. First patch adds bit 'map-exlusive' which is set if page is mapped only here. Second patch restores access for non-privileged users but hides pfn if task has no capability CAP_SYS_ADMIN. Third 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). --- Konstantin Khlebnikov (3): 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 | 178 +++++++++++++++++------------------------- tools/vm/page-types.c | 35 ++++---- 3 files changed, 91 insertions(+), 125 deletions(-) -- 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/