Re: [PATCH 0/2] mm/mremap: fix two issues with MREMAP_DONTUNMAP
From: Andrew Morton
Date: Sat Sep 26 2026 - 16:53:44 EST
On Sun, 20 Sep 2026 15:13:09 +0100 "Lorenzo Stoakes (ARM)" <ljs@xxxxxxxxxx> wrote:
> The MREMAP_DONTUNMAP feature is highly unusual in that it permits mremap()
> operations that keep the original VMA in place.
>
> Historically this has led to a lot of bugs where non-obvious interactions
> occur between existing mremap() operations and the original VMA.
>
> ...
>
> Both issues can be fixed by treating the source range as distinct from the
> destination range, which is the definition of what MREMAP_DONTUNMAP does so
> is appropriate.
Can we please have some review of these two cc:stable hotfixes?
Thanks.