Re: [PATCH v2] powerpc, perf: Check that current->mm is alive before getting user callchain

From: Madhavan Srinivasan

Date: Sun Mar 15 2026 - 00:02:31 EST


On Mon, 09 Mar 2026 15:40:45 +0100, Viktor Malik wrote:
> It may happen that mm is already released, which leads to kernel panic.
> This adds the NULL check for current->mm, similarly to 20afc60f892d
> ("x86, perf: Check that current->mm is alive before getting user
> callchain").
>
> I was getting this panic when running a profiling BPF program
> (profile.py from bcc-tools):
>
> [...]

Applied to powerpc/fixes.

[1/1] powerpc, perf: Check that current->mm is alive before getting user callchain
https://git.kernel.org/powerpc/c/e9bbfb4bfa86c6b5515b868d6982ac60505d7e39

cheers