lkml.org 
[lkml]   [2017]   [Sep]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC PATCH 01/17] perf: Allow mmapping only user page
On Tue, Sep 05, 2017 at 04:30:10PM +0300, Alexander Shishkin wrote:
> The 'user page' contains offsets and sizes of data and aux areas of the
> ring buffer. If a user wants to mmap a pre-existing buffer, they need to
> know these in order to issue mmap()s with correct offsets and sizes.

Ok, stupid question: shouldn't this be a properly defined interface
instead of allowing userspace to poke inside the user page? Or are we
prepared to handle any changes in the layout of that user page and there
won't be any userspace crying because of it?

Thx.

--
Regards/Gruss,
Boris.

Good mailing practices for 400: avoid top-posting and trim the reply.

\
 
 \ /
  Last update: 2017-09-06 18:29    [W:0.198 / U:0.272 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site