Re: [PATCH] - Updated: Fix slab corruption caused byalloc_cpumask_var_node()

From: Ingo Molnar
Date: Thu Apr 02 2009 - 18:25:33 EST



* Jack Steiner <steiner@xxxxxxx> wrote:

> Fix slab corruption caused by alloc_cpumask_var_node() overwriting
> the tail end of an off-stack cpumask.
>
> The function zeros out cpumask bits beyond the last possible cpu.
> The starting point for zeroing should be the beginning
> of the mask offset by a byte count derived from the number
> of possible cpus. The offset was calculated in bits instead of bytes.
> This resulted in overwriting the end of the cpumask.
>
>
> v2.6.29 is also affected by this bug.
>
>
> Signed-off-by: Jack Steiner <steiner@xxxxxxx>
> Acked-by: Mike Travis <travis.sgi.com>
> Acked-by: Ingo Molnar <mingo@xxxxxxx>

In the future you can add:

Cc: <stable@xxxxxxxxxx>

to the signoff/ack section of the changlog in such cases - then the
-stable folks will notice the commit automatically.

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/