From: Herton R. Krzesinski <herton(a)redhat.com>
Revert "mm/kmemleak: skip late_init if not skip disable"
This reverts commit 24d8743613b2a6a585fc68cfe95078d9a3d5b389.
This patch never went upstream. The original issue is expected to
be fixed instead by commit 2abd839aa7e615f2bbc50c8ba7deb9e40d186768
("kmemleak: Do not corrupt the object_list during clean-up"), see
eg.:
https://lkml.org/lkml/2019/10/8/742
Signed-off-by: Herton R. Krzesinski <herton(a)redhat.com>
diff a/mm/kmemleak.c b/mm/kmemleak.c
--- a/mm/kmemleak.c
+++ b/mm/kmemleak.c
@@ -1960,11 +1960,6 @@ void __init kmemleak_init(void)
*/
static int __init kmemleak_late_init(void)
{
- if (!kmemleak_skip_disable) {
- kmemleak_disable();
- return 0;
- }
-
kmemleak_initialized = 1;
debugfs_create_file("kmemleak", 0644, NULL, NULL, &kmemleak_fops);
--
https://gitlab.com/cki-project/kernel-ark/-/merge_requests/949