mm-damon-vaddr-protect-vma-traversal-in-__damon_va_thre_regions-with-rcu-read-lock.patch removed from -mm tree
The quilt patch titled
Subject: mm/damon/vaddr: protect vma traversal in __damon_va_thre_regions() with rcu read lock
has been removed from the -mm tree. Its filename was
mm-damon-vaddr-protect-vma-traversal-in-__damon_va_thre_regions-with-rcu-read-lock.patch
This patch was dropped because it was merged into the mm-hotfixes-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: "Liam R. Howlett" <[email protected]>
Subject: mm/damon/vaddr: protect vma traversal in __damon_va_thre_regions() with rcu read lock
Date: Wed, 4 Sep 2024 17:12:04 -0700
Traversing VMAs of a given maple tree should be protected by rcu read lock. However, __damon_va_three_regions() is not doing the protection. Hold the lock.
---
mm/damon/vaddr.c | 2 ++ 1 file changed, 2 insertions(+)
mm/damon/vaddr.c renamed from mm/damon/vaddr.c~mm-damon-vaddr-protect-vma-traversal-in-__damon_va_thre_regions-with-rcu-read-lock +2 -0
@@ -126,6 +126,7 @@ static int __damon_va_three_regions(stru* If this is too slow, it can be optimised to examine the maple * tree gaps. */ +rcu_read_lock ();for_each_vma (vmi, vma) {unsigned long gap;
@@ -146,6 +147,7 @@ static int __damon_va_three_regions(stru next: prev = vma; } +rcu_read_unlock ();if (!sz_range (&second_gap) || !sz_range (&first_gap))return -EINVAL ;
_
Patches currently in -mm which might be from [email protected] are
maple_tree-mark-three-functions-as-__maybe_unused.patch