Re: [PATCH] z3fold: fix memory leak in kmem cache

2019-09-19 Thread Vitaly Wool
On Wed, Sep 18, 2019 at 9:35 AM Vlastimil Babka wrote: > > On 9/17/19 5:53 PM, Vitaly Wool wrote: > > Currently there is a leak in init_z3fold_page() -- it allocates > > handles from kmem cache even for headless pages, but then they are > > never used and never freed, so eventually kmem cache may

Re: [PATCH] z3fold: fix memory leak in kmem cache

2019-09-18 Thread Vlastimil Babka
On 9/17/19 5:53 PM, Vitaly Wool wrote: > Currently there is a leak in init_z3fold_page() -- it allocates > handles from kmem cache even for headless pages, but then they are > never used and never freed, so eventually kmem cache may get > exhausted. This patch provides a fix for that. > > Reported

[PATCH] z3fold: fix memory leak in kmem cache

2019-09-17 Thread Vitaly Wool
Currently there is a leak in init_z3fold_page() -- it allocates handles from kmem cache even for headless pages, but then they are never used and never freed, so eventually kmem cache may get exhausted. This patch provides a fix for that. Reported-by: Markus Linnala Signed-off-by: Vitaly Wool --