[OS-BUILD PATCH] Revert "mm/kmemleak: skip late_init if not skip disable"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Herton R. Krzesinski <herton@xxxxxxxxxx>

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@xxxxxxxxxx>

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
_______________________________________________
kernel mailing list -- kernel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to kernel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/kernel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure




[Index of Archives]     [Fedora General Discussion]     [Older Fedora Users Archive]     [Fedora Advisory Board]     [Fedora Security]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Mentors]     [Fedora Package Announce]     [Fedora Package Review]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Coolkey]     [Yum Users]     [Tux]     [Yosemite News]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [USB]     [Asterisk PBX]

  Powered by Linux