Messages in this thread | | | From | Muchun Song <> | Date | Tue, 16 Nov 2021 10:54:53 +0800 | Subject | Re: [PATCH] mm: kmemleak: slob: respect SLAB_NOLEAKTRACE flag |
| |
On Mon, Nov 15, 2021 at 10:09 AM Rustam Kovhaev <rkovhaev@gmail.com> wrote: > > When kmemleak is enabled for SLOB, system does not boot and does not > print anything to the console. At the very early stage in the boot > process we hit infinite recursion from kmemleak_init() and eventually > kernel crashes. > kmemleak_init() specifies SLAB_NOLEAKTRACE for KMEM_CACHE(), but > kmem_cache_create_usercopy() removes it because CACHE_CREATE_MASK is not > valid for SLOB. > Let's fix CACHE_CREATE_MASK and make kmemleak work with SLOB > > Fixes: d8843922fba4 ("slab: Ignore internal flags in cache creation") > Signed-off-by: Rustam Kovhaev <rkovhaev@gmail.com>
Reviewed-by: Muchun Song <songmuchun@bytedance.com>
Thanks.
| |