Re: [PATCH v2] mm/rmap: synchronize lock and unlock target in anon_vma_clone
From: Rik van Riel
Date: Sun Aug 16 2026 - 23:10:05 EST
On Mon, 2026-08-17 at 11:34 +0900, Eric Kim wrote:
> Currently, in anon_vma_clone(), active_anon_vma is assigned from
> src->anon_vma and is used when unlocking anon_vma after linking
> new AVCs. However, the corresponding lock operation uses
> src->anon_vma directly.
>
> Use active_anon_vma consistently to make the lock/unlock pair
> explicit.
>
> Signed-off-by: Eric Kim <seohyun.kim@xxxxxxxxxx>
Reviewed-by: Rik van Riel <riel@xxxxxxxxxxx>
--
All Rights Reversed.