[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20220714174317.49994-1-sj@kernel.org>
Date:   Thu, 14 Jul 2022 17:43:17 +0000
From:   SeongJae Park <sj@...nel.org>
To:     SeongJae Park <sj@...nel.org>
Cc:     Jianglei Nie <niejianglei2021@....com>, akpm@...ux-foundation.org,
        damon@...ts.linux.dev, linux-mm@...ck.org,
        linux-kernel@...r.kernel.org, stable@...r.kernel.org
Subject: Re: [PATCH] mm/damon/reclaim: fix potential memory leak in damon_reclaim_init()
Hello Jianglei,
On Thu, 14 Jul 2022 16:44:27 +0000 SeongJae Park <sj@...nel.org> wrote:
> Hello Jianglei,
> 
> On Thu, 14 Jul 2022 14:37:46 +0800 Jianglei Nie <niejianglei2021@....com> wrote:
> 
> > damon_reclaim_init() allocates a memory chunk for ctx with
> > damon_new_ctx(). When damon_select_ops() fails, ctx is not released, which
> > will lead to a memory leak.
I realized this issue is also in DAMON_LRU_SORT, so posted a patch:
https://lore.kernel.org/damon/20220714170458.49727-1-sj@kernel.org/
I mistakenly forgot CC-ing you, so letting you know here.
Thanks,
SJ
Powered by blists - more mailing lists