From: Alexei Starovoitov Disallow kprobes in ___slab_alloc() to prevent reentrance: kmalloc() -> ___slab_alloc() -> local_lock_irqsave() -> kprobe -> bpf -> kmalloc_nolock(). Signed-off-by: Alexei Starovoitov --- mm/slub.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mm/slub.c b/mm/slub.c index c995f3bec69d..922d47b10c2f 100644 --- a/mm/slub.c +++ b/mm/slub.c @@ -45,7 +45,7 @@ #include #include #include - +#include #include #include @@ -4697,6 +4697,7 @@ static void *___slab_alloc(struct kmem_cache *s, gfp_t gfpflags, int node, goto load_freelist; } +NOKPROBE_SYMBOL(___slab_alloc); /* * A wrapper for ___slab_alloc() for contexts where preemption is not yet -- 2.47.3