mm-madvise-handle-madvise_lock-failure-during-race-unwinding.patch removed from -mm tree
The quilt patch titled
Subject: mm/madvise: handle madvise_lock() failure during race unwinding
has been removed from the -mm tree. Its filename was
mm-madvise-handle-madvise_lock-failure-during-race-unwinding.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: SeongJae Park <[email protected]>
Subject: mm/madvise: handle madvise_lock() failure during race unwinding
Date: Mon, 2 Jun 2025 10:49:26 -0700
When unwinding race on -ERESTARTNOINTR handling of process_madvise(), madvise_lock() failure is ignored. Check the failure and abort remaining works in the case.
---
mm/madvise.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
mm/madvise.c renamed from mm/madvise.c~mm-madvise-handle-madvise_lock-failure-during-race-unwinding +4 -1
@@ -1881,7 +1881,9 @@ static ssize_t vector_madvise(struct mm_/* Drop and reacquire lock to unwind race. */ madvise_finish_tlb (&madv_behavior);madvise_unlock (mm, behavior); -madvise_lock (mm, behavior); + ret =madvise_lock (mm, behavior); +if (ret) + goto out;madvise_init_tlb (&madv_behavior, mm);continue ; }
@@ -1892,6 +1894,7 @@ static ssize_t vector_madvise(struct mm_madvise_finish_tlb (&madv_behavior);madvise_unlock (mm, behavior); +out: ret = (total_len -iov_iter_count (iter)) ? : ret;return ret;
_
Patches currently in -mm which might be from [email protected] are
mm-damon-introduce-damon_stat-module.patch mm-damon-introduce-damon_stat-module-fix.patch mm-damon-stat-calculate-and-expose-estimated-memory-bandwidth.patch mm-damon-stat-calculate-and-expose-idle-time-percentiles.patch docs-admin-guide-mm-damon-add-damon_stat-usage-document.patch