On Thu, Jun 22, 2023 at 03:10:47PM +0200, David Hildenbrand wrote: > Maybe ... depends also on the uffd semantics as in 3).
UFFDIO_COPY|ZEROPAGE bypasses page cache for private file mappings, afaict. We'll still got a limit on the inode size (so we can't COPY|ZEROPAGE over that offset of vma) but the rest should be all fine. Feel free to have a quick skim over 5b51072e97d5 ("userfaultfd: shmem: allocate anonymous memory for MAP_PRIVATE shmem"). Thanks, -- Peter Xu