Re: [PATCH] mm/page_ext: fix an imbalance with kmemleak

2019-02-27 Thread Catalin Marinas
On Wed, Feb 27, 2019 at 12:15:56PM -0500, Qian Cai wrote: > After offlined a memory block, kmemleak scan will trigger a crash, as it > encounters a page ext address that has already been freed during memory > offlining. At the beginning in alloc_page_ext(), it calls > kmemleak_alloc(), but it does

[PATCH] mm/page_ext: fix an imbalance with kmemleak

2019-02-27 Thread Qian Cai
After offlined a memory block, kmemleak scan will trigger a crash, as it encounters a page ext address that has already been freed during memory offlining. At the beginning in alloc_page_ext(), it calls kmemleak_alloc(), but it does not call kmemleak_free() in __free_page_ext(). BUG: unable to