]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commit972fa3a7c17c9d60212e32ecc0205dc585b1e769
treeaf556f8049c34c04ccbe38490d4a1bd0c4edd1e6
parentad1a3e15fcd3b8ba0f5f60f6a2fe3938274fdf65
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