[PATCH v2] powerpc, perf: Check that current->mm is alive before getting user callchain
Madhavan Srinivasan
maddy at linux.ibm.com
Sun Mar 15 15:01:45 AEDT 2026
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
More information about the Linuxppc-dev
mailing list