Re: MCE boot crash in qemu

From: Pekka Enberg
Date: Mon Jun 15 2009 - 09:22:20 EST


On Mon, 2009-06-15 at 14:52 +0200, Andi Kleen wrote:
> x86: mce: Handle banks == 0 case in K7 quirk
>
> This happens on QEMU which reports MCA capability, but no banks.
> Without this patch there is a buffer overrun and boot ops because the code
> would try to initialize the 0 element of a zero length kmalloc()
> buffer.
>
> Signed-off-by: Andi Kleen <ak@xxxxxxxxxxxxxxx>

This fixes the bug for me!

Tested-by: Pekka Enberg <penberg@xxxxxxxxxxxxxx>

Pekka

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