[lkml]   [2021]   [Jun]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Sealed memfd & no-fault mmap
On Thursday, June 3rd, 2021 at 3:57 PM, Matthew Wilcox <> 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:0.064 / U:0.884 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site