[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20251003201455.41448-1-sj@kernel.org>
Date: Fri, 3 Oct 2025 13:14:53 -0700
From: SeongJae Park <sj@...nel.org>
To: Andrew Morton <akpm@...ux-foundation.org>
Cc: SeongJae Park <sj@...nel.org>,
"# 6 . 15 . x" <stable@...r.kernel.org>,
damon@...ts.linux.dev,
kernel-team@...a.com,
linux-kernel@...r.kernel.org,
linux-mm@...ck.org
Subject: [PATCH 0/2] mm/damon/sysfs: fix commit test damon_ctx [de]allocation
DAMON sysfs interface dynamically allocates and uses a damon_ctx object
for testing if given inputs for online DAMON parameters update is valid.
The object is being used without an allocation failure check, and leaked
when the test succeeds. Fix the two bugs.
SeongJae Park (2):
mm/damon/sysfs: catch commit test ctx alloc failure
mm/damon/sysfs: dealloc commit test ctx always
mm/damon/sysfs.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
base-commit: 3c39180d389ca58cf309b7aa58b6a3617151c226
--
2.39.5
Powered by blists - more mailing lists