Re: [PATCH] mm/rmap: synchronize lock and unlock target in anon_vma_clone

Lance Yang <[email protected]>
Newsgroups org.kvack.linux-mm,org.kernel.vger.linux-kernel
Message-ID <[email protected]>
On Fri, Aug 14, 2026 at 03:30:51PM +0900, Eric Kim wrote:
>Currently, in anon_vma_clone(), src vma's anon_vma is assigned to
>active_anon_vma and is used when unlocking anon_vma after linking new
>AVCs. However, the anon_vma is locked using src->anon_vma, instead of
>active_anon_vma, making the lock and unlock target inconsistent.
>
>Use active_anon_vma for both locking and unlocking.
>
>Signed-off-by: Eric Kim <[email protected]>
>---

Reviewed-by: Lance Yang <[email protected]>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.