The patch titled Subject: lib/smp_processor_id: fix imbalanced instrumentation_end() call has been added to the -mm mm-nonmm-unstable branch. Its filename is lib-smp_processor_id-fix-imbalanced-instrumentation_end-call.patch This patch will shortly appear at https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/lib-smp_processor_id-fix-imbalanced-instrumentation_end-call.patch This patch will later appear in the mm-nonmm-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: Tetsuo Handa <penguin-kernel@xxxxxxxxxxxxxxxxxxx> Subject: lib/smp_processor_id: fix imbalanced instrumentation_end() call Date: Wed, 22 Jun 2022 14:46:31 +0900 Currently instrumentation_end() won't be called if printk_ratelimit() returned false. Link: https://lkml.kernel.org/r/a636d8e0-ad32-5888-acac-671f7f553bb3@xxxxxxxxxxxxxxxxxxx Fixes: 126f21f0e8d46e2c ("lib/smp_processor_id: Move it into noinstr section") Signed-off-by: Tetsuo Handa <penguin-kernel@xxxxxxxxxxxxxxxxxxx> Cc: Thomas Gleixner <tglx@xxxxxxxxxxxxx> Cc: Alexandre Chartre <alexandre.chartre@xxxxxxxxxx> Cc: Peter Zijlstra <peterz@xxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- lib/smp_processor_id.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/lib/smp_processor_id.c~lib-smp_processor_id-fix-imbalanced-instrumentation_end-call +++ a/lib/smp_processor_id.c @@ -47,9 +47,9 @@ unsigned int check_preemption_disabled(c printk("caller is %pS\n", __builtin_return_address(0)); dump_stack(); - instrumentation_end(); out_enable: + instrumentation_end(); preempt_enable_no_resched_notrace(); out: return this_cpu; _ Patches currently in -mm which might be from penguin-kernel@xxxxxxxxxxxxxxxxxxx are lib-smp_processor_id-fix-imbalanced-instrumentation_end-call.patch