[PATCH 6.6.y v3 0/2] mm/damon/core: fix last region handling of damos_skip_charged_regions()

From: SJ Park

Date: Fri Oct 09 2026 - 09:58:32 EST


Patch 1 is a dependency of patch 2. Without it, patch 2 introduces
out-of-bounds memory access bug that was found by Sashiko. Patch 2
fixes a bug that categorized to be backported to stable@.

Changes from v2
- v2: https://lore.kernel.org/20260930101853.58786-1-sj@xxxxxxxxxx
- Fix out-of-bounds memory access bug by adding patch 1.
Changes from v1
- v1: https://lore.kernel.org/20260930093707.48739-1-sj@xxxxxxxxxx
- Add missed damon_sz_region(r) <= min_region_sz case change.

Liew Rui Yan (1):
mm/damon/core: fix unconditionally skip last region

SeongJae Park (1):
mm/damon/core: do non-safe region walk on kdamond_apply_schemes()

mm/damon/core.c | 45 ++++++++++++++++++++++++---------------------
1 file changed, 24 insertions(+), 21 deletions(-)


base-commit: ae7bc7c9b4336d7a8fb4bcfe0a6d8c925bde3ce9
--
2.47.3