Re: [PATCH] mm: kmemleak: slob: respect SLAB_NOLEAKTRACE flag

From
Muchun Song <hidden>
Date
2021-11-16 05:37:46
Also in
lkml
Reply to
Rustam Kovhaev, 2021-11-15
On Mon, Nov 15, 2021 at 10:09 AM Rustam Kovhaev [off-list ref] 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 <redacted>
Reviewed-by: Muchun Song <redacted>

Thanks.
Thread (3 messages) 3 messages, 3 authors, last reply 2021-11-16
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help