lkml.org 
[lkml]   [2021]   [Jun]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Sealed memfd & no-fault mmap
On Thursday, June 3rd, 2021 at 3:57 PM, Matthew Wilcox <willy@infradead.org> wrote:

> How about this:
>
> - The client sets up a 1KiB shm file and sends it to the compositor.
> - The client expands the file to 5KiB
> - The compositor sees the new data up to 4KiB but zeroes past the 4KiB
> mark.
>
> Does that still make userspace happy?

As long as the new data in the expanded region is visible after a remapping the
file with the new size, it should be fine. It doesn't matter that it's not
visible without a munmap+mmap cycle.

\
 
 \ /
  Last update: 2021-06-03 16:48    [W:3.007 / U:0.012 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site