Thread (6 messages) 6 messages, 3 authors, 2021-02-16

Re: [PATCH kernel] powerpc/perf: Stop crashing with generic_compat_pmu

From: Michael Ellerman <hidden>
Date: 2020-08-27 07:51:12

On Tue, 2 Jun 2020 12:56:12 +1000, Alexey Kardashevskiy wrote:
The bhrb_filter_map ("The  Branch  History  Rolling  Buffer") callback is
only defined in raw CPUs' power_pmu structs. The "architected" CPUs use
generic_compat_pmu which does not have this callback and crashed occur.

This add a NULL pointer check for bhrb_filter_map() which behaves as if
the callback returned an error.

[...]
Applied to powerpc/fixes.

[1/1] powerpc/perf: Fix crashes with generic_compat_pmu & BHRB
      https://git.kernel.org/powerpc/c/b460b512417ae9c8b51a3bdcc09020cd6c60ff69

cheers
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help