Commit ce8c875
committed
mm: kmemleak: add OBJECT_PHYS flag for objects allocated with physical address
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2151065
commit 8e0c4ab
Author: Patrick Wang <patrick.wang.shcn@gmail.com>
Date: Sat, 11 Jun 2022 11:55:49 +0800
mm: kmemleak: add OBJECT_PHYS flag for objects allocated with physical address
Add OBJECT_PHYS flag for object. This flag is used to identify the
objects allocated with physical address. The create_object_phys()
function is added as well to set that flag and is used by
kmemleak_alloc_phys().
Link: https://lkml.kernel.org/r/20220611035551.1823303-3-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>
Signed-off-by: Waiman Long <longman@redhat.com>1 parent 6e40e36 commit ce8c875
1 file changed
+31
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
| 175 | + | |
| 176 | + | |
175 | 177 | | |
176 | 178 | | |
177 | 179 | | |
| |||
574 | 576 | | |
575 | 577 | | |
576 | 578 | | |
577 | | - | |
578 | | - | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
579 | 582 | | |
580 | 583 | | |
581 | 584 | | |
| |||
595 | 598 | | |
596 | 599 | | |
597 | 600 | | |
598 | | - | |
| 601 | + | |
599 | 602 | | |
600 | 603 | | |
601 | 604 | | |
| |||
662 | 665 | | |
663 | 666 | | |
664 | 667 | | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
665 | 682 | | |
666 | 683 | | |
667 | 684 | | |
| |||
728 | 745 | | |
729 | 746 | | |
730 | 747 | | |
731 | | - | |
732 | | - | |
| 748 | + | |
| 749 | + | |
733 | 750 | | |
734 | | - | |
735 | | - | |
| 751 | + | |
| 752 | + | |
736 | 753 | | |
737 | 754 | | |
738 | 755 | | |
| |||
1129 | 1146 | | |
1130 | 1147 | | |
1131 | 1148 | | |
| 1149 | + | |
| 1150 | + | |
1132 | 1151 | | |
1133 | | - | |
1134 | | - | |
| 1152 | + | |
| 1153 | + | |
| 1154 | + | |
| 1155 | + | |
| 1156 | + | |
1135 | 1157 | | |
1136 | 1158 | | |
1137 | 1159 | | |
| |||
0 commit comments