On Sat, 9 Aug 2025 04:55:18 +0900 Sang-Heon Jeon ekffu200098@gmail.com wrote:
damos_commit_ops_filters() incorrectly uses damos_nth_filter() which iterates core_filters. As a result, performing a commit unintentionally corrupts ops_filters.
Add damos_nth_ops_filter() which iterates ops_filters. Use this function to fix issues caused by wrong iteration.
Thank you for finding and fixing this bug! Since this bug is better to be fixed as soon as possible, could you please send the next version of this patch as an individual one, rather than as a part of this patchset?
Signed-off-by: Sang-Heon Jeon ekffu200098@gmail.com
Let's add below for stable kernel maintainers[1].
Fixes: 3607cc590f18 ("mm/damon/core: support committing ops_filters") # 6.15.x Cc: stable@vger.kernel.org
And the fix looks good to me, so
Reviewed-by: SeongJae Park sj@kernel.org
[...]
[1] https://docs.kernel.org/process/stable-kernel-rules.html
Thanks, SJ