lkml.org 
[lkml]   [2015]   [Apr]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: Regression: Requiring CAP_SYS_ADMIN for /proc/<pid>/pagemap causes application-level breakage
From
Hi all,

On Thu, Apr 30, 2015 at 2:11 PM, Konstantin Khlebnikov <koct9i@gmail.com> wrote:
> On Thu, Apr 30, 2015 at 2:43 PM, Konstantin Khlebnikov <koct9i@gmail.com> wrote:
>> What about exposing shared/exclusive bit in pagemap == 1 if
>> page_mapcount() > 1, otherwise 0 (or vise versa).
>>
>> Seems like this should work for detecting CoWed pages in child mm.
>
> Something like this (see patch in attachment)

Either something like this patch (updated to cover THPs), or Linus's
suggestion seems worth a try. Could I perhaps get a steer on which
would be more likely to be accepted / preferred?

Either way, we'd want to expose the resulting flag somewhere within
pagemap. We could do this either within the normal flags region, or
potentially even repurpose one of the (now censored) physical bits.

If there's a general feeling then I'll update my work-in-progress and
post it here.

Thanks,
Mark


\
 
 \ /
  Last update: 2015-04-30 20:41    [W:0.342 / U:0.020 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site