The patch titled Subject: kmemleak-avoid-rcu-stalls-when-freeing-metadata-for-per-cpu-pointers-v2 has been added to the -mm mm-unstable branch. Its filename is kmemleak-avoid-rcu-stalls-when-freeing-metadata-for-per-cpu-pointers-v2.patch This patch will shortly appear at https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/kmemleak-avoid-rcu-stalls-when-freeing-metadata-for-per-cpu-pointers-v2.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: Catalin Marinas <catalin.marinas@xxxxxxx> Subject: kmemleak-avoid-rcu-stalls-when-freeing-metadata-for-per-cpu-pointers-v2 Date: Wed, 6 Dec 2023 11:44:14 +0000 update the comment to include the *_percpu() callbacks, not just the *_phys() Link: https://lkml.kernel.org/r/20231206114414.2085824-1-catalin.marinas@xxxxxxx Signed-off-by: Catalin Marinas <catalin.marinas@xxxxxxx> Reported-by: Waiman Long <longman@xxxxxxxxxx> Reviewed-by: Waiman Long <longman@xxxxxxxxxx> Link: https://lore.kernel.org/r/20231127194153.289626-1-longman@xxxxxxxxxx Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/kmemleak.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/mm/kmemleak.c~kmemleak-avoid-rcu-stalls-when-freeing-metadata-for-per-cpu-pointers-v2 +++ a/mm/kmemleak.c @@ -21,8 +21,8 @@ * red black trees used to look-up metadata based on a pointer to the * corresponding memory block. The kmemleak_object structures are added to * the object_list and the object tree root in the create_object() function - * called from the kmemleak_alloc() (or kmemleak_alloc_phys()) callback and - * removed in delete_object() called from the kmemleak_free() callback + * called from the kmemleak_alloc{,_phys,_percpu}() callback and removed in + * delete_object() called from the kmemleak_free{,_phys,_percpu}() callback * - kmemleak_object.lock (raw_spinlock_t): protects a kmemleak_object. * Accesses to the metadata (e.g. count) are protected by this lock. Note * that some members of this structure may be protected by other means _ Patches currently in -mm which might be from catalin.marinas@xxxxxxx are kmemleak-avoid-rcu-stalls-when-freeing-metadata-for-per-cpu-pointers.patch kmemleak-avoid-rcu-stalls-when-freeing-metadata-for-per-cpu-pointers-v2.patch