Re: [PATCH] mm/rmap: synchronize lock and unlock target in anon_vma_clone
From: Lance Yang
Date: Sat Aug 15 2026 - 00:16:12 EST
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 <seohyun.kim@xxxxxxxxxx>
>---
Reviewed-by: Lance Yang <lance.yang@xxxxxxxxx>