Re: [PATCH v3] NUMA x86: add constraints check for nid parameters

From: Ingo Molnar
Date: Fri Dec 09 2011 - 02:13:02 EST



* David Rientjes <rientjes@xxxxxxxxxx> wrote:

> On Thu, 8 Dec 2011, Petr Holasek wrote:
>
> > This patch adds constraints checks for numa_set_distance()
> > function. It emits warning and avoids a store to a negative
> > index in numa_distance[] array. Negative ids can be passed when
> > pxm-to-nids mapping is not properly filled while parsing the SRAT.
> >
> > Signed-off-by: Petr Holasek <pholasek@xxxxxxxxxx>
>
> Acked-by: David Rientjes <rientjes@xxxxxxxxxx>

Thanks guys.

Just to double check: there's no known instance of such a bad
SRAT in existence, so this commit can wait until v3.3 and does
hot have to go into v3.2, right?

Thanks,

Ingo
--
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/