Re: [PATCH 10/11] maps3: add /proc/kpagecount and /proc/kpageflags interfaces

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Matt Mackall <mpm@...>
Cc: Andrew Morton <akpm@...>, <linux-kernel@...>, Rusty Russell <rusty@...>, Jeremy Fitzhardinge <jeremy@...>, David Rientjes <rientjes@...>, Fengguang Wu <wfg@...>
Date: Monday, October 15, 2007 - 6:48 pm

On Mon, 2007-10-15 at 17:26 -0500, Matt Mackall wrote:
...

This one makes me worry a little bit.  Are we sure that this won't
expose a wee bit too much to userspace?

I can see it making sense to clear the page refs, then inspect whether
the page has been referenced again.  But, I worry that people are going
to start doing things like read NUMA, SPARSEMEM, or other internal
information out of these.

I've seen quite a few patches lately that do creative things with these
*cough*clameter*cough*, and I worry that they're too fluid to get
exposed to userspace.

Could we just have /proc/kpagereferenced?  Is there a legitimate need
for other flags to be visible?
 
-- Dave

-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/11] maps3: pagemap monitoring v3, Matt Mackall, (Mon Oct 15, 6:25 pm)
Re: [PATCH 11/11] maps3: make page monitoring /proc file opt..., Jeremy Fitzhardinge, (Mon Oct 15, 6:51 pm)
Re: [PATCH 10/11] maps3: add /proc/kpagecount and /proc/kpag..., Dave Hansen, (Mon Oct 15, 6:48 pm)
[PATCH 8/11] maps3: regroup task_mmu by interface, Matt Mackall, (Mon Oct 15, 6:26 pm)
[PATCH 9/11] maps3: add /proc/pid/pagemap interface, Matt Mackall, (Mon Oct 15, 6:26 pm)
[PATCH 7/11] maps3: move clear_refs code to task_mmu.c, Matt Mackall, (Mon Oct 15, 6:26 pm)
Re: [PATCH 7/11] maps3: move clear_refs code to task_mmu.c, David Rientjes, (Tue Oct 16, 1:11 am)
[PATCH 4/11] maps3: introduce a generic page walker, Matt Mackall, (Mon Oct 15, 6:26 pm)
Re: [PATCH 4/11] maps3: introduce a generic page walker, David Rientjes, (Tue Oct 16, 12:58 am)
Re: [PATCH 4/11] maps3: introduce a generic page walker, Jeremy Fitzhardinge, (Mon Oct 15, 6:40 pm)
Re: [PATCH 4/11] maps3: introduce a generic page walker, Matt Mackall, (Mon Oct 15, 7:30 pm)
Re: [PATCH 4/11] maps3: introduce a generic page walker, Jeremy Fitzhardinge, (Mon Oct 15, 7:20 pm)
[PATCH 3/11] maps3: move is_swap_pte, Matt Mackall, (Mon Oct 15, 6:26 pm)