Home
last modified time | relevance | path

Searched hist:d52356e7f48e400ca258c6763a232a92fa82ff68 (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/arch/powerpc/include/asm/
H A Dcputhreads.hdiff d52356e7f48e400ca258c6763a232a92fa82ff68 Tue Mar 31 11:11:46 CDT 2015 Jan Stancek <jstancek@redhat.com> powerpc: fix memory corruption by pnv_alloc_idle_core_states

Space allocated for paca is based off nr_cpu_ids,
but pnv_alloc_idle_core_states() iterates paca with
cpu_nr_cores()*threads_per_core, which is using NR_CPUS.

This causes pnv_alloc_idle_core_states() to write over memory,
which is outside of paca array and may later lead to various panics.

Fixes: 7cba160ad789 (powernv/cpuidle: Redesign idle states management)
Signed-off-by: Jan Stancek <jstancek@redhat.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>