Re: Fix random crashes in x86-64 swsusp

From: Pavel Machek
Date: Wed Oct 06 2004 - 17:53:41 EST


Hi!

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

Few minutes after that I found out that x86-64 has similar mechanism
under CONFIG_INIT_DEBUG... it uses 0xcc.

I just wonder if it should be configurable, memset over 100KB is not
likely to be noticeable.
Pavel
--
People were complaining that M$ turns users into beta-testers...
...jr ghea gurz vagb qrirybcref, naq gurl frrz gb yvxr vg gung jnl!
-
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/