linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] mm/damon/sysfs: fix commit test damon_ctx [de]allocation
@ 2025-10-03 20:14 SeongJae Park
  2025-10-03 20:14 ` [PATCH 1/2] mm/damon/sysfs: catch commit test ctx alloc failure SeongJae Park
  2025-10-03 20:14 ` [PATCH 2/2] mm/damon/sysfs: dealloc commit test ctx always SeongJae Park
  0 siblings, 2 replies; 3+ messages in thread
From: SeongJae Park @ 2025-10-03 20:14 UTC (permalink / raw)
  To: Andrew Morton
  Cc: SeongJae Park, # 6 . 15 . x, damon, kernel-team, linux-kernel, linux-mm

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


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

end of thread, other threads:[~2025-10-03 20:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-10-03 20:14 [PATCH 0/2] mm/damon/sysfs: fix commit test damon_ctx [de]allocation SeongJae Park
2025-10-03 20:14 ` [PATCH 1/2] mm/damon/sysfs: catch commit test ctx alloc failure SeongJae Park
2025-10-03 20:14 ` [PATCH 2/2] mm/damon/sysfs: dealloc commit test ctx always SeongJae Park

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