Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755559AbbFLS7f (ORCPT ); Fri, 12 Jun 2015 14:59:35 -0400 Received: from mail-la0-f54.google.com ([209.85.215.54]:35899 "EHLO mail-la0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755269AbbFLS7d (ORCPT ); Fri, 12 Jun 2015 14:59:33 -0400 MIME-Version: 1.0 In-Reply-To: <20150609195333.21971.58194.stgit@zurg> References: <20150609195333.21971.58194.stgit@zurg> Date: Fri, 12 Jun 2015 19:59:31 +0100 Message-ID: Subject: Re: [PATCHSET v3 0/4] pagemap: make useable for non-privilege users From: Mark Williamson To: Konstantin Khlebnikov Cc: linux-mm@kvack.org, Andrew Morton , Naoya Horiguchi , Linux API , kernel list , "Kirill A. Shutemov" Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1831 Lines: 50 Hi Konstantin, Thanks very much for your help on this. >From our side, I've tested our application against a patched kernel and I confirm that the functionality can replace what we lost when PFNs were removed from /proc/PID/pagemap. This addresses the functionality regression from our PoV (just requires minor userspace changes on our part, which is fine). I also reviewed the patch content and everything seemed good to me. We're keen to see these get into mainline, so let us know if there's anything we can do to help. Cheers, Mark On Tue, Jun 9, 2015 at 9:00 PM, Konstantin Khlebnikov wrote: > 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 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/