Re: [RFC v3 7/7] shm: isolate pinned pages when sealing files

2014-07-19 Thread David Herrmann
Hi On Wed, Jul 9, 2014 at 10:57 AM, Hugh Dickins wrote: > On Fri, 13 Jun 2014, David Herrmann wrote: > >> When setting SEAL_WRITE, we must make sure nobody has a writable reference >> to the pages (via GUP or similar). We currently check references and wait >> some time for them to be dropped. Th

Re: [RFC v3 7/7] shm: isolate pinned pages when sealing files

2014-07-09 Thread Hugh Dickins
On Fri, 13 Jun 2014, David Herrmann wrote: > When setting SEAL_WRITE, we must make sure nobody has a writable reference > to the pages (via GUP or similar). We currently check references and wait > some time for them to be dropped. This, however, might fail for several > reasons, including: > - t

Re: [RFC v3 7/7] shm: isolate pinned pages when sealing files

2014-06-13 Thread Andy Lutomirski
On Fri, Jun 13, 2014 at 8:27 AM, David Herrmann wrote: > Hi > > On Fri, Jun 13, 2014 at 5:06 PM, Andy Lutomirski wrote: >> On Fri, Jun 13, 2014 at 3:36 AM, David Herrmann >> wrote: >>> When setting SEAL_WRITE, we must make sure nobody has a writable reference >>> to the pages (via GUP or simila

Re: [RFC v3 7/7] shm: isolate pinned pages when sealing files

2014-06-13 Thread David Herrmann
Hi On Fri, Jun 13, 2014 at 5:06 PM, Andy Lutomirski wrote: > On Fri, Jun 13, 2014 at 3:36 AM, David Herrmann wrote: >> When setting SEAL_WRITE, we must make sure nobody has a writable reference >> to the pages (via GUP or similar). We currently check references and wait >> some time for them to

Re: [RFC v3 7/7] shm: isolate pinned pages when sealing files

2014-06-13 Thread Andy Lutomirski
On Fri, Jun 13, 2014 at 3:36 AM, David Herrmann wrote: > When setting SEAL_WRITE, we must make sure nobody has a writable reference > to the pages (via GUP or similar). We currently check references and wait > some time for them to be dropped. This, however, might fail for several > reasons, inclu

[RFC v3 7/7] shm: isolate pinned pages when sealing files

2014-06-13 Thread David Herrmann
When setting SEAL_WRITE, we must make sure nobody has a writable reference to the pages (via GUP or similar). We currently check references and wait some time for them to be dropped. This, however, might fail for several reasons, including: - the page is pinned for longer than we wait - while we