[tip: core/rcu] mm: Make mem_obj_dump() vmalloc() dumps include start and length

From: tip-bot2 for Paul E. McKenney <hidden>
Date: 2021-02-12 12:37:57
Also in: lkml
Subsystem: memory management, the rest, vmalloc · Maintainers: Andrew Morton, Linus Torvalds, Uladzislau Rezki

The following commit has been merged into the core/rcu branch of tip:

Commit-ID:     bd34dcd4120d7e358baac9c22ef1321bd0c22079
Gitweb:        https://git.kernel.org/tip/bd34dcd4120d7e358baac9c22ef1321bd0c22079
Author:        Paul E. McKenney [off-list ref]
AuthorDate:    Wed, 09 Dec 2020 15:15:27 -08:00
Committer:     Paul E. McKenney [off-list ref]
CommitterDate: Fri, 22 Jan 2021 15:24:10 -08:00

mm: Make mem_obj_dump() vmalloc() dumps include start and length

This commit adds the starting address and number of pages to the vmalloc()
information dumped by way of vmalloc_dump_obj().

Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Joonsoo Kim <redacted>
Cc: <redacted>
Reported-by: Andrii Nakryiko <andrii@kernel.org>
Suggested-by: Vlastimil Babka <redacted>
Acked-by: Vlastimil Babka <redacted>
Tested-by: Naresh Kamboju <redacted>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
---
 mm/vmalloc.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/mm/vmalloc.c b/mm/vmalloc.c
index c274ea4..e3229ff 100644
--- a/mm/vmalloc.c
+++ b/mm/vmalloc.c
@@ -3456,7 +3456,8 @@ bool vmalloc_dump_obj(void *object)
 	vm = find_vm_area(objp);
 	if (!vm)
 		return false;
-	pr_cont(" vmalloc allocated at %pS\n", vm->caller);
+	pr_cont(" %u-page vmalloc region starting at %#lx allocated at %pS\n",
+		vm->nr_pages, (unsigned long)vm->addr, vm->caller);
 	return true;
 }
 
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help