The patch titled Subject: mm-use-stack_depot-for-recording-kmemleaks-backtrace-v3-fix has been added to the -mm mm-unstable branch. Its filename is mm-use-stack_depot-for-recording-kmemleaks-backtrace-v3-fix.patch This patch will shortly appear at https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/mm-use-stack_depot-for-recording-kmemleaks-backtrace-v3-fix.patch This patch will later appear in the mm-unstable branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm 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 via the mm-everything branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm and is updated there every 2-3 working days ------------------------------------------------------ From: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> Subject: mm-use-stack_depot-for-recording-kmemleaks-backtrace-v3-fix Date: Mon Oct 31 04:23:03 PM PDT 2022 fix v3 layout oddities Cc: Catalin Marinas <catalin.marinas@xxxxxxx> Cc: Zhaoyang Huang <huangzhaoyang@xxxxxxxxx> Cc: Zhaoyang Huang <zhaoyang.huang@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/kmemleak.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) --- a/mm/kmemleak.c~mm-use-stack_depot-for-recording-kmemleaks-backtrace-v3-fix +++ a/mm/kmemleak.c @@ -343,7 +343,7 @@ static bool unreferenced_object(struct k * print_unreferenced function must be called with the object->lock held. */ static void print_unreferenced(struct seq_file *seq, - struct kmemleak_object *object) + struct kmemleak_object *object) { int i; unsigned long *entries; @@ -352,10 +352,10 @@ static void print_unreferenced(struct se nr_entries = stack_depot_fetch(object->trace_handle, &entries); warn_or_seq_printf(seq, "unreferenced object 0x%08lx (size %zu):\n", - object->pointer, object->size); + object->pointer, object->size); warn_or_seq_printf(seq, " comm \"%s\", pid %d, jiffies %lu (age %d.%03ds)\n", - object->comm, object->pid, object->jiffies, - msecs_age / 1000, msecs_age % 1000); + object->comm, object->pid, object->jiffies, + msecs_age / 1000, msecs_age % 1000); hex_dump_object(seq, object); warn_or_seq_printf(seq, " backtrace:\n"); _ Patches currently in -mm which might be from akpm@xxxxxxxxxxxxxxxxxxxx are maple_tree-reorganize-testing-to-restore-module-testing-fix.patch maple_tree-reorganize-testing-to-restore-module-testing-fix-2.patch mm-memremap_pages-replace-zone_device_page_init-with-pgmap_request_folios-fix.patch mm-hugetlb-convert-free_huge_page-to-folios-fix.patch vmalloc-add-reviewers-for-vmalloc-code-checkpatch-fixes.patch mm-memremap-introduce-pgmap_request_folio-using-pgmap-offsets-fix.patch mm-memremap-introduce-pgmap_request_folio-using-pgmap-offsets-fix-2.patch mm-gup-remove-foll_migration-fix.patch mm-use-stack_depot-for-recording-kmemleaks-backtrace-checkpatch-fixes.patch mm-use-stack_depot-for-recording-kmemleaks-backtrace-fix.patch mm-use-stack_depot-for-recording-kmemleaks-backtrace-v3-fix.patch kasan-allow-sampling-page_alloc-allocations-for-hw_tags-fix.patch powerpc-ptrace-user_regset_copyin_ignore-always-returns-0-fix.patch minmax-sanity-check-constant-bounds-when-clamping-checkpatch-fixes.patch minmax-sanity-check-constant-bounds-when-clamping-checkpatch-fixes-fix.patch proc-report-open-files-as-size-in-stat-for-proc-pid-fd-v3-fix.patch