[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1427856038.4256.7.camel@ellerman.id.au>
Date: Wed, 01 Apr 2015 13:40:38 +1100
From: Michael Ellerman <mpe@...erman.id.au>
To: Jan Stancek <jstancek@...hat.com>
Cc: linuxppc-dev@...ts.ozlabs.org, linux-kernel@...r.kernel.org,
benh@...nel.crashing.org, paulus@...ba.org, mikey@...ling.org,
shreyas@...ux.vnet.ibm.com, preeti@...ux.vnet.ibm.com,
sbest@...hat.com
Subject: Re: [PATCH] powerpc: fix memory corruption by
pnv_alloc_idle_core_states
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@...hat.com>
Thanks. I'll send that to Linus in the next day or two and mark it for stable
as well.
cheers
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists