Re: x86/mce: machine check warning during poweroff

From: Tony Luck
Date: Sat Jan 14 2012 - 00:15:33 EST


On Fri, Jan 13, 2012 at 7:10 PM, Linus Torvalds
<torvalds@xxxxxxxxxxxxxxxxxxxx> wrote:
> Fair enough. The many layers of clever indirection are really really
> nasty to follow, I agree.

You could cheat and bisect (not git bisect, numerical bisect). We know that:

memset(&dev->kobj, 0, sizeof(struct kobject));

is not enough. And that:

memset(dev, 0, sizeof(struct device));

works. The kobject is near the beginning of struct device. So try clearing
all the other bits from start of struct device up to "kobj" ... if that doesn't
help, then play with clearing various sized chunks after. Should be able to
zoom in on the culprit field ... then go look at the code.

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