public inbox for stable@vger.kernel.org
 help / color / mirror / Atom feed
* Re: [PATCH] mm/damon/stat: fix memory leak on damon_start() failure in damon_stat_start()
       [not found] <20260331101553.88422-1-liu.yun@linux.dev>
@ 2026-04-01  1:32 ` SeongJae Park
  0 siblings, 0 replies; only message in thread
From: SeongJae Park @ 2026-04-01  1:32 UTC (permalink / raw)
  To: Jackie Liu; +Cc: SeongJae Park, akpm, linux-mm, damon, stable

+ damon@lists.linux.dev.  Please Cc damon@ for all DAMON patches.

Hello Jackie,

On Tue, 31 Mar 2026 18:15:53 +0800 Jackie Liu <liu.yun@linux.dev> wrote:

> From: Jackie Liu <liuyun01@kylinos.cn>
> 
> Destroy the DAMON context and reset the global pointer when
> damon_start() fails. Otherwise, the context allocated by
> damon_stat_build_ctx() is leaked, and the stale damon_stat_context
> pointer will be overwritten on the next enable attempt, making the
> old allocation permanently unreachable.
> 
> Fixes: 369c415e6073 ("mm/damon: introduce DAMON_STAT module")

As this is a memory leak, let's add Cc: stable@ too.

Cc: <stable@vger.kernel.org> # 6.17.x

> Signed-off-by: Jackie Liu <liuyun01@kylinos.cn>

Reviewed-by: SeongJae Park <sj@kernel.org>


Thanks,
SJ

[...]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-04-01  1:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20260331101553.88422-1-liu.yun@linux.dev>
2026-04-01  1:32 ` [PATCH] mm/damon/stat: fix memory leak on damon_start() failure in damon_stat_start() SeongJae Park

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