]> git.baikalelectronics.ru Git - kernel.git/commit
mm: kmemleak: alloc gray object for reserved region with direct map
authorCalvin Zhang <calvinzhang.cool@gmail.com>
Fri, 14 Jan 2022 22:04:08 +0000 (14:04 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 15 Jan 2022 14:30:25 +0000 (16:30 +0200)
commitf6e19b6ddfee479c1a2f3db86832946924190800
treeaf556f8049c34c04ccbe38490d4a1bd0c4edd1e6
parentf2c71862d91ad2ab27a1b084d7664781a410ea41
mm: kmemleak: alloc gray object for reserved region with direct map

Reserved regions with direct mapping may contain references to other
regions.  CMA region with fixed location is reserved without creating
kmemleak_object for it.

So add them as gray kmemleak objects.

Link: https://lkml.kernel.org/r/20211123090641.3654006-1-calvinzhang.cool@gmail.com
Signed-off-by: Calvin Zhang <calvinzhang.cool@gmail.com>
Cc: Rob Herring <robh+dt@kernel.org>
Cc: Frank Rowand <frowand.list@gmail.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/of/fdt.c