All of lore.kernel.org
 help / color / mirror / Atom feed
* + mm-make-mem_obj_dump-vmalloc-dumps-include-start-and-length.patch added to -mm tree
@ 2021-01-06 21:49 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2021-01-06 21:49 UTC (permalink / raw)
  To: andrii, axboe, cl, iamjoonsoo.kim, ming.lei, mm-commits, paulmck,
	penberg, rientjes, vbabka


The patch titled
     Subject: mm: make mem_obj_dump() vmalloc() dumps include start and length
has been added to the -mm tree.  Its filename is
     mm-make-mem_obj_dump-vmalloc-dumps-include-start-and-length.patch

This patch should soon appear at
    https://ozlabs.org/~akpm/mmots/broken-out/mm-make-mem_obj_dump-vmalloc-dumps-include-start-and-length.patch
and later at
    https://ozlabs.org/~akpm/mmotm/broken-out/mm-make-mem_obj_dump-vmalloc-dumps-include-start-and-length.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***

The -mm tree is included into linux-next and is updated
there every 3-4 working days

------------------------------------------------------
From: "Paul E. McKenney" <paulmck@kernel.org>
Subject: 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().

Link: https://lkml.kernel.org/r/20210106011750.13709-4-paulmck@kernel.org
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Suggested-by: Vlastimil Babka <vbabka@suse.cz>
Reported-by: Andrii Nakryiko <andrii@kernel.org>
Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Cc: Christoph Lameter <cl@linux.com>
Cc: David Rientjes <rientjes@google.com>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: Ming Lei <ming.lei@redhat.com>
Cc: Pekka Enberg <penberg@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 mm/vmalloc.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

--- a/mm/vmalloc.c~mm-make-mem_obj_dump-vmalloc-dumps-include-start-and-length
+++ a/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;
 }
 
_

Patches currently in -mm which might be from paulmck@kernel.org are

mm-add-mem_dump_obj-to-print-source-of-memory-block.patch
mm-make-mem_dump_obj-handle-null-and-zero-sized-pointers.patch
mm-make-mem_dump_obj-handle-vmalloc-memory.patch
mm-make-mem_obj_dump-vmalloc-dumps-include-start-and-length.patch
rcu-make-call_rcu-print-mem_dump_obj-info-for-double-freed-callback.patch
percpu_ref-dump-mem_dump_obj-info-upon-reference-count-underflow.patch


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-01-06 21:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-06 21:49 + mm-make-mem_obj_dump-vmalloc-dumps-include-start-and-length.patch added to -mm tree akpm

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.