[PATCH v2 19/23] mm/slab_common: add kasan_kmalloc() in __kmalloc_node_track_caller()
From: Hyeonggon Yoo
Date: Thu Apr 14 2022 - 05:02:10 EST
Add missing kasan_kmalloc() in __kmalloc_node_track_caller().
Signed-off-by: Hyeonggon Yoo <42.hyeyoo@xxxxxxxxx>
---
mm/slab_common.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/mm/slab_common.c b/mm/slab_common.c
index a3eb66e5180c..6abe7f61c197 100644
--- a/mm/slab_common.c
+++ b/mm/slab_common.c
@@ -954,6 +954,7 @@ void *__kmalloc_node_track_caller(size_t size, gfp_t gfpflags,
return s;
ret = __kmem_cache_alloc_node(s, NULL, gfpflags, node, caller);
+ ret = kasan_kmalloc(s, ret, size, gfpflags);
return ret;
}
--
2.32.0