Subject: + mm-update-the-kmemleak-stack-trace-for-mempool-allocations.patch added to -mm tree To: catalin.marinas@xxxxxxx From: akpm@xxxxxxxxxxxxxxxxxxxx Date: Fri, 02 May 2014 15:49:16 -0700 The patch titled Subject: mm/mempool.c: update the kmemleak stack trace for mempool allocations has been added to the -mm tree. Its filename is mm-update-the-kmemleak-stack-trace-for-mempool-allocations.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/mm-update-the-kmemleak-stack-trace-for-mempool-allocations.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/mm-update-the-kmemleak-stack-trace-for-mempool-allocations.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/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Catalin Marinas <catalin.marinas@xxxxxxx> Subject: mm/mempool.c: update the kmemleak stack trace for mempool allocations When mempool_alloc() returns an existing pool object, kmemleak_alloc() is no longer called and the stack trace corresponds to the original object allocation. This patch updates the kmemleak allocation stack trace for such objects to make it more useful for debugging. Signed-off-by: Catalin Marinas <catalin.marinas@xxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/mempool.c | 6 ++++++ 1 file changed, 6 insertions(+) diff -puN mm/mempool.c~mm-update-the-kmemleak-stack-trace-for-mempool-allocations mm/mempool.c --- a/mm/mempool.c~mm-update-the-kmemleak-stack-trace-for-mempool-allocations +++ a/mm/mempool.c @@ -10,6 +10,7 @@ #include <linux/mm.h> #include <linux/slab.h> +#include <linux/kmemleak.h> #include <linux/export.h> #include <linux/mempool.h> #include <linux/blkdev.h> @@ -222,6 +223,11 @@ repeat_alloc: spin_unlock_irqrestore(&pool->lock, flags); /* paired with rmb in mempool_free(), read comment there */ smp_wmb(); + /* + * Update the allocation stack trace as this is more useful + * for debugging. + */ + kmemleak_update_trace(element); return element; } _ Patches currently in -mm which might be from catalin.marinas@xxxxxxx are origin.patch mm-kmemleakc-use-%u-to-print-checksum.patch mm-introduce-kmemleak_update_trace.patch lib-update-the-kmemleak-stack-trace-for-radix-tree-allocations.patch mm-update-the-kmemleak-stack-trace-for-mempool-allocations.patch mm-call-kmemleak-directly-from-memblock_allocfree.patch mm-postpone-the-disabling-of-kmemleak-early-logging.patch documentation-devicetree-bindings-add-documentation-for-the-apm-x-gene-soc-rtc-dts-binding.patch drivers-rtc-add-apm-x-gene-soc-rtc-driver.patch arm64-add-apm-x-gene-soc-rtc-dts-entry.patch linux-next.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html