The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH v1.1 0/6] mm/damon: unurgent fixes for infinite loop, NULL de-ref and races
@ 2026-07-15  3:09 SJ Park
  2026-07-15  3:09 ` [PATCH v1.1 1/6] mm/damon/core: avoid infinite kdamond_merge_regions() internal loop SJ Park
                   ` (7 more replies)
  0 siblings, 8 replies; 10+ messages in thread
From: SJ Park @ 2026-07-15  3:09 UTC (permalink / raw)
  To: Andrew Morton
  Cc: SJ Park, stable, Brendan Higgins, David Gow, Fernand Sieber,
	Leonard Foerster, Quanmin Yan, 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.

Changes from v1
- v1: https://lore.kernel.org/20260714135236.92699-1-sj@kernel.org
- Add addr_unit race fix.
- Add Fixes: tags to the race fixes.
- Wordsmith subjects.
Changes from RFC v1.2
- RFC v1.2: https://lore.kernel.org/20260713135838.32730-1-sj@kernel.org
- Drop RFC tag.
- Rebase to latest mm-new.
Changes from RFC v1.1
- RFC v1.1: https://lore.kernel.org/20260712170328.91144-1-sj@kernel.org
- Remove same_target param from __damon_va_check_access().
Changes from RFC
- RFC: https://lore.kernel.org/20260711180409.82093-1-sj@kernel.org
- Rebase to mm-new.

SJ Park (6):
  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 addr_unit only once in damon_sysfs_apply_inputs()
  mm/damon/sysfs: read ops_id only once in damon_sysfs_apply_inputs()

 mm/damon/core.c             | 13 +++++++++----
 mm/damon/paddr.c            | 20 ++++----------------
 mm/damon/sysfs.c            | 10 ++++++----
 mm/damon/tests/core-kunit.h |  3 +++
 mm/damon/vaddr.c            | 33 ++++++---------------------------
 5 files changed, 28 insertions(+), 51 deletions(-)


base-commit: 52d335d2c1de60b6184b9de5ecec634892a3e136
-- 
2.47.3

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

end of thread, other threads:[~2026-07-15 13:26 UTC | newest]

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

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