Re: Fix random crashes in x86-64 swsusp

From: Andrew Morton
Date: Wed Oct 06 2004 - 17:32:12 EST


Pavel Machek <pavel@xxxxxxx> wrote:
>
> Maybe we should memset freed memory to zero so such bugs are
> prevented?

It would make sense to poison these pages, yes. Zero would not be a good
choice of value, actually - something like 0xbb would cause nice oopses if
someone used a pointer which was backed by __init memory.

CONFIG_DEBUG_PAGEALLOC will pick up this sort of bug, but that's i386-only.
-
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/