The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [RFC PATCH 0/5] mm/damon: unurgent fixes for infinite loop, NULL de-ref and races
@ 2026-07-11 18:04 SJ Park
  2026-07-11 18:04 ` [RFC PATCH 1/5] mm/damon/core: avoid infinite kdamond_merge_regions() internal loop SJ Park
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: SJ Park @ 2026-07-11 18:04 UTC (permalink / raw)
  Cc: SJ Park, # 5 . 15 . x, Andrew Morton, Brendan Higgins, David Gow,
	Fernand Sieber, Leonard Foerster, SeongJae Park, Shakeel Butt,
	damon, kunit-dev, linux-kernel, linux-kselftest, linux-mm

Sashiko found a few issues in DAMON that could cause infinite loop, NULL
dereference and monitoring results degradation.  The first two sounds
scary but the infinite loop happens only under unreasonable user setup.
The NULL dereference is only in a unit test.  Monitoring results
degradation is trivial since it is only best-effort, and those happens
from only unlikely races.  Still those are bugs that better to fix if
possible. Fix those.

SJ Park (5):
  mm/damon/core: avoid infinite kdamond_merge_regions() internal loop
  mm/damon/tests/core-kunit: catch test failure in
    test_merge_regions_of()
  mm/damon/vaddr: drop last same folio access check optimization
  mm/damon/paddr: drop last same folio access check reuse optimization
  mm/damon/sysfs: read ops_id only once

 mm/damon/core.c             | 13 +++++++++----
 mm/damon/paddr.c            | 20 ++++----------------
 mm/damon/sysfs.c            |  6 ++++--
 mm/damon/tests/core-kunit.h |  3 +++
 mm/damon/vaddr.c            | 26 ++++----------------------
 5 files changed, 24 insertions(+), 44 deletions(-)


base-commit: 65b3b6001701d46d5360097bdc90dfa1c06a1239
-- 
2.47.3

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-07-11 18:04 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-11 18:04 [RFC PATCH 0/5] mm/damon: unurgent fixes for infinite loop, NULL de-ref and races SJ Park
2026-07-11 18:04 ` [RFC PATCH 1/5] mm/damon/core: avoid infinite kdamond_merge_regions() internal loop SJ Park
2026-07-11 18:04 ` [RFC PATCH 2/5] mm/damon/tests/core-kunit: catch test failure in test_merge_regions_of() SJ Park
2026-07-11 18:04 ` [RFC PATCH 3/5] mm/damon/vaddr: drop last same folio access check optimization SJ Park
2026-07-11 18:04 ` [RFC PATCH 4/5] mm/damon/paddr: drop last same folio access check reuse optimization SJ Park
2026-07-11 18:04 ` [RFC PATCH 5/5] mm/damon/sysfs: read ops_id only once SJ Park

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox