Re: [PATCH] powerpc/perf: Fix crash with 'perf_instruction_pointer' when pmu is not set

2021-06-26 Thread Michael Ellerman
On Thu, 17 Jun 2021 13:55:06 -0400, Athira Rajeev wrote: > On systems without any specific PMU driver support registered, running > perf record causes Oops. > > The relevant portion from call trace: > > BUG: Kernel NULL pointer dereference on read at 0x0040 > Faulting instruction address:

[PATCH] powerpc/perf: Fix crash with 'perf_instruction_pointer' when pmu is not set

2021-06-17 Thread Athira Rajeev
On systems without any specific PMU driver support registered, running perf record causes Oops. The relevant portion from call trace: BUG: Kernel NULL pointer dereference on read at 0x0040 Faulting instruction address: 0xc0021f0c Oops: Kernel access of bad area, sig: 11 [#1] BE PAGE_SIZE=4K