]> git.itanic.dy.fi Git - linux-stable/commit
mm: kmemleak: add rbtree and store physical address for objects allocated with PA
authorPatrick Wang <patrick.wang.shcn@gmail.com>
Sat, 11 Jun 2022 03:55:50 +0000 (11:55 +0800)
committerakpm <akpm@linux-foundation.org>
Fri, 17 Jun 2022 02:48:30 +0000 (19:48 -0700)
commit0c24e061196c21d53328d60f4ad0e5a2b3183343
treec3d8265401425759229d3622f472612a271d88c7
parent8e0c4ab36c61c514a9c1caaf5707d1f55ab5f6df
mm: kmemleak: add rbtree and store physical address for objects allocated with PA

Add object_phys_tree_root to store the objects allocated with physical
address.  Distinguish it from object_tree_root by OBJECT_PHYS flag or
function argument.  The physical address is stored directly in those
objects.

Link: https://lkml.kernel.org/r/20220611035551.1823303-4-patrick.wang.shcn@gmail.com
Signed-off-by: Patrick Wang <patrick.wang.shcn@gmail.com>
Suggested-by: Catalin Marinas <catalin.marinas@arm.com>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Cc: Yee Lee <yee.lee@mediatek.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/kmemleak.c