Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964780AbbDXP1Q (ORCPT ); Fri, 24 Apr 2015 11:27:16 -0400 Received: from mail-vn0-f45.google.com ([209.85.216.45]:36453 "EHLO mail-vn0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756742AbbDXP1N (ORCPT ); Fri, 24 Apr 2015 11:27:13 -0400 MIME-Version: 1.0 In-Reply-To: References: From: Mark Seaborn Date: Fri, 24 Apr 2015 08:26:52 -0700 X-Google-Sender-Auth: zK4LL4DBKHJEDpDHpz812J6-0_o Message-ID: Subject: Re: Regression: Requiring CAP_SYS_ADMIN for /proc//pagemap causes application-level breakage To: Mark Williamson Cc: kernel list , "Kirill A. Shutemov" , Pavel Emelyanov , Konstantin Khlebnikov , Andrew Morton , Linus Torvalds , Andy Lutomirski , linux-api@vger.kernel.org, Finn Grimwood , Daniel James 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: 1338 Lines: 28 On 24 April 2015 at 08:01, Mark Williamson wrote: > In our use of /proc/PID/pagemap, we currently make use of the physical > pageframe addresses. We should be able to work with a scrambled > representation of these (Andy Lutomirski suggested this in the > original discussion - https://lkml.org/lkml/2015/3/16/1273) so long as > the scrambling remained consistent during the lifetime of the open > pagemap file. Alternatively, if physical addresses were simply zeroed > (also suggested by Pavel Emelyanov - > https://lkml.org/lkml/2015/3/9/871) we would be able to change our > code to rely only on the soft-dirty flag and thus still work > correctly. I'm curious, what do you use the physical page addresses for? Since you pointed to http://undo-software.com, which talks about reversible debugging tools, I can guess you would use the soft-dirty flag to implement copy-on-write snapshotting. I'm guessing you might use physical page addresses for determining when the same page is mapped twice (in the same process or different processes)? Cheers, Mark -- 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/