Skip to content

mm/damon: fix uninitialized DAMOS field and kunit exec expectation bugs

SJ Park damon linux-kselftest linux-mm lkml stable 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7mm/damon/core: initialize damos->last_appliedmm/damon/core.c+1 -01 reply
2/7mm/damon/core-kunit: check region count before testing in split_at()mm/damon/tests/core-kunit.h+5 -01 reply
3/7mm/damon/vaddr-kunit: check region count in three_regions testmm/damon/tests/vaddr-kunit.h+5 -00 replies
4/7mm/damon/core-kunit: handle region split failure in filter_out()mm/damon/tests/core-kunit.h+3 -01 reply
5/7mm/damon/core-kunit: skip wrong dest walk in commit_dests_for()mm/damon/tests/core-kunit.h+2 -00 replies
6/7mm/damon/core-kunit: skip wrong quota goal walk in commit_quota_goals()mm/damon/tests/core-kunit.h+9 -01 reply
7/7mm/damon/core-kunit: skip wrong region walk in commit_target_regions()mm/damon/tests/core-kunit.h+7 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/7] mm/damon: fix uninitialized DAMOS field and kunit exec expectation bugs

Fix a few Sashiko-found unurgent bugs. Patch 1 fixes use of uninitialized damos->last_applied field. Patches 2-7 fix DAMON kunit tests that do invalid memory access under test failures.

The bugs are better to be fixed and eventually merged into stable@ kernel. That said, the fixes are arguably not urgent. Patch 1 only introduces negligible DAMOS efficiency degradation in occasional cases. Kunit fixes could introduce quite bad consequences but those are test code that affect only test run setups.

SJ Park (7):
mm/damon/core: initialize damos->last_applied mm/damon/core-kunit: check region count before testing in split_at() mm/damon/vaddr-kunit: check region count in three_regions test mm/damon/core-kunit: handle region split failure in filter_out() mm/damon/core-kunit: skip wrong dest walk in commit_dests_for() mm/damon/core-kunit: skip wrong quota goal walk in
commit_quota_goals()
mm/damon/core-kunit: skip wrong region walk in commit_target_regions()

 mm/damon/core.c              |  1 +
 mm/damon/tests/core-kunit.h  | 28 ++++++++++++++++++++++++++--
 mm/damon/tests/vaddr-kunit.h |  5 +++++
 3 files changed, 32 insertions(+), 2 deletions(-)

base-commit: 1ce4cbd62f48552188b3f6fac8a14b709e97b7be

Signature · 1 line
2.47.3