Hello Jianglei,
On Thu, 14 Jul 2022 16:44:27 +0000 SeongJae Park sj@kernel.org wrote:
Hello Jianglei,
On Thu, 14 Jul 2022 14:37:46 +0800 Jianglei Nie niejianglei2021@163.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