Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a1d23d5c authored by Catalin Marinas's avatar Catalin Marinas Committed by Benjamin Herrenschmidt
Browse files

powerpc/kmemleak: Do not scan the DART table



The DART table allocation is registered to kmemleak via the
memblock_alloc_base() call. However, the DART table is later unmapped
and dart_tablebase VA no longer accessible. This patch tells kmemleak
not to scan this block and avoid an unhandled paging request.

Signed-off-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Paul Mackerras <paulus@samba.org>
Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
parent aa83f3d8
Loading
Loading
Loading
Loading
+5 −0
Original line number Original line Diff line number Diff line
@@ -476,6 +476,11 @@ void __init alloc_dart_table(void)
	 */
	 */
	dart_tablebase = (unsigned long)
	dart_tablebase = (unsigned long)
		__va(memblock_alloc_base(1UL<<24, 1UL<<24, 0x80000000L));
		__va(memblock_alloc_base(1UL<<24, 1UL<<24, 0x80000000L));
	/*
	 * The DART space is later unmapped from the kernel linear mapping and
	 * accessing dart_tablebase during kmemleak scanning will fault.
	 */
	kmemleak_no_scan((void *)dart_tablebase);


	printk(KERN_INFO "DART table allocated at: %lx\n", dart_tablebase);
	printk(KERN_INFO "DART table allocated at: %lx\n", dart_tablebase);
}
}