Re: [PATCH v2 2/3] shm: add memfd_create() syscall

2014-06-13 Thread David Herrmann
Hi On Mon, Jun 2, 2014 at 12:59 PM, Hugh Dickins wrote: > On Fri, 23 May 2014, David Herrmann wrote: >> On Tue, May 20, 2014 at 4:20 AM, Hugh Dickins wrote: >> > But this does highlight how the "size" arg to memfd_create() is >> > perhaps redundant. Why give a size there, when size can be chang

Re: [PATCH v2 2/3] shm: add memfd_create() syscall

2014-06-02 Thread Andy Lutomirski
On Mon, Jun 2, 2014 at 3:59 AM, Hugh Dickins wrote: > On Fri, 23 May 2014, David Herrmann wrote: >> On Tue, May 20, 2014 at 4:20 AM, Hugh Dickins wrote: >> > >> > What is a front-FD? >> >> With 'front-FD' I refer to things like dma-buf: They allocate a >> file-descriptor which is just a wrapper a

Re: [PATCH v2 2/3] shm: add memfd_create() syscall

2014-06-02 Thread Hugh Dickins
On Fri, 23 May 2014, David Herrmann wrote: > On Tue, May 20, 2014 at 4:20 AM, Hugh Dickins wrote: > > > > What is a front-FD? > > With 'front-FD' I refer to things like dma-buf: They allocate a > file-descriptor which is just a wrapper around a kernel-internal FD. > For instance, DRM-gem buffers

Re: [PATCH v2 2/3] shm: add memfd_create() syscall

2014-05-23 Thread David Herrmann
Hi On Tue, May 20, 2014 at 4:20 AM, Hugh Dickins wrote: > On Tue, 15 Apr 2014, David Herrmann wrote: > >> memfd_create() is similar to mmap(MAP_ANON), but returns a file-descriptor >> that you can pass to mmap(). It can support sealing and avoids any >> connection to user-visible mount-points. Th

Re: [PATCH v2 2/3] shm: add memfd_create() syscall

2014-05-21 Thread Konstantin Khlebnikov
On Tue, Apr 15, 2014 at 10:38 PM, David Herrmann wrote: > memfd_create() is similar to mmap(MAP_ANON), but returns a file-descriptor > that you can pass to mmap(). It can support sealing and avoids any > connection to user-visible mount-points. Thus, it's not subject to quotas > on mounted file-sy

Re: [PATCH v2 2/3] shm: add memfd_create() syscall

2014-05-19 Thread Hugh Dickins
On Tue, 15 Apr 2014, David Herrmann wrote: > memfd_create() is similar to mmap(MAP_ANON), but returns a file-descriptor > that you can pass to mmap(). It can support sealing and avoids any > connection to user-visible mount-points. Thus, it's not subject to quotas > on mounted file-systems, but ca

[PATCH v2 2/3] shm: add memfd_create() syscall

2014-04-15 Thread David Herrmann
memfd_create() is similar to mmap(MAP_ANON), but returns a file-descriptor that you can pass to mmap(). It can support sealing and avoids any connection to user-visible mount-points. Thus, it's not subject to quotas on mounted file-systems, but can be used like malloc()'ed memory, but with a file-d