powerpc/perf: add missing put_cpu_var in power_pmu_event_init

Michael Ellerman mpe at ellerman.id.au
Wed Mar 25 16:25:09 AEDT 2015


On Tue, 2015-24-03 at 12:33:22 UTC, Jan Stancek wrote:
> One path in power_pmu_event_init() calls get_cpu_var(), but is
> missing matching call to put_cpu_var(), which causes preemption
> imbalance and crash in user-space:
> 
>   Page fault in user mode with in_atomic() = 1 mm = c000001fefa5a280
>   NIP = 3fff9bf2cae0  MSR = 900000014280f032
>   Oops: Weird page fault, sig: 11 [#23]

<snip>

Thanks. But I don't see this. I guess you have CONFIG_PREEMPT enabled?

cheers


More information about the Linuxppc-dev mailing list