[RFC PATCH v2 0/2] samples/damon/mtier: handle damon_{start,stop}() failures
From: SeongJae Park
Date: Tue Jun 09 2026 - 10:30:48 EST
DAMON sample module mtier is not correctly handling failures from
damon_start() and damon_stop(). As a result, it can leak memory,
disrupt next DAMON operations, and dereference freed and random memory.
Fix those.
Changes from RFC v1
- RFC v1: https://lore.kernel.org/20260609005443.2122-1-sj@xxxxxxxxxx
- Add damon_stop() failure handling fix to the series.
SeongJae Park (2):
samples/damon/mtier: handle damon_start() failure
samples/damon/mtier: handle damon_stop() failure
samples/damon/mtier.c | 14 ++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)
base-commit: f822d98f51b6e2b3ab41cad2e8bc1013d06f93bb
--
2.47.3