mm: postpone the disabling of kmemleak early logging

Linux Kernel / Linux Kernel - Catalin Marinas [arm.com] - 11 May 2014 03:55 EDT

Commit 8910ae896c8c ("kmemleak: change some global variables to int"), in addition to the atomic -> int conversion, moved the disabling of kmemleak_early_log to the beginning of the kmemleak_init() function, before the full kmemleak tracing is actually enabled. In this small window, kmem_cache_create() is called by kmemleak which triggers additional memory allocation that are not traced. This patch restores the original logic with kmemleak_early_log disabling when kmemleak is fully functional.

Fixes: 8910ae896c8c (kmemleak: change some global variables to int)

3551a92 mm: postpone the disabling of kmemleak early logging
mm/kmemleak.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

Upstream: git.kernel.org


  • Share