linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -mmotm] efi: drop kmemleak_ignore() for page allocator
@ 2018-12-26  2:35 Qian Cai
  2018-12-26 12:02 ` Ard Biesheuvel
  0 siblings, 1 reply; 7+ messages in thread
From: Qian Cai @ 2018-12-26  2:35 UTC (permalink / raw)
  To: akpm
  Cc: ard.biesheuvel, catalin.marinas, mingo, linux-mm, linux-efi,
	linux-kernel, Qian Cai

a0fc5578f1d (efi: Let kmemleak ignore false positives) is no longer
needed due to efi_mem_reserve_persistent() uses __get_free_page()
instead where kmemelak is not able to track regardless. Otherwise,
kernel reported "kmemleak: Trying to color unknown object at
0xffff801060ef0000 as Black"

Signed-off-by: Qian Cai <cai@lca.pw>
---
 drivers/firmware/efi/efi.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/drivers/firmware/efi/efi.c b/drivers/firmware/efi/efi.c
index 7ac09dd8f268..4c46ff6f2242 100644
--- a/drivers/firmware/efi/efi.c
+++ b/drivers/firmware/efi/efi.c
@@ -31,7 +31,6 @@
 #include <linux/acpi.h>
 #include <linux/ucs2_string.h>
 #include <linux/memblock.h>
-#include <linux/kmemleak.h>
 
 #include <asm/early_ioremap.h>
 
@@ -1027,8 +1026,6 @@ int __ref efi_mem_reserve_persistent(phys_addr_t addr, u64 size)
 	if (!rsv)
 		return -ENOMEM;
 
-	kmemleak_ignore(rsv);
-
 	rsv->size = EFI_MEMRESERVE_COUNT(PAGE_SIZE);
 	atomic_set(&rsv->count, 1);
 	rsv->entry[0].base = addr;
-- 
2.17.2 (Apple Git-113)


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2018-12-29 20:22 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-26  2:35 [PATCH -mmotm] efi: drop kmemleak_ignore() for page allocator Qian Cai
2018-12-26 12:02 ` Ard Biesheuvel
2018-12-26 15:13   ` Qian Cai
2018-12-26 15:31     ` Ard Biesheuvel
2018-12-28  3:04       ` Andrew Morton
2018-12-29  9:17         ` Ard Biesheuvel
2018-12-29 20:22           ` Qian Cai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).