Re: [PATCH] Revert "x86-64, init: Do not set NX bits on non-NX capablehardware"

From: H. Peter Anvin
Date: Mon May 20 2013 - 14:19:18 EST


On 05/20/2013 11:18 AM, Linus Torvalds wrote:
> On Mon, May 20, 2013 at 11:13 AM, H. Peter Anvin <hpa@xxxxxxxxxxxxxxx> wrote:
>>
>> Indeed. Looks like we corrupt a random bit in memory on resume.
>
> Well, in this case, it's probably the DEBUG_PAGEALLOC that Michal has
> enabled, which causes a page fault - and then a triple fault - at
> secondary CPU startup. And the triple fault then results in a reboot.
> Which explains the symptoms he gets.
>
> Without DEBUG_PAGEALLOC it ends up being "just" a single-bit corruption, yes.
>

Good, that explains what made it predictable. Score one for
DEBUG_PAGEALLOC.

-hpa


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