Re: MREMAP_DONTUNMAP corrupts initial mapping

From: stsp
Date: Thu Mar 30 2023 - 10:45:30 EST


Add a few CCs.

30.03.2023 17:38, stsp пишет:
Hello.

Attached is a small test-case that
demonstrates the problem.
The problem happens if you change
some data in a file-backed private
mapping and then use mremap on
it with MREMAP_DONTUNMAP flag.
The result is:
- destination copy is valid
- source copy restored from the original file

So the 2 copies do not match.