Messages in this thread | | | Subject | Re: [PATCH] powerpc: fix memory corruption by pnv_alloc_idle_core_states | From | Michael Ellerman <> | Date | Wed, 01 Apr 2015 13:40:38 +1100 |
| |
On Tue, 2015-03-31 at 18:11 +0200, Jan Stancek wrote: > 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>
Thanks. I'll send that to Linus in the next day or two and mark it for stable as well.
cheers
| |