Re: [Bugfix] sched: fix possible invalid memory access caused by CPU hot-addition
From: Peter Zijlstra
Date: Tue Apr 22 2014 - 16:04:59 EST
On Tue, Apr 22, 2014 at 01:01:51PM -0700, Andrew Morton wrote:
> On Tue, 22 Apr 2014 10:15:15 +0200 Peter Zijlstra <peterz@xxxxxxxxxxxxx> wrote:
>
> > On Tue, Apr 22, 2014 at 01:27:15PM +0800, Jiang Liu wrote:
> > > When calling kzalloc_node(size, flags, node), we should first check
> > > whether node is onlined, otherwise it may cause invalid memory access
> > > as below.
> >
> > But this is only for memory less node crap, right?
>
> um, why are memoryless nodes crap?
Why wouldn't they be? Having CPUs with no local memory seems decidedly
suboptimal.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/